/*
  styles.css es el CSS compilado de la web original (Tailwind v4). Contiene
  solo las clases que la web ya usaba. Si añades una clase de Tailwind nueva
  y no hace efecto, defínela aquí a mano.
*/

/* ───────── Portada: vídeo de fondo ───────── */

.hero-video { position: relative; overflow: hidden; isolation: isolate; background: #000; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
/* Imagen de portada mientras carga el vídeo */
.hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Desenfocada para que el texto de la miniatura no compita con el título */
  filter: blur(14px) brightness(0.55) saturate(1.2);
  transform: scale(1.1);
}
/* El vídeo (16:9) cubre siempre todo el hueco, como object-fit: cover */
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  /* Las cinemáticas vienen en formato cine (con franjas negras dentro del vídeo):
     se amplía para recortarlas. Si usas un vídeo sin franjas, baja --hero-zoom a 1.02. */
  transform: translate(-50%, -50%) scale(var(--hero-zoom, 1.36));
  border: 0;
  transition: opacity 0.8s ease;
}
/* Oculto mientras YouTube enseña su capa de inicio (se ve la imagen fija debajo) */
.hero-video-bg iframe.is-hidden { opacity: 0; }
/* Oscurece el lado del texto para que se lea bien sin tapar el vídeo */
.hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 14 20 / 0.85) 0%, rgb(10 14 20 / 0.45) 45%, rgb(10 14 20 / 0.1) 75%),
    linear-gradient(0deg, var(--background) 0%, transparent 30%),
    linear-gradient(180deg, rgb(10 14 20 / 0.6) 0%, transparent 25%);
}
.hero-video-title { text-shadow: 0 4px 30px rgb(0 0 0 / 0.6); }

/* ───────── Portada: panel de noticias ───────── */

.news { border-bottom: 1px solid var(--border); }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.news-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.news-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* La noticia más reciente, destacada en grande */
  .news-grid:not(.is-filtered) .news-card.is-featured { grid-column: span 2; grid-row: span 2; }
  .news-grid:not(.is-filtered) .news-card.is-featured .news-img { aspect-ratio: 16 / 10; }
  .news-grid:not(.is-filtered) .news-card.is-featured h3 { font-size: 2rem; }
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s;
}
.news-card[hidden] { display: none; }
.news-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.news-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--secondary); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-cat {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.15rem 0.5rem;
  font-family: Anton, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-body { display: flex; flex-direction: column; flex: 1; padding: 0.9rem 1rem 1rem; }
.news-body time { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); }
.news-body h3 { margin-top: 0.3rem; font-family: Anton, sans-serif; font-size: 1.3rem; line-height: 1.15; }
.news-body p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more { margin-top: auto; padding-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); }

/* ───────── E-sports ───────── */

.es-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 80% at 85% 20%, rgb(255 70 85 / 0.22), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 40px, rgb(255 255 255 / 0.025) 40px 41px),
    var(--background);
}
.es-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.es-stats > div { display: flex; align-items: baseline; gap: 0.5rem; border: 1px solid var(--border); background: var(--card); padding: 0.6rem 1rem; }
.es-stats b { font-family: Anton, sans-serif; font-size: 2rem; line-height: 1; }
.es-stats span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }

.es-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary);
  color: #fff;
  padding: 0.1rem 0.45rem;
  font-family: Anton, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: es-pulse 1.6s ease-in-out infinite;
}
.es-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgb(255 70 85 / 0.6);
  animation: es-ping 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes es-pulse { 50% { opacity: 0.65; } }
@keyframes es-ping { 70% { box-shadow: 0 0 0 7px rgb(255 70 85 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 70 85 / 0); } }

/* Champions */
.es-champs-head { display: flex; align-items: center; gap: 1.25rem; }
.es-champs-logo { width: 5.5rem; height: 5.5rem; object-fit: contain; filter: drop-shadow(0 0 18px rgb(232 196 106 / 0.35)); flex-shrink: 0; }
.es-champs-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.95rem; }
.es-stage-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.es-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--gold-line);
  background: rgb(0 0 0 / 0.35);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.es-stage b { font-family: Anton, sans-serif; font-weight: 400; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
.es-stage small { font-size: 0.7rem; color: var(--muted-foreground); letter-spacing: 0.1em; text-transform: uppercase; }
.es-stage:hover { border-color: var(--gold); }
.es-stage.is-active { border-color: var(--gold); background: linear-gradient(180deg, rgb(232 196 106 / 0.18), rgb(0 0 0 / 0.35)); }
.es-stage.is-active b { color: var(--gold); }

/* Cuadro */
.br-block + .br-block { margin-top: 1.5rem; }
.br-side { font-family: Anton, sans-serif; letter-spacing: 0.25em; font-size: 0.8rem; color: var(--gold); margin-bottom: 0.5rem; }
.br-scroll { overflow-x: auto; padding-bottom: 0.5rem; }
.br-cols { display: flex; gap: 1.5rem; min-width: max-content; }
.br-col { display: flex; flex-direction: column; width: 15rem; }
.br-col-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.br-col-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 0.75rem; flex: 1; }
.br-match {
  position: relative;
  display: block;
  border: 1px solid var(--gold-line);
  background: #111215;
  transition: border-color 0.2s, transform 0.2s;
}
.br-match:hover { border-color: var(--gold); transform: translateY(-2px); }
.br-team { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; font-size: 0.9rem; }
.br-team + .br-team { border-top: 1px solid rgb(255 255 255 / 0.06); }
.br-team img, .br-logo-empty { width: 1.4rem; height: 1.4rem; object-fit: contain; flex-shrink: 0; }
.br-logo-empty { background: rgb(255 255 255 / 0.06); }
.br-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-score { font-family: Anton, sans-serif; font-weight: 400; min-width: 1.2rem; text-align: right; color: var(--muted-foreground); }
.br-team.is-win { background: linear-gradient(90deg, rgb(232 196 106 / 0.16), transparent); }
.br-team.is-win .br-name { color: var(--gold-light); font-weight: 600; }
.br-team.is-win .br-score { color: var(--gold); }
.br-team.is-lose { opacity: 0.55; }
.br-time {
  display: block;
  border-top: 1px dashed rgb(255 255 255 / 0.08);
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.br-match.is-compact .br-team { padding: 0.35rem 0.5rem; font-size: 0.82rem; }

.br-groups { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .br-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.br-group { border: 1px solid var(--gold-line); background: rgb(0 0 0 / 0.35); padding: 1rem; min-width: 0; }
.br-group h4 { font-family: Anton, sans-serif; font-size: 1.5rem; color: var(--gold); margin-bottom: 0.75rem; }
.br-group .br-col { width: 10.5rem; }
.br-group .br-col:last-child { width: 9rem; }
.br-group .br-cols { gap: 0.75rem; }

/* Partidos */
.es-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .es-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.es-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.es-select {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  max-width: 100%;
}
.es-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.es-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  font-family: Anton, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  cursor: pointer;
}
.es-tab small { font-family: Barlow, sans-serif; font-size: 0.75rem; background: var(--secondary); padding: 0 0.4rem; }
.es-tab:hover { color: var(--foreground); }
.es-tab.is-active { color: var(--primary); border-color: var(--primary); }

.mr-day + .mr-day { margin-top: 1.25rem; }
.mr-day h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.mr {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  grid-template-areas: "time vs" "time event";
  gap: 0.35rem 1rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.mr + .mr { margin-top: 0.4rem; }
.mr:hover { border-color: var(--primary); }
.mr.is-live { border-color: var(--primary); background: linear-gradient(90deg, rgb(255 70 85 / 0.12), var(--card) 40%); }
.mr-time { grid-area: time; font-size: 0.8rem; color: var(--muted-foreground); }
.mr-time b { font-family: Anton, sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--foreground); }
.mr-vs { grid-area: vs; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.mr-team { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-weight: 600; }
.mr-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-team.is-right { justify-content: flex-end; text-align: right; }
.mr-team.is-win span { color: var(--primary); }
.mr-score { display: flex; align-items: center; gap: 0.35rem; font-family: Anton, sans-serif; font-size: 1.35rem; }
.mr-score b { font-weight: 400; color: var(--muted-foreground); }
.mr-score b.is-win { color: var(--foreground); }
.mr-score i { font-style: normal; font-size: 0.9rem; color: var(--muted-foreground); }
.mr-event { grid-area: event; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted-foreground); min-width: 0; }
.mr-event img { width: 1.25rem; height: 1.25rem; object-fit: contain; flex-shrink: 0; }
.mr-event div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.mr-event b { color: var(--foreground); font-weight: 600; }
.es-flag { width: 18px; height: 12px; object-fit: cover; flex-shrink: 0; }
.es-flag-empty { display: inline-block; background: rgb(255 255 255 / 0.08); }
.es-empty { border: 1px dashed var(--border); padding: 2rem; text-align: center; color: var(--muted-foreground); }
@media (max-width: 560px) {
  .mr { grid-template-columns: 1fr; grid-template-areas: "time" "vs" "event"; }
}

/* Competiciones */
.es-events { display: grid; gap: 0.5rem; }
.es-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s;
}
.es-event:hover { border-color: var(--primary); }
.es-event img, .es-event-logo-empty { width: 2.5rem; height: 2.5rem; object-fit: contain; flex-shrink: 0; }
.es-event-logo-empty { background: var(--secondary); }
.es-event b { display: block; font-size: 0.9rem; line-height: 1.25; }
.es-event span { font-size: 0.75rem; color: var(--muted-foreground); }
.es-event .es-dot { margin-left: auto; }

/* Titulares */
.es-headlines { display: grid; gap: 0; border: 1px solid var(--border); }
.es-headlines li + li { border-top: 1px solid var(--border); }
.es-headlines a { display: grid; gap: 0.2rem; padding: 0.75rem 1rem; background: var(--card); transition: background-color 0.15s; }
.es-headlines a:hover { background: var(--secondary); }
.es-headlines b { font-weight: 600; }
.es-headlines span { font-size: 0.85rem; color: var(--muted-foreground); }
.es-headlines time { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

/* Pie de página */
.site-disclaimer { max-width: 46rem; margin: 0.6rem auto 0; padding: 0 1rem; font-size: 0.7rem; line-height: 1.5; opacity: 0.75; }

/* ───────── Cabecera y menú de 3 líneas ───────── */

.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Logo VALARSENAL: grande en todas las pantallas */
.site-logo { font-size: 2rem; line-height: 1; letter-spacing: 0.04em; }
@media (min-width: 640px) { .site-logo { font-size: 2.6rem; } }
@media (min-width: 1024px) { .site-logo { font-size: 3.5rem; } }

.menu-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-toggle:hover, .menu-open .menu-toggle { border-color: var(--primary); }
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 1.4rem;
  height: 2px;
  margin-left: -0.7rem;
  background: var(--foreground);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.menu-toggle span:nth-child(1) { top: calc(50% - 7px); }
.menu-toggle span:nth-child(2) { top: calc(50% - 1px); }
.menu-toggle span:nth-child(3) { top: calc(50% + 5px); }
/* Al abrir, las 3 líneas se convierten en una X */
.menu-open .menu-toggle span { background: var(--primary); }
.menu-open .menu-toggle span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Con el menú abierto la barra superior queda por encima del panel,
   así el botón (ahora una X) sigue a mano para cerrarlo. */
.menu-open header { z-index: 70; }

/* Fondo oscuro sobre la página mientras el menú está abierto */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

/* Panel lateral: sale desde la derecha, donde están las 3 líneas */
.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(380px, 88vw);
  height: 100dvh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgb(255 70 85 / 0.08), transparent 40%),
    var(--background);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px rgb(0 0 0 / 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
}
.menu-open .site-menu {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
/* Línea roja en el borde por el que sale el panel */
.site-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), transparent 70%);
}
.site-menu > div {
  display: grid;
  gap: 0.6rem;
  padding: 5.5rem 1.25rem 2rem;
}
.menu-title {
  margin-bottom: 0.4rem;
  font-family: Anton, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--primary);
}
/* Las opciones entran una detrás de otra */
.site-menu .menu-link {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, background-color 0.2s;
}
.menu-open .site-menu .menu-link { opacity: 1; transform: none; }
.menu-open .site-menu .menu-link:nth-of-type(1) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.menu-open .site-menu .menu-link:nth-of-type(2) { transition-delay: 0.13s, 0.13s, 0s, 0s; }
.menu-open .site-menu .menu-link:nth-of-type(3) { transition-delay: 0.18s, 0.18s, 0s, 0s; }
.menu-open .site-menu .menu-link:nth-of-type(4) { transition-delay: 0.23s, 0.23s, 0s, 0s; }
.menu-open .site-menu .menu-link:nth-of-type(5) { transition-delay: 0.28s, 0.28s, 0s, 0s; }

/* Evita que la página se desplace por detrás */
body.menu-open { overflow: hidden; }

.menu-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, background-color 0.2s;
}
.menu-link small { grid-row: span 2; font-family: Anton, sans-serif; font-size: 0.85rem; color: var(--primary); opacity: 0.6; }
.menu-link b { font-family: Anton, sans-serif; font-weight: 400; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.menu-link span { font-size: 0.8rem; color: var(--muted-foreground); }
.menu-link:hover, .menu-link.is-active { border-color: var(--primary); }
.menu-link.is-active b { color: var(--primary); }
.menu-link.is-active small { opacity: 1; }

/* La opción de Competitivo lleva el toque dorado de su página */
.menu-link-gold small { color: #e8c46a; }
.menu-link-gold:hover, .menu-link-gold.is-active { border-color: #e8c46a; background: linear-gradient(180deg, rgb(232 196 106 / 0.1), var(--card)); }
.menu-link-gold.is-active b {
  background: linear-gradient(180deg, #fff1c4, #e8c46a 50%, #a8823a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────── Rangos (portada) ───────── */

.rank-card { cursor: pointer; transition: background-color 0.2s; }
.rank-card:hover { background: var(--card); }
.rank-gem { width: 3.25rem; height: 3.25rem; object-fit: contain; }
.rank-more { opacity: 0; transition: opacity 0.2s; }
.rank-card:hover .rank-more, .rank-card:focus-visible .rank-more { opacity: 1; }
@media (hover: none) { .rank-more { opacity: 1; } }

.rank-modal { max-height: 92svh; overflow-y: auto; }
.rank-modal-head { display: flex; align-items: center; gap: 1.25rem; }
.rank-modal-head img { width: 6rem; height: 6rem; object-fit: contain; flex-shrink: 0; }

.rank-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.rank-big > div { background: var(--background); padding: 1rem 1.25rem; }
.rank-big-num { font-family: Anton, sans-serif; font-size: 2.75rem; line-height: 1; color: var(--primary); }
.rank-big-num small { font-size: 1.25rem; margin-left: 0.15rem; }

.rank-bar { display: block; height: 6px; background: var(--secondary); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--primary); }

.rank-divs { display: grid; gap: 0.5rem; }
.rank-div {
  display: grid;
  grid-template-columns: 2.25rem 8.5rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.rank-div img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.rank-div b { text-align: right; font-weight: 600; }
@media (max-width: 480px) {
  .rank-div { grid-template-columns: 2rem 1fr 3.5rem; }
  .rank-div .rank-bar { display: none; }
}

.rank-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.rank-stat { border: 1px solid var(--border); background: var(--background); padding: 0.85rem 1rem; }
.rank-stat-num { font-family: Anton, sans-serif; font-size: 1.9rem; line-height: 1.1; }
.rank-stat-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.5rem; }

.rank-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rank-tops ol { display: grid; gap: 0.35rem; }
.rank-tops li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; font-size: 0.9rem; }
.rank-tops li b { color: var(--muted-foreground); font-weight: 600; }

.rank-nav { display: flex; justify-content: space-between; gap: 0.5rem; }

/* ───────── Competitivo: estilo Champions (negro y oro) ───────── */

.champions {
  --gold: #e8c46a;
  --gold-light: #fff1c4;
  --gold-dark: #a8823a;
  --gold-line: rgb(232 196 106 / 0.28);
  --gold-grad: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  --ink: #0b0b0d;
  --ink-2: #131316;
  position: relative;
  /* clip (no hidden) para que el índice fijo de la guía del RR pueda quedarse arriba */
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(232 196 106 / 0.16), transparent 70%),
    radial-gradient(40% 35% at 100% 100%, rgb(232 196 106 / 0.08), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
/* Líneas diagonales finas de fondo */
.champions-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgb(232 196 106 / 0.045) 46px 47px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.champions::before,
.champions::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(70%, 900px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.champions::before { top: 0; }
.champions::after { bottom: 0; }

.champ-gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cabecera */
.champ-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.champ-trophy {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  fill: rgb(232 196 106 / 0.12);
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgb(232 196 106 / 0.45));
}
.champ-trophy .champ-star { fill: var(--gold); stroke: none; }
.champ-eyebrow {
  font-family: Anton, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.champ-title {
  margin-top: 0.75rem;
  font-family: Anton, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.95;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgb(232 196 106 / 0.25));
}
.champ-title-sm { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; }
.champ-rule {
  position: relative;
  height: 1px;
  width: min(100%, 26rem);
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.champ-rule i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 12px var(--gold);
}
.champ-lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); }

/* Marco con esquinas doradas alrededor de los rangos */
.champ-frame { position: relative; padding: 10px; }
.champ-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}
.champ-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.champ-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.champ-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.champ-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.champ-ranks {
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}
.champions .rank-card { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.champions .rank-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.champions .rank-card:hover {
  background: linear-gradient(180deg, rgb(232 196 106 / 0.12), var(--ink) 75%);
}
.champions .rank-card:hover::after { transform: scaleX(1); }
.champ-num { color: var(--gold-dark); }

/* Bloques de "Cómo se calcula" */
.champ-callout {
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgb(232 196 106 / 0.1), transparent);
}
.champ-factors {
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}
.champ-factor {
  position: relative;
  background: var(--ink-2);
}
.champ-factor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 2.5rem;
  height: 2px;
  background: var(--gold-grad);
}

.champ-notes { border-top: 1px solid var(--gold-line); }
.champ-note-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Anton, sans-serif;
  font-size: 1.25rem;
  color: var(--gold);
}
.champ-note-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ───────── Guía del RR (dentro de la sección dorada) ───────── */

.rr-guide { margin-top: 5rem; }
.rr-intro { max-width: 52rem; margin: 0 auto; text-align: center; }
.rr-lead { margin-top: 1rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); }
.rr-index {
  position: sticky;
  top: 4.75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding: 0.6rem;
  background: rgb(11 11 13 / 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gold-line);
}
.rr-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  border: 1px solid transparent;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: var(--foreground);
  transition: border-color 0.15s, color 0.15s;
}
.rr-index a small { font-family: Anton, sans-serif; color: var(--gold-dark); }
.rr-index a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 640px) {
  .rr-index { position: static; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .rr-index a { white-space: nowrap; }
}

.rr-section { margin-top: 4.5rem; scroll-margin-top: 6rem; }
.rr-head { scroll-margin-top: 9rem; margin-bottom: 1.5rem; }
.rr-head .rr-lead { margin-top: 0.6rem; max-width: 46rem; }
.rr-sub { margin: 2rem 0 0.9rem; font-family: Anton, sans-serif; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--gold-light); }
.rr-sub.mt-0 { margin-top: 0; }
.rr-note { margin-top: 1rem; font-size: 0.85rem; line-height: 1.6; color: var(--muted-foreground); }
.rr-note b { color: var(--gold-light); }

/* 01 · Cifras clave */
.rr-keys { display: grid; gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .rr-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rr-keys { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rr-keys > div { background: #0f0f12; padding: 1.25rem 1rem; }
.rr-keys b {
  display: block;
  font-family: Anton, sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rr-keys span { display: block; margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted-foreground); }

/* Tarjetas genéricas */
.rr-duo { display: grid; gap: 1rem; }
@media (min-width: 900px) { .rr-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rr-card { border: 1px solid var(--gold-line); background: #111215; padding: 1.25rem 1.4rem; }
.rr-card h3 { margin-top: 0.4rem; font-family: Anton, sans-serif; font-size: 1.6rem; }
.rr-card p:not(.rr-tag) { margin-top: 0.5rem; line-height: 1.65; color: rgb(236 232 225 / 0.8); }
.rr-tag {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 0.05rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.rr-tag.is-hidden { border-color: #8b93a3; color: #b3b8c2; }
.rr-tag.is-bad { border-color: var(--primary); color: var(--primary); }

/* 02 · Convergencia */
.rr-conv { display: grid; gap: 1rem; }
@media (min-width: 900px) { .rr-conv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rr-conv-card { border: 1px solid var(--gold-line); background: #111215; padding: 1.25rem; }
.rr-conv-card h4 { font-family: Anton, sans-serif; font-size: 1.15rem; line-height: 1.2; }
.rr-conv-sub { margin-top: 0.25rem; font-size: 0.8rem; color: var(--gold); }
.rr-conv-card > p:last-child { margin-top: 0.9rem; font-size: 0.9rem; line-height: 1.55; color: rgb(236 232 225 / 0.8); }
.rr-bars { display: grid; gap: 0.5rem; margin-top: 1rem; }
.rr-bars div { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.rr-bars div::after { content: none; }
.rr-bars i { display: block; height: 10px; }
.rr-bars i.is-win { background: linear-gradient(90deg, #2f9e6b, #3ecf8e); }
.rr-bars i.is-loss { background: linear-gradient(90deg, #b23443, var(--primary)); }

/* 03 · Factores */
.rr-factors { display: grid; gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
@media (min-width: 900px) { .rr-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rr-factor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; background: #111215; padding: 1.4rem; }
.rr-factor-n { font-family: Anton, sans-serif; font-size: 2.6rem; line-height: 1; }
.rr-factor h3 { font-family: Anton, sans-serif; font-size: 1.4rem; }
.rr-factor p { margin-top: 0.6rem; line-height: 1.6; color: rgb(236 232 225 / 0.8); }
.rr-factor p b { color: var(--gold-light); }
.rr-weight { margin-top: 0.5rem; height: 6px; background: rgb(255 255 255 / 0.07); }
.rr-weight i { display: block; height: 100%; background: var(--gold-grad); background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); }
.rr-extra { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 900px) { .rr-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rr-extra > div { border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgb(232 196 106 / 0.08), transparent); padding: 0.8rem 1rem; }
.rr-extra h4 { font-family: Anton, sans-serif; font-size: 1.1rem; color: var(--gold); }
.rr-extra p { margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.55; color: rgb(236 232 225 / 0.8); }

/* 04 · Barra de división */
/* Las marcas alternan arriba (is-up) y abajo de la barra para no pisarse */
.rr-track { position: relative; height: 12rem; margin: 1rem 3rem 0; }
.rr-track-bar { position: absolute; left: 0; right: 0; top: 5.6rem; height: 10px; background: rgb(255 255 255 / 0.07); }
.rr-track-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--gold-dark) 20%, var(--gold) 70%, #3ecf8e 100%); opacity: 0.85; }
.rr-mark { position: absolute; top: 4.9rem; transform: translateX(-50%); width: 9rem; text-align: center; }
.rr-mark.is-up { top: auto; bottom: 6.4rem; display: flex; flex-direction: column-reverse; }
.rr-mark.is-up b { margin-top: 0; }
.rr-mark.is-up small { margin-bottom: 0.15rem; }
.rr-mark.is-up .rr-mark-dot { margin-top: 0.6rem; }
.rr-mark-dot { display: block; width: 18px; height: 18px; margin: 0.35rem auto 0; background: #0b0b0d; border: 2px solid var(--gold); transform: rotate(45deg); }
.rr-mark b { display: block; margin-top: 0.6rem; font-family: Anton, sans-serif; font-weight: 400; font-size: 1.15rem; color: var(--gold-light); }
.rr-mark small { display: block; font-size: 0.72rem; line-height: 1.3; color: var(--muted-foreground); }
@media (max-width: 760px) {
  .rr-track { height: auto; margin: 0; display: grid; gap: 0.5rem; }
  .rr-track-bar { display: none; }
  .rr-mark, .rr-mark.is-up { position: static; transform: none; width: auto; display: grid; grid-template-columns: auto 4.5rem 1fr; align-items: center; gap: 0.6rem; text-align: left; left: auto !important; }
  .rr-mark.is-up small { margin: 0; }
  .rr-mark-dot { margin: 0; }
  .rr-mark b { margin: 0; }
}

.rr-shields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  border: 1px solid var(--gold-line);
  background: #111215;
  padding: 1.4rem;
}
.rr-shields h3 { font-family: Anton, sans-serif; font-size: 1.6rem; }
.rr-shield-icon { display: flex; gap: 0.4rem; }
.rr-shield-icon svg { width: 2.6rem; height: 3rem; fill: rgb(232 196 106 / 0.15); stroke: var(--gold); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgb(232 196 106 / 0.4)); }
@media (max-width: 560px) { .rr-shields { grid-template-columns: 1fr; } }

.rr-list { display: grid; gap: 0.55rem; }
.rr-list li { position: relative; padding-left: 1.25rem; line-height: 1.6; color: rgb(236 232 225 / 0.85); }
.rr-list li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.rr-list b { color: var(--gold-light); }
.rr-shields .rr-list { margin-top: 0.75rem; }

/* 05 · Inmortal y Radiante */
.rr-top-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .rr-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.rr-table-wrap { overflow-x: auto; }
.rr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rr-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding: 0.6rem 0.75rem; }
.rr-table td { border-bottom: 1px solid var(--gold-line); padding: 0.65rem 0.75rem; color: rgb(236 232 225 / 0.85); }
.rr-table tr:hover td { background: rgb(232 196 106 / 0.05); }
.rr-table td b { color: var(--gold-light); }

/* 06 · Actos */
.rr-acts { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .rr-acts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rr-act { border: 1px solid var(--gold-line); background: #111215; padding: 0.9rem; }
.rr-act b { display: block; font-family: Anton, sans-serif; font-weight: 400; font-size: 1.3rem; }
.rr-act span { display: block; margin-top: 0.3rem; font-size: 0.85rem; }
.rr-act small { display: block; margin-top: 0.2rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.rr-act.is-big { border-color: var(--gold); background: linear-gradient(180deg, rgb(232 196 106 / 0.14), #111215); }
.rr-act.is-big b { color: var(--gold); }

/* 07 · Rango de acto */
.rr-act-rank { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .rr-act-rank { grid-template-columns: 14rem minmax(0, 1fr); } }
.rr-pyramid { width: 100%; max-width: 14rem; margin: 0 auto; }
.rr-pyramid polygon { fill: rgb(232 196 106 / 0.12); stroke: var(--gold-dark); stroke-width: 1.2; }
.rr-pyramid polygon.is-mid { fill: rgb(232 196 106 / 0.3); }
.rr-pyramid polygon.is-top { fill: var(--gold); stroke: var(--gold-light); filter: drop-shadow(0 0 6px var(--gold)); }

/* 10 · Cronología 2026 */
.rr-timeline { position: relative; display: grid; gap: 1.25rem; padding-left: 1.75rem; }
.rr-timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(180deg, var(--gold), var(--gold-line)); }
.rr-timeline li { position: relative; }
.rr-timeline li::before { content: ""; position: absolute; left: -1.75rem; top: 0.3rem; width: 0.95rem; height: 0.95rem; background: #0b0b0d; border: 2px solid var(--gold); transform: rotate(45deg); }
.rr-when { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.rr-timeline h3 { margin-top: 0.15rem; font-family: Anton, sans-serif; font-size: 1.35rem; }
.rr-timeline p { margin-top: 0.3rem; line-height: 1.6; color: rgb(236 232 225 / 0.8); max-width: 52rem; }

/* 11 · Consejos */
.rr-tips { display: grid; gap: 1rem; }
@media (min-width: 700px) { .rr-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rr-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rr-tip { position: relative; border: 1px solid var(--gold-line); background: #111215; padding: 1.25rem 1.25rem 1.25rem 4rem; }
.rr-tip span { position: absolute; left: 1.1rem; top: 1.05rem; font-family: Anton, sans-serif; font-size: 1.8rem; line-height: 1; color: var(--gold-dark); }
.rr-tip h3 { font-family: Anton, sans-serif; font-size: 1.2rem; color: var(--gold-light); }
.rr-tip p { margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.55; color: rgb(236 232 225 / 0.8); }

/* Fuentes */
.rr-sources ul { display: grid; gap: 0.35rem; }
@media (min-width: 800px) { .rr-sources ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rr-sources a { font-size: 0.85rem; color: var(--gold); }
.rr-sources a:hover { text-decoration: underline; }

/* Ventana de datos de un rango */
.champ-modal {
  --gold: #e8c46a;
  --gold-light: #fff1c4;
  --gold-dark: #a8823a;
  --gold-line: rgb(232 196 106 / 0.28);
  background:
    radial-gradient(70% 40% at 50% 0%, rgb(232 196 106 / 0.12), transparent 70%),
    #0f0f12;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 0 40px rgb(232 196 106 / 0.15);
}
.champ-modal .text-primary { color: var(--gold); }
.champ-modal .rank-big { background: var(--gold-line); border-color: var(--gold-line); }
.champ-modal .rank-big > div,
.champ-modal .rank-stat { background: #0b0b0d; }
.champ-modal .rank-stat { border-color: var(--gold-line); }
.champ-modal .rank-big-num {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.champ-modal .rank-bar i { background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); }
.champ-modal .rank-tops li { border-color: var(--gold-line); }
.champ-modal .lu-btn { border-color: var(--gold-line); }
.champ-modal .lu-btn:hover { border-color: var(--gold); color: var(--gold); }
.champ-modal [data-close]:hover { color: var(--gold); }

/* ───────── Mapas: tarjetas y plano con zonas ───────── */

.map-card-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--primary);
  background: rgb(0 0 0 / 0.65);
  padding: 0.45rem 0.9rem;
  font-family: Anton, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--foreground);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.map-card:hover .map-card-cta { opacity: 1; }
.map-card:hover { opacity: 1; }

/* ───────── Meta competitivo de cada mapa ───────── */

.mm {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 60% at 100% 0%, rgb(255 70 85 / 0.1), transparent 70%),
    var(--background);
}
.mm-layout { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .mm-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.mm-panel { border: 1px solid var(--border); background: var(--card); padding: 1.25rem; min-width: 0; }
.mm-empty { border: 1px dashed var(--border); padding: 1.5rem; text-align: center; }

.mm-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--border); padding-bottom: 0.9rem; }
.mm-tabs button {
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  font-family: Anton, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.mm-tabs button:hover { border-color: var(--primary); color: var(--foreground); }
.mm-tabs button.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.mm-desc { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted-foreground); }

.mm-comp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.mm-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--secondary), var(--background));
  padding: 0.75rem 0.4rem 0.6rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.mm-agent:hover { border-color: var(--primary); transform: translateY(-3px); }
.mm-agent-img { width: 100%; max-width: 5rem; aspect-ratio: 1; object-fit: contain; }
.mm-agent b { font-family: Anton, sans-serif; font-weight: 400; font-size: 1.1rem; line-height: 1.1; overflow-wrap: anywhere; }
.mm-agent span { display: flex; align-items: center; gap: 0.25rem; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.mm-agent span img { width: 0.85rem; height: 0.85rem; }
@media (max-width: 520px) {
  .mm-comp { gap: 0.35rem; }
  .mm-agent { padding: 0.5rem 0.2rem; }
  .mm-agent b { font-size: 0.8rem; }
  .mm-agent span { display: none; }
}

.mm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 0.9rem; background: var(--border); border: 1px solid var(--border); }
.mm-stats > div { background: var(--background); padding: 0.75rem 0.9rem; }
.mm-stats b { display: block; font-family: Anton, sans-serif; font-weight: 400; font-size: 1.9rem; line-height: 1; }
.mm-stats span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.is-good { color: #3ecf8e; }
.is-bad { color: var(--primary); }

.mm-alt-title { margin-top: 1.25rem; font-size: 0.7rem; letter-spacing: 0.25em; color: var(--muted-foreground); }
.mm-alts { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.mm-row { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 0.4rem 0.75rem; }
.mm-row-n { font-family: Anton, sans-serif; color: var(--muted-foreground); }
.mm-row-icons { display: flex; gap: 0.3rem; min-width: 0; }
.mm-row-icons img { width: 2rem; height: 2rem; object-fit: contain; background: var(--secondary); }
.mm-row-wr { font-family: Anton, sans-serif; font-size: 1.1rem; }
.mm-row-m { font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 520px) { .mm-row-icons img { width: 1.6rem; height: 1.6rem; } .mm-row-m { display: none; } }

.mm-title { font-family: Anton, sans-serif; font-size: 1.5rem; }
.mm-sub { font-size: 0.75rem; color: var(--muted-foreground); }
.mm-rank { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.mm-rank li { display: grid; grid-template-columns: 1.6rem minmax(0, 7.5rem) minmax(0, 1fr) 3.4rem; align-items: center; gap: 0.6rem; }
.mm-pos { display: grid; place-items: center; height: 1.6rem; font-family: Anton, sans-serif; font-size: 0.9rem; background: var(--secondary); color: var(--muted-foreground); }
.mm-pos.is-top { background: var(--primary); color: var(--primary-foreground); }
.mm-rank-agent { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.mm-rank-agent img { width: 1.9rem; height: 1.9rem; object-fit: contain; flex-shrink: 0; }
.mm-rank-agent b { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-rank-agent:hover b { color: var(--primary); }
.mm-bar { position: relative; height: 1.35rem; background: var(--secondary); }
.mm-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgb(255 70 85 / 0.45), var(--primary)); }
.mm-bar em { position: relative; padding-left: 0.4rem; font-style: normal; font-size: 0.75rem; font-weight: 600; line-height: 1.35rem; }
.mm-wr { font-size: 0.8rem; font-weight: 600; text-align: right; }
.mm-more { margin-top: 0.9rem; width: 100%; border: 1px solid var(--border); padding: 0.45rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); cursor: pointer; }
.mm-more:hover { border-color: var(--primary); color: var(--foreground); }

.mapx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mapx-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mapx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mapx-chip i { width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); }
.mapx-chip small { color: var(--muted-foreground); }
.mapx-chip:hover { border-color: var(--c); }
.mapx-chip.is-active { border-color: var(--c); background: color-mix(in oklab, var(--c) 18%, var(--card)); }

.mapx-tools { display: flex; gap: 0.5rem; }
.mapx-lang, .mapx-zoom { display: flex; border: 1px solid var(--border); }
.mapx-lang button, .mapx-zoom button {
  min-width: 2.4rem;
  padding: 0.35rem 0.6rem;
  font-family: Anton, sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  cursor: pointer;
}
.mapx-lang button + button, .mapx-zoom button + button { border-left: 1px solid var(--border); }
.mapx-lang button.is-active { background: var(--primary); color: var(--primary-foreground); }
.mapx-zoom button:hover, .mapx-lang button:hover:not(.is-active) { color: var(--foreground); }

.mapx-layout { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) {
  .mapx-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}

.mapx-viewport {
  overflow: auto;
  max-height: 85svh;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    #0d1117;
}
.mapx-canvas {
  --zoom: 1;
  position: relative;
  width: min(100%, 80svh);
  aspect-ratio: 1;
  margin: 0 auto;
  transition: width 0.25s;
}
.mapx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.9; }

.mapx-label {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  border: 1px solid var(--c);
  border-left-width: 3px;
  background: rgb(10 12 16 / 0.82);
  padding: 0.1rem 0.4rem;
  font-size: clamp(0.55rem, calc(0.6rem + 0.15vw * var(--zoom)), 0.85rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background-color 0.15s;
  z-index: 1;
}
.mapx-label:hover, .mapx-label.is-hl {
  z-index: 3;
  background: var(--c);
  color: #0b0b0d;
  transform: translate(-50%, -50%) scale(1.15);
}
.mapx-label.is-dim { opacity: 0.15; }

.mapx-list {
  border: 1px solid var(--border);
  background: var(--card);
  max-height: 85svh;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}
.mapx-group + .mapx-group { margin-top: 0.75rem; }
.mapx-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: sticky;
  top: -0.5rem;
  padding: 0.6rem 0 0.4rem;
  background: var(--card);
  font-family: Anton, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--c);
}
.mapx-group h3 i { width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); }
.mapx-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.35rem;
  font-size: 0.9rem;
  cursor: default;
  transition: background-color 0.15s;
}
.mapx-group li small { color: var(--muted-foreground); font-size: 0.75rem; text-align: right; }
.mapx-group li.is-hl { background: var(--secondary); }

/* ───────── Pestañas Armas / Amuletos ───────── */

.armory-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.armory-tabs nav { display: flex; }
.armory-tab {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1.25rem;
  font-family: Anton, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.15s, border-color 0.15s;
}
.armory-tab:hover { color: var(--foreground); }
.armory-tab.is-active { border-color: var(--primary); color: var(--primary); }

/* ───────── Ficha de agente: habilidades con los colores del agente ─────────
   --ag-1 / --ag-2 son el color principal y secundario de cada agente
   (se calculan en js/pages.js → agentThemeVars). */

.agent-kit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 0% 0%, color-mix(in oklab, var(--ag-deep) 85%, transparent), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in oklab, var(--ag-deep-2) 70%, transparent), transparent 70%),
    var(--background);
  border-top: 1px solid color-mix(in oklab, var(--ag-1) 45%, transparent);
}
/* Arte del agente (su nombre en vertical) como marca de agua */
.agent-kit-watermark {
  position: absolute;
  right: -4%;
  top: 0;
  z-index: -1;
  height: 100%;
  opacity: 0.07;
  pointer-events: none;
}
.agent-kit-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in oklab, var(--ag-1) 6%, transparent) 22px 23px);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  pointer-events: none;
}

.agent-eyebrow {
  font-family: Anton, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--ag-1);
}

.agent-role {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid color-mix(in oklab, var(--ag-1) 35%, transparent);
  border-left: 4px solid var(--ag-1);
  background: linear-gradient(90deg, color-mix(in oklab, var(--ag-1) 14%, transparent), rgb(0 0 0 / 0.25));
  padding: 1.1rem 1.25rem;
  margin-bottom: 3rem;
}
.agent-role img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  padding: 0.4rem;
  background: color-mix(in oklab, var(--ag-1) 25%, transparent);
  filter: drop-shadow(0 0 8px var(--ag-1));
}

.agent-kit-head { margin-bottom: 1.75rem; }
.agent-kit-title {
  margin-top: 0.35rem;
  font-family: Anton, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  background: linear-gradient(90deg, #fff 10%, var(--ag-1) 55%, var(--ag-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agent-abilities { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .agent-abilities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .agent-ability.is-ult { grid-column: span 2; }
}

.agent-ability {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid color-mix(in oklab, var(--ag-1) 25%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--ag-1) 10%, transparent), transparent 55%),
    rgb(12 16 22 / 0.85);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
/* Esquina cortada y línea de color arriba, al estilo de la interfaz del juego */
.agent-ability::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ag-1), var(--ag-2), transparent 80%);
}
.agent-ability::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--ag-1) 50%);
  opacity: 0.7;
}
.agent-ability:hover {
  transform: translateY(-3px);
  border-color: var(--ag-1);
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--ag-1) 60%, transparent);
}
@media (min-width: 640px) { .agent-ability { padding: 1.5rem; gap: 1.4rem; } }

.agent-ability-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--ag-1) 45%, transparent), transparent 70%),
    linear-gradient(160deg, var(--ag-deep), #0b0f14);
  border: 1px solid color-mix(in oklab, var(--ag-1) 55%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.agent-ability-icon img {
  width: 2.9rem;
  height: 2.9rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--ag-1));
}
.agent-key {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 1.35rem;
  padding: 0.05rem 0.3rem;
  background: var(--ag-1);
  color: #0b0b0d;
  font-family: Anton, sans-serif;
  font-size: 0.8rem;
  text-align: center;
}

.agent-slot {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ag-1);
}
.agent-ability-name {
  font-family: Anton, sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Definitiva: tarjeta ancha con el retrato del agente y borde degradado */
.agent-ability.is-ult {
  border-color: transparent;
  background:
    linear-gradient(rgb(12 16 22 / 0.9), rgb(12 16 22 / 0.9)) padding-box,
    linear-gradient(120deg, var(--ag-1), var(--ag-2), color-mix(in oklab, var(--ag-1) 30%, transparent)) border-box;
  border-width: 1px;
  min-height: 11rem;
}
.agent-ability.is-ult .agent-ability-icon { width: 5rem; height: 5rem; }
.agent-ability.is-ult .agent-ability-icon img { width: 3.4rem; height: 3.4rem; }
.agent-ability.is-ult .agent-slot::after {
  content: " ★";
  color: var(--ag-2);
}
.agent-ult-portrait {
  position: absolute;
  right: -2%;
  top: -10%;
  height: 160%;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.agent-desc { line-height: 1.65; color: rgb(236 232 225 / 0.8); }

/* Habilidades con vídeo: clicables */
.agent-ability.has-video { cursor: pointer; }
.agent-ability.has-video:focus-visible { outline: 2px solid var(--ag-1); outline-offset: 3px; }
.agent-play {
  position: absolute;
  right: 0.9rem;
  top: 0.8rem;
  z-index: 2;
  border: 1px solid color-mix(in oklab, var(--ag-1) 60%, transparent);
  background: rgb(0 0 0 / 0.5);
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-1);
  transition: background-color 0.2s, color 0.2s;
}
.agent-ability.has-video:hover .agent-play { background: var(--ag-1); color: #0b0b0d; }
@media (max-width: 480px) {
  .agent-play { position: static; justify-self: start; grid-column: 1 / -1; }
}

/* Ventana del vídeo de una habilidad */
.ab-modal {
  position: relative;
  width: 100%;
  max-width: 64rem;
  max-height: 94svh;
  overflow-y: auto;
  border: 1px solid var(--ag-1);
  background:
    radial-gradient(60% 50% at 0% 100%, color-mix(in oklab, var(--ag-deep) 80%, transparent), transparent 70%),
    #0c1016;
  box-shadow: 0 0 50px -10px color-mix(in oklab, var(--ag-1) 55%, transparent);
}
.ab-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--ag-1), var(--ag-2), transparent);
}
.ab-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.6rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.ab-modal-close:hover { background: var(--ag-1); color: #0b0b0d; }
.ab-modal-video { background: #000; aspect-ratio: 16 / 9; }
.ab-modal-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ab-modal-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem 1.5rem 1.5rem; }
@media (min-width: 768px) {
  .agent-ability.is-ult .agent-desc { max-width: 65%; }
}

/* ───────── Lineups (ficha de agente) ───────── */

.lu-maps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lu-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-family: Anton, sans-serif;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.lu-map:hover { border-color: var(--primary); }
.lu-map small {
  min-width: 1.4em;
  padding: 0 0.35em;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-family: Barlow, sans-serif;
  font-size: 0.75rem;
  text-align: center;
}
.lu-map.is-empty { opacity: 0.45; }
.lu-map.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 1;
}
.lu-map.is-active small { background: rgb(0 0 0 / 0.25); color: inherit; }

/* Dificultad: 1 = verde, 2 = ámbar, 3 = rojo */
.lu-diff {
  --diff: var(--rank-ascendant);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--diff);
  color: var(--diff);
  padding: 0.15rem 0.55rem 0.15rem 0.45rem;
  font-family: Anton, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lu-diff i {
  width: 5px;
  height: 11px;
  background: var(--diff);
  opacity: 0.25;
}
.lu-diff i:last-of-type { margin-right: 0.35rem; }
.lu-diff-1 i:nth-of-type(-n + 1),
.lu-diff-2 i:nth-of-type(-n + 2),
.lu-diff-3 i { opacity: 1; }
.lu-diff-2 { --diff: var(--rank-gold); }
.lu-diff-3 { --diff: var(--primary); }

.lu-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.lu-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.lu-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s;
}
.lu-tile:hover { border-color: var(--primary); }
.lu-tile-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary);
}
.lu-tile-img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.lu-tile:hover .lu-tile-img > img:first-child { transform: scale(1.06); }
.lu-tile-ability {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.3rem;
  background: rgb(0 0 0 / 0.65);
  border: 1px solid var(--border);
}
.lu-tile-body { padding: 0.85rem 1rem 1rem; }

/* Página de un lineup */
.lu-hero-shade {
  background: linear-gradient(to right, var(--background) 10%, rgb(0 0 0 / 0.35)), linear-gradient(to top, var(--background), transparent 70%);
}
.lu-hero { display: flex; align-items: center; gap: 1rem; }
.lu-hero-agent { width: 4.5rem; height: 4.5rem; flex-shrink: 0; }
.lu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.lu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: rgb(0 0 0 / 0.35);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.lu-chip b { color: var(--foreground); font-weight: 600; }
.lu-chip img { width: 1.1rem; height: 1.1rem; }

.lu-detail { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .lu-detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .lu-detail > aside { position: sticky; top: 6rem; }
}
.lu-main-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
  cursor: zoom-in;
  padding: 0;
}
.lu-main-img img { width: 100%; height: 100%; object-fit: cover; }
.lu-main-img:hover { border-color: var(--primary); }

.lu-steps { display: grid; gap: 0.75rem; }
.lu-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.lu-steps li span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: Anton, sans-serif;
}
.lu-steps li p { padding-top: 0.2rem; line-height: 1.55; }

.lu-tag {
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.lu-pager { display: flex; justify-content: space-between; gap: 1rem; }
.lu-pager-link {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  font-family: Anton, sans-serif;
  font-size: 1.1rem;
  transition: color 0.15s;
}
.lu-pager-link small {
  font-family: Barlow, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.lu-pager-link:hover { color: var(--primary); }
.lu-pager-next { text-align: right; margin-left: auto; }

.lu-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.lu-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
  cursor: zoom-in;
  padding: 0;
}
.lu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.lu-thumb:hover { border-color: var(--primary); }
.lu-thumb:hover img { transform: scale(1.06); }
.lu-thumb span {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: Anton, sans-serif;
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
}

.lu-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lu-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lu-note { border-left: 2px solid var(--primary); padding-left: 0.75rem; }

.lu-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lu-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: border-color 0.15s, color 0.15s;
}
.lu-btn:hover { border-color: var(--primary); color: var(--primary); }
.lu-btn-primary { border-color: var(--primary); color: var(--primary); }
.lu-btn-primary:hover { background: var(--primary); color: var(--primary-foreground); }

.lu-lightbox { max-height: 92svh; overflow-y: auto; }
.lu-lightbox-img {
  position: relative;
  display: flex;
  justify-content: center;
  background: rgb(0 0 0 / 0.35);
}
.lu-lightbox-img img { max-height: 75svh; max-width: 100%; object-fit: contain; }
.lu-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lu-nav:hover { background: var(--primary); }
.lu-nav-prev { left: 0.5rem; }
.lu-nav-next { right: 0.5rem; }

.loading {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  font-family: Anton, sans-serif;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}
