/* Extratime: mismos tokens de color y tipografia que /laliga (styles.css). */

.xt-body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 52px;
  background: var(--fondo, #050505);
  color: var(--texto, #f2f2f0);
  font-family: var(--fuente, 'Segoe UI', system-ui, sans-serif);
  line-height: 1.5;
  overflow-x: hidden;
}

.xt-cab {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  background: var(--fondo-panel, #0c0c0c);
}

.xt-volver {
  color: var(--tenue, #b9b9bd);
  text-decoration: none;
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 15px;
}
.xt-volver:hover { color: var(--texto, #f2f2f0); border-color: var(--verde, #a6e022); }

.xt-marca { flex: 1; min-width: 160px; }

.xt-titulo {
  margin: 0;
  font-family: var(--fuente-drip, 'Bungee', 'Arial Black', sans-serif);
  font-weight: 400;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.1;
  color: var(--verde, #a6e022);
  letter-spacing: 0.02em;
}

.xt-sub {
  margin: 2px 0 0;
  color: var(--tenue, #b9b9bd);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.xt-idiomas {
  display: inline-flex;
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  overflow: hidden;
}

.xt-idioma {
  background: transparent;
  color: var(--texto, #f2f2f0);
  border: 0;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.xt-idioma[aria-pressed="true"] { background: var(--verde, #a6e022); color: #000; }

.xt-body a:focus-visible,
.xt-body button:focus-visible {
  outline: 3px solid var(--rosa, #ff2f92);
  outline-offset: 2px;
}

.xt-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.xt-filtro-cab {
  margin: 14px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tenue, #b9b9bd);
}

.xt-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.xt-chip {
  flex: 0 0 auto;
  background: var(--fondo-tarjeta, #121212);
  color: var(--texto, #f2f2f0);
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.xt-chip:hover { border-color: var(--verde, #a6e022); }
.xt-chip--activa {
  background: var(--verde, #a6e022);
  color: #000;
  border-color: var(--verde, #a6e022);
  font-weight: 700;
}

.xt-estado {
  margin: 16px 0 6px;
  color: var(--tenue, #b9b9bd);
  font-size: 14px;
  min-height: 1.4em;
}

.xt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.xt-lista {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.xt-card {
  min-width: 0;
  background: var(--fondo-tarjeta, #121212);
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 14px 16px;
}
.xt-card:hover { border-color: rgba(166, 224, 34, 0.45); }

.xt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  color: var(--tenue, #b9b9bd);
}

.xt-foto {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin: -2px 0 10px;
  background: var(--fondo-panel, #0c0c0c);
}
.xt-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xt-card--destacada .xt-foto { aspect-ratio: 21 / 9; }

.xt-tag {
  background: var(--verde, #a6e022);
  color: #000;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.xt-medio { color: var(--texto, #f2f2f0); font-weight: 600; }

.xt-card-titulo {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.3;
}
.xt-card-titulo a { color: var(--texto, #f2f2f0); text-decoration: none; }
.xt-card-titulo a:hover { color: var(--verde, #a6e022); text-decoration: underline; }

.xt-leer {
  color: var(--verde, #a6e022);
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.xt-leer:hover { text-decoration: underline; }

.xt-lateral {
  display: grid;
  gap: 14px;
  align-content: start;
}

.xt-bloque {
  background: var(--fondo-panel, #0c0c0c);
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 14px 16px;
}

.xt-bloque-titulo {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tenue, #b9b9bd);
}

.xt-enlace {
  display: block;
  min-height: 44px;
  line-height: 44px;
  padding: 0;
  color: var(--verde, #a6e022);
  text-decoration: none;
}

.xt-fuentes {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
.xt-fuentes li { margin: 3px 0; }

.xt-pie {
  border-top: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  color: var(--tenue, #b9b9bd);
  font-size: 13px;
  text-align: center;
  padding: 18px 16px 32px;
}
.xt-pie p { margin: 4px 0; }
.xt-pie a { color: var(--verde, #a6e022); }

/* Movil: una columna, chips desplazables dentro de su franja */
@media (max-width: 719px) {
  .xt-main { padding: 14px 16px 40px; }
  .xt-card { padding: 12px 14px; }
  .xt-card-titulo { font-size: 16px; }
}

/* Escritorio: dos columnas de titulares y barra lateral */
@media (min-width: 720px) {
  .xt-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xt-card--destacada { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .xt-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* Pantallas muy anchas: tres columnas de titulares */
@media (min-width: 1200px) {
  .xt-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xt-card--destacada { grid-column: 1 / -1; }
}

/* Barra para subir: aparece al bajar; ocupa todo el ancho para pulsarla bien */
.xt-arriba {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  min-height: 52px;
  border: 0;
  background: var(--verde, #a6e022);
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.xt-arriba[hidden] { display: none; }

/* ---- Buscador, medios, carga y accesibilidad ---- */
.xt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.xt-saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--verde, #a6e022);
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.xt-saltar:focus { top: 12px; }

.xt-barra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0 6px;
}

.xt-campo { display: block; min-width: 0; }
.xt-campo input,
.xt-campo select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--fondo-tarjeta, #121212);
  color: var(--texto, #f2f2f0);
  border: 1px solid var(--borde, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
}
.xt-campo input::placeholder { color: var(--tenue, #b9b9bd); }
.xt-campo input:focus,
.xt-campo select:focus {
  outline: 3px solid var(--rosa, #ff2f92);
  outline-offset: 2px;
  border-color: transparent;
}

.xt-boton {
  min-height: 44px;
  background: transparent;
  color: var(--verde, #a6e022);
  border: 1px solid var(--verde, #a6e022);
  border-radius: 10px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.xt-boton:hover { background: var(--verde, #a6e022); color: #000; }
.xt-boton[hidden] { display: none; }
.xt-boton--ancho { width: 100%; max-width: 420px; }

.xt-estado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.xt-estado .xt-boton { min-height: 36px; padding: 6px 12px; }

.xt-mas {
  display: flex;
  justify-content: center;
  margin: 22px 0 8px;
}

/* Esqueletos mientras carga */
.xt-card--skel { pointer-events: none; }
.xt-skel-foto,
.xt-skel-linea {
  background: linear-gradient(90deg, #161616 0%, #232323 50%, #161616 100%);
  background-size: 200% 100%;
  animation: xt-brillo 1.4s linear infinite;
  border-radius: 6px;
}
.xt-skel-foto { aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 12px; }
.xt-skel-linea { height: 14px; margin: 10px 0; width: 90%; }
.xt-skel-linea--corta { width: 55%; }
@keyframes xt-brillo {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.xt-card-meta time { white-space: nowrap; }

@media (min-width: 720px) {
  .xt-barra { grid-template-columns: minmax(0, 1fr) 200px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .xt-skel-foto,
  .xt-skel-linea { animation: none; }
}

/* Texto de presentacion, visible para todos y para los buscadores */
.xt-intro {
  margin: 14px 0 0;
  color: var(--tenue, #b9b9bd);
  font-size: 15px;
  line-height: 1.6;
  max-width: 72ch;
}
