/* =========================================================================
   League of Beasts — стилевой файл
   =========================================================================
   ОРГАНИЗАЦИЯ (по поисковым строкам через Cmd+F):

     "TOK 0 BASE"          — :root, reset, body, типография           (~1-300)
     "TOK 1 HEADER"        — site-header, brand, nav                  (~80-150)
     "TOK 2 HERO HOME"     — hero, hero-title, hero-announcement      (~150-580)
     "TOK 3 EVENT STRIP"   — #junio, event-stats, team-rail           (~3300-3500)
     "TOK 4 ARCHIVE"       — #archivo, archive-tabs, fight-row        (~600-1200)
     "TOK 5 GALLERY"       — gallery, gallery-counter                 (~1300-1450)
     "TOK 6 CONTACT"       — #contacto, contact-card                  (~1500-1700)
     "TOK 7 FIGHTER PROFILE" — profile-*, fight-card, fighter-hud-strip (~2300-3300)
     "TOK 8 ROSTER"        — fighters-index-grid, fighter-index-card  (~2900-2970)
     "TOK 9 LIGHTBOX"      — lightbox, profile-gallery overlay        (~4638-4750)
     "TOK 10 MOBILE BASE"  — @media (max-width: 900/720/560/480)      (везде)
     "TOK 11 DOCK"         — mobile-dock, mobile-dock-tab             (~3893-4010)
     "TOK 12 COUNTDOWN"    — hero-countdown, countdown-cell           (~3794-3879)
     "TOK 13 PERF"         — content-visibility, contain, blur-fixes  (~5499+)
     "TOK 14 ANIMATIONS"   — keyframes, reveal, ripple, ken-burns     (~4988-5188)
     "TOK 15 IOS SAFARI"   — visualViewport offset, dock hardening    (~4988-5060)
     "TOK 16 OFFLINE"      — offline-banner                           (~5499+)

   Layered cascade (newer overrides older — поэтому perf/mobile в конце).
   ========================================================================= */

/* TOK 0 BASE === root tokens, reset, body */
:root {
  --red: #e31b23;
  --red-dark: #8c1014;
  --black: #070707;
  --charcoal: #111315;
  --steel: #8f969a;
  --bone: #f7f2ea;
  --paper: #ffffff;
  --amber: #f6c43a;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section,
main {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 65% 30%, rgba(246, 196, 58, 0.08), transparent 30%),
    var(--black);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), transparent);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-transform: uppercase;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  object-fit: cover;
}

.brand-lockup span {
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.82);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--red);
  background: rgba(227, 27, 35, 0.16);
  color: var(--paper);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  border-color: var(--amber);
  background: rgba(246, 196, 58, 0.12);
  color: var(--paper);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}

.lang-switch a {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.55);
  border: 0 !important;
  background: transparent !important;
  transition: color 140ms ease, background 140ms ease;
}

.lang-switch a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--paper);
  background: rgba(227, 27, 35, 0.18) !important;
  transform: none !important;
}

.lang-switch a.is-active {
  color: var(--amber);
  background: rgba(246, 196, 58, 0.14) !important;
  cursor: default;
}

@media (max-width: 900px) {
  .lang-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    z-index: 12;
  }
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 118px clamp(20px, 5vw, 80px) 72px;
  overflow: hidden;
  isolation: isolate;
}

/* Compact hero when viewport height is limited (laptops, smaller monitors). */
@media (max-height: 1100px) and (min-width: 901px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 36px;
  }
  .hero-title {
    margin-bottom: 14px;
  }
  .hero-announcement {
    padding: clamp(10px, 1.4vw, 14px) clamp(14px, 2.4vw, 22px);
  }
  .hero-announcement strong {
    font-size: clamp(3rem, 6.4vw, 5.6rem);
    line-height: 0.82;
  }
  .hero-announcement em {
    margin-top: 6px;
  }
  .hero-countdown {
    margin-top: 14px;
  }
  .hero-director-line {
    margin-top: 14px;
  }
  .hero-hud {
    margin-top: 18px;
  }
  .hud-cell {
    padding: 8px 12px 7px;
  }
}

@media (max-height: 880px) and (min-width: 901px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 24px;
  }
  .hero-title-row-1 {
    font-size: clamp(3.6rem, 7vw, 6rem);
  }
  .hero-title-main {
    font-size: clamp(4.2rem, 9vw, 7.6rem);
  }
  .hero-announcement strong {
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  }
  .hero-hud {
    margin-top: 14px;
  }
  .hud-cell {
    padding: 6px 10px 6px;
  }
  .hud-cell dt {
    font-size: 0.6rem;
  }
}

.hero::before,
.hero::after {
  display: none;
}

.hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 0 rgba(227, 27, 35, 0.55),
    0 0 14px rgba(227, 27, 35, 0.7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(227, 27, 35, 0.45),
      0 0 12px rgba(227, 27, 35, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(227, 27, 35, 0),
      0 0 18px rgba(227, 27, 35, 0.85);
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
  text-wrap: balance;
}

.hero-title {
  max-width: min(780px, 100%);
  margin-bottom: 22px;
}

.hero-title-type {
  display: grid;
  gap: 0;
  line-height: 0.82;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow:
    5px 7px 0 #000,
    -2px 2px 0 var(--red),
    0 0 42px rgba(227, 27, 35, 0.22);
}

.hero-title-row {
  font-size: clamp(3.5rem, 10vw, 8.8rem);
  color: var(--paper);
}

.hero-title-row-2 {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  margin-top: -0.04em;
}

.hero-title-of {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.32em;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--red);
  transform: translateY(-0.7em);
  text-shadow: 3px 3px 0 #000;
}

.hero-title-main {
  flex: 1 1 auto;
  font-size: 1em;
}

.hero-announcement {
  width: min(760px, 100%);
  border-left: 8px solid var(--red);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 28px);
  background:
    linear-gradient(90deg, rgba(227, 27, 35, 0.28), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.24)),
    rgba(0, 0, 0, 0.42);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.7);
}

.hero-announcement span,
.hero-announcement em {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-announcement span {
  color: var(--amber);
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
}

.hero-announcement strong {
  display: block;
  margin-top: 4px;
  color: var(--paper);
  font-size: clamp(3.8rem, 8.6vw, 8.6rem);
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 #000,
    -3px 3px 0 var(--red);
}

.hero-announcement em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.7rem, 1.4vw, 0.92rem);
  font-style: normal;
  line-height: 1.35;
}

.hero-lede {
  max-width: 700px;
  margin: 22px 0 24px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  padding: 13px 18px 12px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.84);
}

.button.secondary {
  background: rgba(0, 0, 0, 0.46);
  color: var(--paper);
}

.button.large {
  width: min(100%, 330px);
}

.hero-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 680px;
  margin: 34px 0 0;
  padding: 0;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.hud-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--red);
  /* Decorative backdrop-blur removed — sits on solid hero, no translucency to blur */
}

.hud-cell dt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hud-cell dd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0a0a0b;
  border: 1px solid rgba(227, 27, 35, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(227, 27, 35, 0.18);
}

.hero-visual--poster {
  max-width: 380px;
}

.hero-visual--poster .hero-visual-frame {
  aspect-ratio: 2800 / 6108;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.08);
}

.hero-visual--poster .hero-visual-frame img {
  object-position: top center;
  filter: contrast(1.02) saturate(1.04);
}

.hud-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--red);
  pointer-events: none;
}

.hud-bracket.tl {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.hud-bracket.tr {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.hud-bracket.bl {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}

.hud-bracket.br {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.hero-visual-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.hero-visual-frame::after {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 180px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(227, 27, 35, 0.22) 0%,
    transparent 100%
  );
  mix-blend-mode: screen;
  animation: scan-sweep 5.4s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  82% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(520px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-frame::after {
    animation: none;
    opacity: 0.25;
    transform: none;
  }
}

.hero-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-visual-caption span:last-child {
  color: var(--amber);
}

.event-strip,
.archive,
.apply-section,
.identity-band {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.event-strip {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.archive {
  padding-top: clamp(24px, 3vw, 40px);
}

.section-heading {
  max-width: 1400px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 760px;
}

h2 {
  max-width: 1400px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.section-heading p,
.identity-copy p,
.event-card p,
.archive-panel p,
.dossier p,
.site-footer span {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.78);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-card {
  min-height: 260px;
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(227, 27, 35, 0.13), transparent 56%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.card-kicker {
  display: block;
  margin-bottom: 34px;
  color: var(--steel);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-card h3 {
  margin-bottom: 14px;
  color: var(--paper);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.identity-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(227, 27, 35, 0.14), transparent 60%),
    #0b0d0f;
}

.style-tokens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.swatch {
  min-height: 138px;
  display: flex;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.swatch.red {
  background: var(--red);
}

.swatch.black {
  background: #010101;
}

.swatch.bone {
  background: var(--bone);
  color: #111;
}

.swatch.amber {
  background: var(--amber);
  color: #111;
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.archive-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 11px 15px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-tab:hover,
.archive-tab.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.event-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px dashed rgba(246, 196, 58, 0.35);
  background: rgba(246, 196, 58, 0.04);
}

.event-sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(246, 196, 58, 0.45);
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.event-sub-tab:hover,
.event-sub-tab.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--black);
}

.event-sub-tab.is-link {
  border-style: dashed;
}

.event-sub-tab-ext {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber);
  transition: color 160ms ease;
}

.event-sub-tab.is-link:hover .event-sub-tab-ext {
  color: var(--black);
}

.is-filtered-out { display: none !important; }

/* Jun 2026 placeholder event card */
.archive-event-card.is-placeholder .placeholder-poster {
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.16), rgba(7, 7, 7, 0.7) 70%);
  border: 2px dashed rgba(255, 255, 255, 0.24);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  min-height: 360px;
}

.placeholder-poster-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.placeholder-tag {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--amber);
}

.placeholder-date {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--red);
  letter-spacing: 0.02em;
}

.placeholder-silhouettes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 48px));
  gap: 8px;
  justify-content: center;
}

.placeholder-silhouettes.large {
  grid-template-columns: repeat(3, minmax(0, 92px));
  gap: 12px;
}

.placeholder-silhouettes span {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18) 0 14%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.placeholder-silhouettes.large span {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.22) 0 16%, transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.placeholder-cta {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.placeholder-cta-ext {
  color: var(--amber);
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
}

a.placeholder-poster {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

a.placeholder-poster:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

a.placeholder-poster:hover .placeholder-cta {
  color: var(--amber);
}

.placeholder-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.archive-panel.is-placeholder .placeholder-row {
  opacity: 0.75;
}

.placeholder-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

.placeholder-note {
  margin-top: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.placeholder-gallery {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.placeholder-gallery-item span {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.archive-event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(227, 27, 35, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, background 180ms ease;
}

.archive-event-card:hover,
.archive-event-card:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
}

.dossier-headline-link {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.dossier-headline-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dossier-headline-link:hover,
.dossier-headline-link:focus-visible {
  color: var(--amber);
}

.archive-event-card .dossier-sponsors a,
.archive-event-card .event-facts a {
  position: relative;
  z-index: 2;
}

.archive-event-card.is-text-only {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 901px) {
  .archive-event-card .dossier {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
  }
  .archive-event-card.is-text-only .dossier {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .archive-event-card .dossier::-webkit-scrollbar {
    width: 6px;
  }
  .archive-event-card .dossier::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
  }
}

.event-poster {
  overflow: hidden;
  background: #0b0b0b;
  display: block;
  position: relative;
}

/* Crop the bottom sponsor + footer strip on the published poster — sponsors live in the dossier. */
.event-poster.is-cropped-bottom {
  /* Original natural aspect = 2800 / 6108 ≈ 0.458; sponsor strip + footer ≈ bottom 14%.
     Visible portion = top 86% = 5253px; aspect 2800 / 5253 ≈ 0.533. */
  aspect-ratio: 2800 / 5253;
  overflow: hidden;
}

.event-poster.is-cropped-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.event-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.dossier {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 32px);
}

.dossier > p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.dossier h3,
.archive-panel h3 {
  margin: 0 0 4px;
  color: var(--paper);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.archive-panel h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

.event-facts div {
  border-left: 3px solid var(--red);
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.42);
}

.event-facts .event-fact-wide {
  grid-column: 1 / -1;
}

.dossier-sponsors {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dossier-sponsors-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.dossier-sponsors-label::before,
.dossier-sponsors-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.dossier-sponsors-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dossier-sponsors-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.5));
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-height: 88px;
}

.dossier-sponsors-grid a:hover {
  border-color: var(--red);
  background: rgba(227, 27, 35, 0.14);
  transform: translateY(-1px);
}

.dossier-sponsor-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.dossier-sponsor-logo.is-solid-red,
.event-detail-sponsor-logo.is-solid-red {
  background: var(--red);
}

.dossier-sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.dossier-sponsor-name {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.event-facts dt,
.event-facts dd {
  margin: 0;
}

.event-facts dt {
  color: var(--steel);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts dd {
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.35;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-bottom: 16px;
}

.archive-panel {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 18px;
}

.fight-list {
  display: grid;
  gap: 8px;
}

.fight-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 40px minmax(0, 1fr) minmax(96px, max-content);
  gap: 10px;
  align-items: center;
  min-height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  background: rgba(0, 0, 0, 0.38);
}

.fight-row.is-resolved {
  border-color: rgba(246, 196, 58, 0.42);
}

.fight-row.is-resolved .fighter-link:not(.is-winner) {
  color: rgba(255, 255, 255, 0.45);
}

.fight-row.is-resolved .fighter-link:not(.is-winner) em {
  color: rgba(255, 255, 255, 0.32);
}

.fighter-link.is-winner .fighter-link-name::before {
  display: inline-block;
  margin-right: 8px;
  color: var(--amber);
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 0.72em;
  content: "✓";
  vertical-align: 0.08em;
}

.fighter-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fighter-link-photo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 160ms ease, transform 160ms ease;
}

.fighter-link-name {
  min-width: 0;
  flex: 1;
}

.fight-row.main .fighter-link-photo {
  width: 114px;
  height: 114px;
  border-color: rgba(227, 27, 35, 0.85);
  border-width: 3px;
}

.fight-row.co-main .fighter-link-photo {
  border-color: rgba(246, 196, 58, 0.7);
}

.fighter-link.is-winner .fighter-link-photo {
  border-color: var(--amber);
}

.fight-row.is-resolved .fighter-link:not(.is-winner) .fighter-link-photo {
  filter: grayscale(0.65) brightness(0.7);
  opacity: 0.78;
}

.fighter-link:hover .fighter-link-photo,
.fighter-link:focus-visible .fighter-link-photo {
  transform: scale(1.05);
}

.fight-row span.fight-method {
  padding: 6px 12px 5px;
  justify-self: stretch;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: #0a0a0b;
  background: var(--amber);
  text-shadow: none;
  min-width: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.fight-row span.fight-method.is-ko {
  color: var(--paper);
  background: var(--red);
  font-size: 1.22rem;
  padding: 7px 14px 6px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  letter-spacing: 0.03em;
}

.fight-row span.fight-method.is-pending {
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  text-shadow: none;
}

/* Fight-card (fighter detail) result stamp */
.fight-card.is-win::before {
  background: var(--amber);
  opacity: 1;
}
.fight-card.is-loss::before {
  background: rgba(255, 255, 255, 0.35);
}

.fight-card-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 5px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #111;
  background: var(--amber);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.22);
}

.fight-card-result.is-loss {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fight-card-result.is-ko {
  color: var(--paper);
  background: var(--red);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  font-size: 1.22rem;
  padding: 7px 14px 6px;
}

.fight-card-result.is-pending {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: none;
  padding: 5px 10px;
}

.fight-row.main {
  border-color: rgba(227, 27, 35, 0.72);
  background: linear-gradient(90deg, rgba(227, 27, 35, 0.24), rgba(0, 0, 0, 0.38));
}

.fight-row.co-main {
  border-color: rgba(246, 196, 58, 0.6);
}

.fight-row.exhibition {
  border-style: dashed;
}

.fight-row span {
  color: var(--amber);
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fight-row strong,
.fighter-link {
  color: var(--paper);
  font-size: clamp(1.12rem, 2.4vw, 1.58rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.fighter-link {
  outline-offset: 4px;
  transition: color 160ms ease;
  text-decoration: none;
}

.fighter-link:hover,
.fighter-link:focus-visible {
  color: var(--amber);
}

.fight-row em,
.fighter-link em {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fight-row b {
  color: var(--red);
  font-size: 1.55rem;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
}

.result-panel {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(246, 196, 58, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.result-panel h3 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.results-grid span,
.results-grid strong {
  padding: 12px;
  background: rgba(0, 0, 0, 0.52);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.results-grid span {
  color: var(--steel);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-grid strong {
  color: var(--paper);
}

.fighters-panel {
  margin-bottom: 16px;
}

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

.fighter-profile {
  display: flex;
  min-height: 270px;
  scroll-margin-top: 96px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(227, 27, 35, 0.14), transparent 48%),
    rgba(0, 0, 0, 0.44);
}

.fighter-profile:target {
  border-color: var(--amber);
  box-shadow:
    0 0 0 2px rgba(246, 196, 58, 0.18),
    var(--shadow);
}

.fighter-profile.exhibition {
  border-style: dashed;
}

.fighter-status {
  color: var(--amber);
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fighter-profile h4 {
  margin: 22px 0 6px;
  color: var(--paper);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.fighter-profile p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fighter-profile dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
}

.fighter-profile dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 1px;
}

.fighter-profile dt,
.fighter-profile dd {
  margin: 0;
  background: rgba(0, 0, 0, 0.56);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
}

.fighter-profile dt {
  padding: 10px;
  color: var(--steel);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fighter-profile dd {
  padding: 10px;
  color: var(--paper);
  font-weight: 850;
}

.fighter-profile dd a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.is-filtered-out {
  display: none !important;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
}

.gallery-item.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.14) contrast(1.06);
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
  color: var(--paper);
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.apply-section {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(5, 5, 6, 0.86), rgba(5, 5, 6, 0.94)),
    url("assets/instagram/post-02-DR5vz4GDWrn.jpg") center / cover;
}

.apply-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 60% 70% at 18% 8%, rgba(227, 27, 35, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 82% 92%, rgba(246, 196, 58, 0.08), transparent 62%);
}

.contact-header {
  max-width: 860px;
}

.contact-lede {
  max-width: 680px;
  margin-top: 16px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.contact-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  /* Decorative backdrop-blur removed — paint cost not justified, ~no visual difference */
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-card::before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: var(--red);
  opacity: 0.55;
  transition: opacity 180ms ease, width 180ms ease;
}

.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(227, 27, 35, 0.45);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.06), rgba(255, 255, 255, 0.015));
}

.contact-card:hover::before,
.contact-card:focus-within::before {
  opacity: 1;
  width: 3px;
}

.contact-card--accent::before {
  opacity: 0.95;
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.contact-card-tag {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-card-id {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.contact-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.contact-card-offer {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.contact-card-asks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
}

.contact-card-asks li {
  position: relative;
  padding-left: 16px;
  line-height: 1.45;
}

.contact-card-asks li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--red);
}

.contact-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 14px 16px;
  color: var(--paper);
  background: rgba(227, 27, 35, 0.1);
  border: 1px solid rgba(227, 27, 35, 0.45);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-card-cta:hover,
.contact-card-cta:focus-visible {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(2px);
}

.contact-card-cta span:last-child {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.contact-card-cta:hover span:last-child {
  transform: translateX(4px);
}

.contact-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-coordinator {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

.contact-coordinator-label {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.contact-coordinator strong {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-coordinator-phone {
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.contact-coordinator-phone:hover {
  color: var(--paper);
  border-color: var(--amber);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apply-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.62);
  font-family: Arial, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 850;
  line-height: 1.35;
}

.apply-steps span {
  color: var(--red);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #050505;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong,
.site-footer a {
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--amber);
}

.mobile-whatsapp {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-visual {
    justify-self: stretch;
    order: -1;
    max-width: 100%;
  }

  .hero-visual--poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-visual-frame {
    aspect-ratio: 16 / 10;
  }

  .hero-visual--poster .hero-visual-frame {
    aspect-ratio: 2800 / 6108;
  }

  .hero-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .event-grid,
  .identity-band,
  .apply-section,
  .archive-event-card,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .fighters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item.feature {
    grid-column: span 1;
    grid-row: span 1;
    min-height: unset;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 76px;
  }

  section,
  main {
    scroll-margin-top: 18px;
  }

  .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-lockup img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-lockup span {
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    padding: 84px 16px 40px;
  }

  .hero-visual-frame {
    aspect-ratio: 4 / 3;
  }

  .hud-bracket {
    width: 16px;
    height: 16px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-title {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .hero-logo {
    width: min(100%, 390px);
    filter:
      drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.78))
      drop-shadow(-1px 1px 0 rgba(227, 27, 35, 0.64));
  }

  .hero-announcement {
    border-left-width: 6px;
    padding: 13px 14px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
  }

  .hero-announcement strong {
    font-size: clamp(3.15rem, 18vw, 4.45rem);
  }

  .hero-announcement em {
    font-size: 0.68rem;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-height: 0.96;
  }

  .hero-lede {
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .hero-actions,
  .button,
  .site-footer {
    width: 100%;
  }

  .button {
    min-height: 50px;
    padding-inline: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.055em;
  }

  .hero-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
  }

  .hud-cell {
    padding: 10px 12px 9px;
  }

  .hud-cell dt {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .hud-cell dd {
    font-size: 0.84rem;
  }

  .event-strip,
  .archive,
  .apply-section,
  .identity-band {
    padding: 46px 16px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .event-card {
    min-height: auto;
  }

  .style-tokens,
  .gallery {
    grid-template-columns: 1fr;
  }

  .apply-steps li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .contact-board {
    grid-template-columns: 1fr;
  }

  .contact-actions .button {
    width: 100%;
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-tab {
    flex: 1 1 calc(50% - 10px);
    padding-inline: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .dossier h3,
  .archive-panel h3,
  .result-panel h3 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
    line-height: 0.95;
  }

  .dossier,
  .archive-panel {
    padding: 18px;
  }

  .fight-row {
    gap: 8px 12px;
    min-height: 0;
    padding: 14px;
    align-items: start;
  }

  .fight-row strong,
  .fighter-link {
    font-size: clamp(1.22rem, 5vw, 1.5rem);
  }

  .fighters-grid {
    grid-template-columns: 1fr;
  }

  .fighter-profile {
    min-height: 0;
    scroll-margin-top: 24px;
    padding: 16px;
  }

  .fighter-profile h4 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .fighter-profile dl div {
    grid-template-columns: 1fr;
  }

  .event-facts,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .fight-row b {
    text-align: left;
  }

  .contact-lede,
  .contact-card-offer {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .contact-card {
    padding: 20px 18px 18px;
  }

  .contact-card h3 {
    font-size: clamp(1.45rem, 8vw, 1.95rem);
  }

  .contact-card-cta {
    padding: 12px 14px;
    font-size: 0.76rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .mobile-whatsapp {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    z-index: 30;
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: var(--red);
    color: var(--paper);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.56);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    transform: translateY(84px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-whatsapp.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* =========================================================================
   Profile pages (fighter detail, director)
   ========================================================================= */

.profile-body {
  padding-bottom: 0;
}

.profile-header {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5));
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 84px;
  min-width: 0;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 80px) clamp(48px, 7vw, 88px);
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.profile-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(227, 27, 35, 0.25), transparent 62%),
    radial-gradient(ellipse 50% 60% at 18% 88%, rgba(246, 196, 58, 0.08), transparent 62%),
    linear-gradient(180deg, #0a0a0b, #060607 70%, #030304);
}

.profile-hero-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(227, 27, 35, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    14px 14px 0 rgba(0, 0, 0, 0.82),
    0 0 60px rgba(227, 27, 35, 0.18);
}

.profile-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.08);
}

.profile-hero-img[data-slug="alan-yusef"] img {
  object-position: center top;
  transform: none;
}

.profile-hero-img .hud-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--red);
  pointer-events: none;
}

.profile-hero-img .hud-bracket.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.profile-hero-img .hud-bracket.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.profile-hero-img .hud-bracket.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.profile-hero-img .hud-bracket.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.profile-hero-img .hero-visual-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.profile-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(227, 27, 35, 0.5), rgba(140, 16, 20, 0.7)),
    linear-gradient(#111, #0a0a0b);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.02em;
  text-shadow: 4px 4px 0 #000;
}

.profile-hero-copy h1 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000, -2px 2px 0 var(--red);
}

.profile-tagline {
  margin-bottom: 22px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.profile-quickfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-quickfacts li,
.profile-hud .hud-cell {
  display: grid;
  gap: 4px;
  border-left: 2px solid var(--red);
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-quickfacts span {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-quickfacts strong {
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-block {
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.profile-block:last-of-type {
  border-bottom: 0;
}

.profile-block h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.profile-block > p,
.profile-list,
.profile-facts {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
}

.profile-quote {
  margin: 0 0 18px;
  border-left: 4px solid var(--amber);
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.04);
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bone);
}

.profile-quote cite {
  display: block;
  margin-top: 14px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.profile-quote cite a {
  border-bottom: 1px solid rgba(246, 196, 58, 0.5);
}

.profile-note {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.profile-list {
  margin: 0;
  padding-left: 22px;
}

.profile-list li {
  margin-bottom: 10px;
}

.profile-list a,
.profile-block a:not(.button):not(.contact-card-cta):not(.hud-link):not(.timeline-link) {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.3);
  transition: color 160ms ease, border-color 160ms ease;
}

.profile-list a:hover,
.profile-block a:not(.button):hover {
  color: var(--paper);
  border-color: var(--paper);
}

.profile-subtitle {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 3vw, 1.8rem);
  text-transform: uppercase;
}

.trained-fighter {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(246, 196, 58, 0.05), rgba(246, 196, 58, 0));
  list-style: none;
}

.trained-fighter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.trained-fighter-head strong {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-role {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding: 2px 6px;
  border: 1px solid rgba(227, 27, 35, 0.6);
}

.profile-sublist {
  margin: 0 0 8px;
  padding-left: 18px;
}

.profile-sublist li {
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-highlight-line {
  display: block;
  margin-bottom: 8px;
}

.trained-fighter-sources {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* override the default amber underline rule for the trained-fighter sub-elements */
.trained-fighter .trained-fighter-sources a {
  color: rgba(255, 255, 255, 0.55);
}
.trained-fighter .trained-fighter-sources a:hover {
  color: var(--amber);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-facts div {
  border-left: 2px solid var(--red);
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-facts dt {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.profile-facts dd {
  margin: 4px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.profile-facts a.fb-link {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.35;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.profile-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.profile-gallery a:hover img {
  filter: saturate(1.14) contrast(1.06);
  transform: scale(1.04);
}

.profile-gallery span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
  color: var(--paper);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

.profile-contact .profile-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-contact-list li {
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--amber);
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-contact-list span {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-contact-list a {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-sources-list {
  margin: 0;
  padding-left: 22px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.profile-sources-list a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.3);
}

/* Fighter-specific */

.fight-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fight-card {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  position: relative;
}

.fight-card::before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: var(--red);
  opacity: 0.75;
}

.fight-card.is-league::before {
  background: var(--red);
}

.fight-card.is-external::before {
  background: var(--amber);
}

.fight-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.fight-card-tag {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fight-card-date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.fight-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
}

.fight-card-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fight-card-body div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fight-card-body dt {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.fight-card-body dd {
  margin: 0;
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
}

.fight-card-body dd a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.35);
}

.fight-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.fight-card-footer a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.3);
}

.fight-card-evidence {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fight-card-evidence > a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0b;
  transition: border-color 160ms ease, transform 160ms ease;
}

.fight-card-evidence > a:hover,
.fight-card-evidence > a:focus-visible {
  border-color: var(--amber);
}

.fight-card-evidence img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
}

.fight-card-evidence figcaption {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
  text-transform: none;
}

.fight-card-evidence figcaption a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.3);
}

.fighters-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.fighter-index-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.08), rgba(255, 255, 255, 0.02));
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  overflow: hidden;
}

.fighter-index-card.has-photo {
  min-height: 360px;
}

.fighter-index-card > div:nth-of-type(2) {
  margin-top: auto;
}

.fighter-index-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: saturate(1.02) contrast(0.96) brightness(1.04);
  transition: opacity 220ms ease, transform 320ms ease, filter 220ms ease;
}

.fighter-index-card[data-slug="alan-yusef"] .fighter-index-photo {
  object-position: center top;
}

/* Vignette via inset box-shadow — darkens perimeter so harsh cutout edges
   of the figure (head, shoulders, hair) blend into card instead of clipping
   like a photoshopped layer. Card-level so it sits above z:-2 photo. */
.fighter-index-card.has-photo {
  box-shadow:
    inset 0 -28px 36px -12px rgba(0, 0, 0, 0.78),
    inset 0 0 38px 6px rgba(0, 0, 0, 0.42);
}

.fighter-index-card.has-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  /* Bottom text-readability gradient — sits on top of the vignette */
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.4) 68%,
    rgba(0, 0, 0, 0.85) 95%);
}

.fighter-index-card:hover .fighter-index-photo,
.fighter-index-card:focus-visible .fighter-index-photo {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.06) brightness(1.12);
}

.fighter-index-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(227, 27, 35, 0.38), rgba(140, 16, 20, 0.58)),
    #0a0a0b;
  color: rgba(247, 242, 234, 0.92);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: 0.02em;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
}

.fighter-index-card::before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: var(--red);
  opacity: 0.7;
  transition: opacity 180ms ease, width 180ms ease;
}

.fighter-index-card:hover,
.fighter-index-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(227, 27, 35, 0.5);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.16), rgba(255, 255, 255, 0.02));
}

.fighter-index-card:hover::before,
.fighter-index-card:focus-visible::before {
  opacity: 1;
  width: 3px;
}

.fighter-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fighter-index-level {
  color: var(--amber);
  font-weight: 700;
}

.fighter-index-discipline {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.85);
}

.fighter-index-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.fighter-index-team {
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.fighter-index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.fighter-index-footer .is-verified {
  color: var(--amber);
}

.fighter-index-arrow {
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  color: var(--red);
}

.fighter-teams-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fighter-teams-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.fighter-teams-heading a {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.35);
}

.fighter-hud-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.fighter-hud-strip > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--red);
}

.fighter-hud-strip dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.fighter-hud-strip dd {
  margin: 0;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fighter-hud-strip dd a {
  color: var(--amber);
}

.fighter-opponent-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

.fighter-opponent-card:hover {
  border-color: rgba(227, 27, 35, 0.5);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.08), rgba(255, 255, 255, 0.02));
}

.fighter-opponent-vs {
  color: var(--red);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.fighter-opponent-info h3 {
  margin: 0 0 4px;
  color: var(--paper);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.fighter-opponent-info span {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.fighter-opponent-arrow {
  color: var(--red);
  font-size: 1.6rem;
  font-family: ui-monospace, monospace;
}

@media (max-width: 900px) {
  .profile-page {
    padding-top: 0;
  }
  .profile-header {
    position: static;
  }
  .profile-hero,
  .profile-facts,
  .profile-quickfacts,
  .profile-contact .profile-contact-list {
    grid-template-columns: 1fr;
  }
  .profile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fight-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fighter-hud-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fighter-opponent-card {
    grid-template-columns: auto 1fr;
  }
  .fighter-opponent-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .profile-hero {
    padding: 22px 16px 30px;
  }
  .profile-block {
    padding: 28px 16px;
  }
  .profile-hero-img {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.82);
  }
  /* Profile gallery: 2-col grid (was 1-col) — half the scroll for same fidelity */
  .profile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .fight-card {
    padding: 16px 14px;
  }
  /* Fight-card body 2-col on mobile — cuts vertical scroll in half */
  .fight-card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .fight-card-body div {
    padding: 8px 10px;
  }
  .fight-card-body dt {
    font-size: 0.62rem;
  }
  .fight-card-body dd {
    font-size: 0.86rem;
  }
  .fight-card h3 {
    font-size: clamp(1.18rem, 5.5vw, 1.5rem);
  }
  .fight-card-head {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .fighter-opponent-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* fb-link: cleaner wrap (no all-break) for readability */
  .profile-facts a.fb-link {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }
  /* Profile-hero name scales tighter, prevents overflow on long names */
  .profile-hero-copy h1 {
    font-size: clamp(2.05rem, 9.5vw, 3.4rem);
  }
  /* Profile facts: single column, slimmer padding */
  .profile-facts,
  .profile-facts > div {
    grid-template-columns: 1fr;
  }
  .profile-facts dt,
  .profile-facts dd {
    padding: 9px 11px;
  }
  /* fighter-hud-strip more breathable on mobile */
  .fighter-hud-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  /* Bigger touch target for fighter-link from main roster lists */
  .fighter-link {
    padding: 4px 0;
  }
}

/* Hero director line */
.hero-director-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 22px;
  padding: 10px 14px;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(246, 196, 58, 0.08), transparent 70%);
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
}

.hero-director-label {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-director-line strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-director-line a {
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.hero-director-line a:hover {
  color: var(--paper);
  border-color: var(--amber);
}

/* Event strip stats + card icons */
.event-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
}

.team-rail {
  list-style: none;
  padding: 18px 16px;
  margin: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0));
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
}

.team-rail-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 2px;
  transition: background 180ms ease, transform 180ms ease;
}

.team-rail-item a:hover,
.team-rail-item a:focus-visible {
  background: rgba(246, 196, 58, 0.08);
  transform: translateY(-2px);
}

.team-rail-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #111;
  flex-shrink: 0;
  display: block;
  transition: border-color 180ms ease, filter 180ms ease;
  filter: saturate(1.02);
}

.team-rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-rail-item a:hover .team-rail-logo,
.team-rail-item a:focus-visible .team-rail-logo {
  border-color: var(--amber);
  filter: saturate(1.12);
}

.team-rail-name {
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.team-rail-item a:hover .team-rail-name,
.team-rail-item a:focus-visible .team-rail-name {
  color: var(--paper);
}

@media (max-width: 960px) {
  .team-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .team-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team-rail-logo { width: 52px; height: 52px; }
}

.event-stat {
  display: grid;
  gap: 6px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--red);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.1), rgba(255, 255, 255, 0.01));
  transition: border-color 180ms ease, transform 180ms ease;
}

.event-stat:hover {
  transform: translateY(-2px);
}

.event-stat dt {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.event-stat dd {
  margin: 0;
  color: var(--amber);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.event-stat dd small {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: none;
  letter-spacing: 0;
  font-family: inherit;
}

.event-stat > span {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 200ms ease, transform 260ms ease, color 180ms ease;
}

.event-card-icon svg {
  width: 100%;
  height: 100%;
}

.event-card:hover .event-card-icon {
  opacity: 1;
  color: var(--amber);
  transform: scale(1.06) rotate(-2deg);
}

@media (max-width: 900px) {
  .event-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .event-stats {
    grid-template-columns: 1fr;
  }
  .event-card-icon {
    width: 42px;
    height: 42px;
    top: 14px;
    right: 14px;
  }
}

/* Profile portrait top + bottom vignettes (mask poster logo bleed on fighters,
   mask bright gym windows / floor edges on direccion + lotus) */
.profile-hero-img::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
}

.profile-hero-img::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 14%,
    transparent 36%
  );
}

.fighter-body .profile-hero-img img {
  /* Subtle pop without sharpening grain — natural photo look */
  filter: saturate(1.04) brightness(1.02);
}

/* Inset vignette on the frame: darkens perimeter so the figure blends with
   the surrounding page instead of clipping like a pasted layer */
.fighter-body .profile-hero-img {
  box-shadow:
    inset 0 -42px 60px -18px rgba(0, 0, 0, 0.7),
    inset 0 0 46px 6px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    14px 14px 0 rgba(0, 0, 0, 0.82),
    0 0 60px rgba(227, 27, 35, 0.18);
}

/* Constrain hero display so the native source (540×675 fighters or 720×722
   Frank) isn't stretched aggressively on retina. Max ~1.3-1.7× upscale at
   3× DPR → looks like a real photo, not a blur. Both fighter and director
   pages get this since both share .profile-body. */
.profile-body .profile-hero-img {
  max-width: min(440px, 100%);
  margin-inline: auto;
}

@media (max-width: 560px) {
  .profile-body .profile-hero-img {
    /* Mobile: cap at 320 CSS px → 540 source @ 3× DPR = 1.7× upscale max */
    max-width: min(320px, 92%);
  }
}

/* Tablet / mobile: stack fight-row into readable 4-row grid */
@media (max-width: 720px) {
  .fight-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-auto-rows: auto;
    gap: 6px 12px;
    padding: 14px 16px;
    align-items: start;
  }

  .fight-row > span:first-child {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .fight-row span.fight-method {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: auto;
    min-width: 50px;
  }

  .fight-row .fighter-link:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 4px;
  }

  .fight-row > b {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--red);
    opacity: 0.6;
  }

  .fight-row .fighter-link:last-of-type {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .fight-row em,
  .fighter-link em {
    margin-top: 3px;
  }

  .fight-row.is-resolved .fighter-link:not(.is-winner) {
    opacity: 0.65;
  }
}

/* Phone: tighter chip, smaller VS */
@media (max-width: 480px) {
  .fight-row {
    padding: 12px 14px;
    gap: 4px 10px;
  }
  .fight-row > b {
    font-size: 0.9rem;
    opacity: 0.5;
  }
  .fight-row strong,
  .fighter-link {
    font-size: 1.18rem;
  }
  .fight-row span.fight-method {
    font-size: 0.92rem;
    padding: 5px 10px 4px;
    min-width: 50px;
  }
  .fight-row span.fight-method.is-ko {
    font-size: 1.05rem;
    padding: 6px 11px 5px;
  }
}

/* Footer credit */
.site-footer .site-credit {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.site-footer .site-credit a {
  color: rgba(255, 255, 255, 0.45);
  font-size: inherit;
  letter-spacing: inherit;
  border-bottom: none;
  transition: color 160ms ease;
}

.site-footer .site-credit a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Credential chip (Kru, etc.) on profile hero */
.profile-credential {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 12px 4px;
  background: rgba(246, 196, 58, 0.14);
  border-left: 2px solid var(--amber);
  color: var(--amber);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.profile-credential span {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: none;
  text-transform: none;
}

/* =========================================================================
   Mobile UX + performance optimization
   ========================================================================= */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
}

/* Paint / layout containment on repeatable cards — big perf win on long pages */
.event-card,
.event-stat,
.archive-event-card,
.archive-panel,
.contact-card,
.fight-row,
.gallery-item,
.team-rail-item,
.fighter-profile,
.hud-cell {
  contain: layout paint style;
}

/* Below-fold sections skip render until near viewport */
#archivo,
#contacto,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1400px;
}

/* Touch feedback + large tap targets */
.button,
.archive-tab,
.event-sub-tab,
.contact-card-cta,
.mobile-dock-tab,
.team-rail-item a,
.gallery-item,
.fighter-link,
.contact-coordinator-phone {
  touch-action: manipulation;
}

@media (hover: none) {
  .button:active {
    transform: scale(0.97);
  }
  .contact-card-cta:active,
  .archive-tab:active,
  .event-sub-tab:active {
    transform: scale(0.98);
  }
  .team-rail-item a:active {
    background: rgba(246, 196, 58, 0.14);
    transform: scale(0.97);
  }
  .gallery-item:active img {
    transform: scale(1.05);
    filter: saturate(1.14) contrast(1.06);
  }
}

/* Scroll progress bar (top of viewport, gradient) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 2px;
  width: 100%;
  transform-origin: 0 0;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red) 0%, var(--amber) 100%);
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 10px rgba(227, 27, 35, 0.4);
}

/* Hero countdown — elevate specificity to win over .hero-announcement span rule */
.hero-announcement .hero-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.hero-announcement .countdown-label {
  display: inline-block;
  margin: 0;
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-announcement .countdown-cells {
  display: inline-flex;
  gap: 6px;
}

.hero-announcement .countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  padding: 7px 6px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 2px solid var(--red);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.36));
  transition: border-color 220ms ease, transform 220ms ease;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
}

.hero-announcement .countdown-cell:hover {
  border-left-color: var(--amber);
  transform: translateY(-1px);
}

.hero-announcement .countdown-cell b {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.hero-announcement .countdown-cell small {
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-announcement .hero-countdown.is-past .countdown-cells {
  display: none;
}

.hero-announcement .hero-countdown.is-past::after {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  content: "En curso";
  color: var(--red);
  font-family: Impact, Arial, sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-announcement .hero-countdown--pending {
  align-items: center;
  gap: 8px 12px;
}

.hero-announcement .countdown-pending {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 2px solid var(--red);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.36));
  color: var(--paper);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
}

/* Reveal on scroll (class only added by JS, which respects reduced-motion) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile dock (bottom navigation) */
.mobile-dock {
  display: none;
}

@media (max-width: 900px) {
  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) 8px;
    background:
      linear-gradient(180deg, rgba(5, 5, 6, 0.6), rgba(5, 5, 6, 0.96) 55%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-family: Arial, sans-serif;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.42);
  }

  .mobile-dock-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 9px 4px 5px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    transition:
      color 180ms ease,
      background 180ms ease,
      transform 120ms ease;
  }

  .mobile-dock-tab::before {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    content: "";
    background: var(--red);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .mobile-dock-tab.is-active {
    color: var(--paper);
    background: rgba(227, 27, 35, 0.08);
  }

  .mobile-dock-tab.is-active::before {
    transform: translateX(-50%) scaleX(1);
  }

  .mobile-dock-tab:active {
    transform: scale(0.93);
  }

  .mobile-dock-icon {
    width: 22px;
    height: 22px;
    transition: transform 200ms ease;
  }

  .mobile-dock-tab.is-active .mobile-dock-icon {
    transform: translateY(-1px) scale(1.06);
  }

  .mobile-dock-tab--cta {
    color: var(--paper);
    background: linear-gradient(180deg, var(--red) 0%, #a8111a 100%);
    box-shadow:
      0 8px 18px rgba(227, 27, 35, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    border-radius: 6px;
  }

  .mobile-dock-tab--cta::before {
    display: none;
  }

  .mobile-dock-tab--cta:active {
    transform: scale(0.93);
    box-shadow:
      0 4px 10px rgba(227, 27, 35, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .mobile-dock-tab--cta .mobile-dock-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  }

  /* Dock replaces the old floating WA button */
  .mobile-whatsapp {
    display: none !important;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* Hero countdown compact sizing on phone */
@media (max-width: 560px) {
  .hero-announcement .hero-countdown {
    gap: 8px 10px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .hero-announcement .countdown-label {
    width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
  .hero-announcement .countdown-cells {
    gap: 5px;
    width: 100%;
  }
  .hero-announcement .countdown-cell {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 4px 5px;
  }
  .hero-announcement .countdown-cell b {
    font-size: 1.34rem;
  }
  .hero-announcement .countdown-cell small {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  /* Event stats 2x2 instead of 1x4 (less scroll) */
  .event-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .event-stat {
    padding: 14px 14px 12px;
  }
  .event-stat dd {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
    text-shadow: 2px 2px 0 #000, -1px 1px 0 var(--red);
  }
  .event-stat > span {
    font-size: 0.7rem;
  }

  /* Team rail as horizontal scroll-snap (all 10 visible via swipe) */
  .team-rail {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 14px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .team-rail::-webkit-scrollbar {
    display: none;
  }
  .team-rail-item {
    scroll-snap-align: start;
    flex: 0 0 68px;
  }

  /* Archive tabs horizontal scroll chip row */
  .archive-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .archive-tabs::-webkit-scrollbar {
    display: none;
  }
  .archive-tab {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    padding: 10px 16px;
  }

  .event-sub-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .event-sub-tabs::-webkit-scrollbar {
    display: none;
  }
  .event-sub-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Reduce heavy text-shadows on mobile (paint cost on large text) */
  .hero-title-type {
    text-shadow: 3px 4px 0 #000, -1px 1px 0 var(--red);
  }
  .hero-announcement strong {
    text-shadow: 3px 3px 0 #000, -2px 2px 0 var(--red);
  }

  /* Hero spacing tighter */
  .hero {
    padding: 78px 16px 36px;
  }
  .hero-inner {
    gap: 28px;
  }
  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }
  .hero-announcement {
    padding: 14px 16px 16px;
  }

  /* Buttons full-width but tighter */
  .hero-actions {
    gap: 10px;
  }
  .button {
    min-height: 52px;
  }

  /* Gallery as snap-scroll horizontal on phone (swipeable) */
  .gallery:not(.placeholder-gallery) {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar {
    display: none;
  }
  .gallery-item,
  .gallery-item.feature {
    flex: 0 0 78%;
    scroll-snap-align: start;
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 320px;
  }
  .gallery-item.feature {
    flex: 0 0 86%;
  }

  /* Contact cards tighter spacing */
  .contact-board {
    gap: 12px;
  }
}

/* Respect reduced motion — disable the big animations */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mobile-dock-tab::before {
    transition: none !important;
  }
  .scroll-progress {
    display: none;
  }
}

/* Print: hide mobile UI chrome */
@media print {
  .mobile-dock,
  .scroll-progress,
  .mobile-whatsapp {
    display: none !important;
  }
}

/* ------- Event detail page (/eventos/<slug>/) ------- */
.event-detail {
  display: block;
}

.event-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 4vw, 56px) clamp(18px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.18), rgba(7, 7, 7, 0.6) 60%);
  align-items: start;
}

.event-detail-poster {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(227, 27, 35, 0.28), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  border: 2px solid var(--line);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.event-detail-poster.has-artwork {
  aspect-ratio: 1 / 1;
}

.event-detail-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.event-detail-poster.has-artwork .event-detail-poster-inner {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.65) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-detail-poster.has-artwork .event-detail-headline {
  text-shadow: 4px 4px 0 var(--red), 0 0 24px rgba(0, 0, 0, 0.8);
}

.event-detail-poster::before,
.event-detail-poster::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.event-detail-poster::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(227, 27, 35, 0.05) 0,
    rgba(227, 27, 35, 0.05) 2px,
    transparent 2px,
    transparent 12px
  );
  opacity: 0.6;
}

.event-detail-poster::after {
  background: linear-gradient(180deg, transparent 0%, rgba(7,7,7,0.85) 100%);
}

.event-detail-poster-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-items: start;
  justify-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 32px);
  text-align: center;
  color: var(--paper);
}

.event-detail-tag {
  font-family: Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 64, 0.35);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
}

.event-detail-headline {
  margin: 6px 0 2px;
  font-family: Arial, sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--red);
}

.event-detail-sub {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.event-detail-silhouettes {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin: 8px 0;
}

.event-detail-silhouettes span {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(227, 27, 35, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 38% 16% at 50% 22%, rgba(0, 0, 0, 0.95) 0%, transparent 60%),
    radial-gradient(ellipse 60% 38% at 50% 60%, rgba(0, 0, 0, 0.85) 0%, transparent 65%),
    linear-gradient(180deg, #1f0608 0%, #0a0203 60%, #050000 100%);
  border: 1px solid rgba(227, 27, 35, 0.55);
  box-shadow:
    inset 0 0 24px rgba(227, 27, 35, 0.22),
    0 0 8px rgba(227, 27, 35, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.event-detail-silhouettes span::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  color: rgba(227, 27, 35, 0.7);
  text-shadow:
    0 0 14px rgba(227, 27, 35, 0.85),
    2px 2px 0 rgba(0, 0, 0, 0.9);
  z-index: 2;
  animation: mk-locked-pulse 2.6s ease-in-out infinite alternate;
}

.event-detail-silhouettes span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

.event-detail-silhouettes span:nth-child(2n)::before { animation-delay: -0.6s; }
.event-detail-silhouettes span:nth-child(3n)::before { animation-delay: -1.2s; }
.event-detail-silhouettes span:nth-child(5n)::before { animation-delay: -1.9s; }

@keyframes mk-locked-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.96);
    text-shadow: 0 0 8px rgba(227, 27, 35, 0.55), 2px 2px 0 rgba(0, 0, 0, 0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
    text-shadow: 0 0 22px rgba(227, 27, 35, 1), 2px 2px 0 rgba(0, 0, 0, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-detail-silhouettes span::before {
    animation: none;
    opacity: 0.85;
  }
}

.event-detail-cta-line {
  font-family: Arial, sans-serif;
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 10px 0;
  width: 100%;
}

.event-detail-sponsors {
  width: 100%;
  text-align: left;
}

.event-detail-sponsors-label {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  text-align: center;
}

.event-detail-sponsors-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.event-detail-sponsors-row a,
.event-detail-sponsors-row li.is-open-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.event-detail-sponsors-row a:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.event-detail-sponsors-row li.is-open-slot {
  border-style: dashed;
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
}

.event-detail-sponsor-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-detail-sponsor-logo.is-empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
}

.event-detail-sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-sponsor-name {
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
}

.event-detail-meta {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 32px);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.event-detail-meta h2 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 0.96;
}

.event-detail-lead {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.event-detail-facts {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-detail-facts div {
  border-left: 3px solid var(--red);
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.42);
}

.event-detail-facts dt,
.event-detail-facts dd {
  margin: 0;
}

.event-detail-facts dt {
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.event-detail-facts dd {
  margin-top: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.3;
}

.event-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.event-detail-actions .button {
  text-align: center;
}

.event-detail-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.event-detail-share-label {
  color: var(--steel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-detail-share a {
  color: var(--paper);
}

.event-detail-block {
  padding: clamp(28px, 4vw, 56px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.event-detail-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.event-detail-steps {
  list-style: decimal;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.event-detail-steps li::marker {
  color: var(--amber);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.event-detail-steps strong {
  font-family: Arial, sans-serif;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .event-detail-hero {
    grid-template-columns: 1fr;
  }
  .event-detail-meta {
    position: static;
  }
  .event-detail-silhouettes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .event-detail-sponsors-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .event-detail-silhouettes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
  .event-detail-sponsors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------- Lightbox ------- */
.profile-gallery[data-lightbox] a {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 32px clamp(16px, 6vw, 64px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: var(--paper);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  max-width: 780px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  top: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--paper);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--amber, #f6b93b);
  transform: scale(1.04);
}

.lightbox-close {
  right: 14px;
}

.lightbox-nav {
  top: auto;
  bottom: 50%;
  transform: translateY(50%);
}

.lightbox-nav:hover {
  transform: translateY(50%) scale(1.04);
}

.lightbox-nav.is-prev { left: 14px; }
.lightbox-nav.is-next { right: 14px; }

.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox-img { max-height: calc(100vh - 120px); }
  .lightbox-close, .lightbox-nav { width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-counter { top: 16px; left: 16px; }
}

/* =========================================================================
   Mobile UX layer 2: counters, ripple, share, hero entrance
   ========================================================================= */

/* Tabular numerals for counters so they don't wobble while ticking */
[data-counter] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Ripple effect for primary tap targets */
.has-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.has-ripple > .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
  transform: scale(0);
  opacity: 0.7;
  animation: ripple-out 580ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  z-index: 0;
}

/* On red CTAs, ripple is a brighter white-amber tint */
.button.primary > .ripple,
.mobile-dock-tab--cta > .ripple {
  background: rgba(255, 220, 130, 0.42);
}

/* Make button content stay above the ripple layer */
.has-ripple > * {
  position: relative;
  z-index: 1;
}

@keyframes ripple-out {
  0% {
    transform: scale(0);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Share button — mobile-friendly pill */
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 10px;
  background: rgba(246, 196, 58, 0.12);
  border: 1px solid rgba(246, 196, 58, 0.45);
  color: var(--amber);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 160ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.share-button:hover,
.share-button:focus-visible {
  background: rgba(246, 196, 58, 0.22);
  border-color: var(--amber);
  color: var(--paper);
  transform: translateY(-1px);
}

.share-button:active {
  transform: scale(0.97);
}

.share-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Hero entrance — quick fade-in (was a 1.3s staggered crawl) */
.hero-enter .eyebrow,
.hero-enter .hero-title,
.hero-enter .hero-announcement,
.hero-enter .hero-director-line,
.hero-enter .hero-actions,
.hero-enter .hero-hud,
.hero-enter ~ .hero-visual {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.hero-enter .eyebrow { transition-delay: 0ms; }
.hero-enter .hero-title { transition-delay: 30ms; }
.hero-enter .hero-announcement { transition-delay: 60ms; }
.hero-enter .hero-director-line { transition-delay: 80ms; }
.hero-enter .hero-actions { transition-delay: 100ms; }
.hero-enter .hero-hud { transition-delay: 120ms; }
.hero-enter ~ .hero-visual { transition-delay: 40ms; }

/* Once entrance has settled (~1.5s after page load, JS adds .hero-entered-settled),
   drop will-change to free the 7 GPU layers reserved for the fade transition. */
.hero-entered-settled .eyebrow,
.hero-entered-settled .hero-title,
.hero-entered-settled .hero-announcement,
.hero-entered-settled .hero-director-line,
.hero-entered-settled .hero-actions,
.hero-entered-settled .hero-hud,
.hero-entered-settled ~ .hero-visual {
  will-change: auto;
}

.hero-enter.is-entered .eyebrow,
.hero-enter.is-entered .hero-title,
.hero-enter.is-entered .hero-announcement,
.hero-enter.is-entered .hero-director-line,
.hero-enter.is-entered .hero-actions,
.hero-enter.is-entered .hero-hud,
.hero-enter.is-entered ~ .hero-visual {
  opacity: 1;
  transform: none;
}

/* Reduce intensity on very small screens — no extra parallax-y overhead */
@media (max-width: 560px) {
  .share-button {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter .eyebrow,
  .hero-enter .hero-title,
  .hero-enter .hero-announcement,
  .hero-enter .hero-director-line,
  .hero-enter .hero-actions,
  .hero-enter .hero-hud,
  .hero-enter ~ .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .has-ripple > .ripple {
    animation: none !important;
    display: none !important;
  }
  .hero-visual-frame {
    transform: none !important;
  }
}

/* =========================================================================
   Mobile UX layer 3: skip-link, countdown pulse, parallax containment
   ========================================================================= */

/* Skip-to-content (keyboard / screen-reader friendly) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 8px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--black);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  transition: top 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: max(8px, env(safe-area-inset-top));
  outline: none;
}

/* Countdown digit pulse — quick red flash + scale when value changes */
.hero-announcement .countdown-cell.is-tick {
  animation: countdown-tick 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes countdown-tick {
  0% {
    background: linear-gradient(180deg, rgba(227, 27, 35, 0.55), rgba(140, 16, 20, 0.42));
    border-left-color: var(--amber);
    transform: translateY(-1px) scale(1.02);
  }
  60% {
    border-left-color: var(--red);
  }
  100% {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.36));
    border-left-color: var(--red);
    transform: none;
  }
}

/* Parallax on hero-visual: needs will-change for smooth GPU compositing */
.hero-visual-frame {
  will-change: transform;
  transition: transform 60ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero-announcement .countdown-cell.is-tick {
    animation: none !important;
  }
}

/* Improved focus styles for keyboard users — visible outline ring */
.button:focus-visible,
.contact-card-cta:focus-visible,
.archive-tab:focus-visible,
.event-sub-tab:focus-visible,
.share-button:focus-visible,
.fighter-link:focus-visible,
.team-rail-item a:focus-visible,
.gallery-item:focus-visible,
.mobile-dock-tab:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* =========================================================================
   Mobile UX layer 4: Ken Burns, scroll hint, gallery counter, sticky filters,
   iOS Safari dock hardening
   ========================================================================= */

/* Ken Burns: subtle infinite zoom on hero artwork (skip on text-heavy posters) */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual-frame img {
    animation: ken-burns 22s ease-in-out infinite;
    will-change: transform;
  }
  /* Disable Ken Burns when hero shows a poster — text would wobble */
  .hero-visual--poster .hero-visual-frame img {
    animation: none;
  }
}

/* Portrait-oriented hero (event poster) — match natural aspect, cap height */
.hero-visual--poster .hero-visual-frame {
  aspect-ratio: 495 / 1080;
  max-width: 360px;
  margin-inline: auto;
  background: #0a0a0b;
}

.hero-visual--poster .hero-visual-frame img {
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-visual--poster .hero-visual-frame {
    max-width: min(280px, 70vw);
    max-height: 56vh;
  }
}

@media (max-width: 560px) {
  .hero-visual--poster .hero-visual-frame {
    max-width: min(260px, 68vw);
    max-height: 52svh;
  }
}

@keyframes ken-burns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1.4%, -0.8%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

/* Hero scroll-hint: bouncing chevron — fixed near bottom on mobile so it's
   always visible above the dock until user starts scrolling */
.hero {
  position: relative;
}

.hero-scroll-hint {
  position: fixed;
  bottom: calc(86px + env(safe-area-inset-bottom));
  right: 14px;
  z-index: 35;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.7);
  border: 1px solid rgba(246, 196, 58, 0.36);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--amber);
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    background 200ms ease;
}

.hero-scroll-hint-label {
  display: none;
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
  color: var(--amber);
}

.hero-scroll-hint-icon {
  width: 22px;
  height: 22px;
  animation: hint-bob 1.8s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.hero-scroll-hint.is-dismissed {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}

@media (min-width: 901px) {
  .hero-scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-frame img {
    animation: none !important;
  }
  .hero-scroll-hint-icon {
    animation: none !important;
  }
}

/* Gallery counter pill — "5/18" indicator above the carousel */
.gallery-wrap {
  position: relative;
}

.gallery-counter {
  display: none;
}

@media (max-width: 560px) {
  .gallery-counter {
    display: inline-flex;
    position: absolute;
    top: -8px;
    right: 16px;
    z-index: 3;
    gap: 1px;
    align-items: baseline;
    padding: 5px 11px 4px;
    background: rgba(7, 7, 7, 0.86);
    border: 1px solid rgba(246, 196, 58, 0.45);
    color: var(--amber);
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.62);
    pointer-events: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: opacity 240ms ease;
  }
  .gallery-counter[hidden] {
    display: none;
  }
  .gallery-counter strong {
    color: var(--paper);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }
  .gallery-counter-sep {
    color: rgba(255, 255, 255, 0.42);
    margin: 0 2px;
  }
}

/* Sticky archive filter bar on mobile */
@media (max-width: 900px) {
  #archivo .archive-tabs {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0 -16px 18px;
    padding: 12px 16px 10px;
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.82));
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    backdrop-filter: blur(14px) saturate(1.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.62);
  }
}

/* =========================================================================
   iOS Safari hardening: dock + viewport behavior
   - Bigger bottom inset so dock buttons clear Safari's bottom-edge gestures
   - Translate Z hint for stable compositing during URL-bar show/hide
   - Disable browser pull-to-refresh / overscroll on body so dock stays put
   ========================================================================= */

html,
body {
  overscroll-behavior-y: none;
}

/* Dynamic viewport for hero (svh first for older Safari, dvh override) */
.hero {
  min-height: 100svh;
}
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .mobile-dock {
    /* Push buttons clearly above Safari's bottom 44px tap-zone */
    padding-bottom: max(14px, calc(8px + env(safe-area-inset-bottom)));
    /* JS-tracked offset for iOS visualViewport: lifts dock above Safari URL bar */
    bottom: var(--vv-offset, 0);
    /* Hardware-accelerate so dock doesn't flicker when Safari recomposites */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Fully opaque base layer so it never reads as "Safari chrome" */
    background:
      linear-gradient(180deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.985) 55%);
    /* Smooth move when URL bar slides */
    transition: bottom 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .mobile-dock-tab {
    /* Bigger tap target = no accidental Safari edge presses */
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  /* Reserve room for taller dock at body level (no content under dock) */
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

/* =========================================================================
   Mobile UX layer 5: roster compaction, fighter prev/next, offline banner
   ========================================================================= */

/* Fighters roster: 2-col grid on phones (half the scroll for 18 fighters) */
@media (max-width: 560px) {
  .fighters-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fighter-index-card {
    min-height: 220px;
    padding: 12px 12px 10px;
    gap: 4px;
  }

  .fighter-index-card.has-photo {
    min-height: 240px;
  }

  .fighter-index-card h3 {
    font-size: clamp(1.05rem, 5.5vw, 1.4rem);
    line-height: 0.95;
    text-shadow: 2px 2px 0 #000, -1px 1px 0 var(--red);
  }

  .fighter-index-team {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .fighter-index-head {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .fighter-index-footer {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  /* Fallback monogram smaller on mobile */
  .fighter-index-photo-fallback {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  /* Team grouping header tighter */
  .fighter-teams-heading {
    margin-bottom: 10px;
  }

  .fighter-teams-heading h3 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

/* Fighter prev/next nav (bottom of profile pages) */
.fighter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fighter-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  font-family: Arial, sans-serif;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 160ms ease;
}

.fighter-nav a:hover,
.fighter-nav a:focus-visible {
  border-color: var(--red);
  background: rgba(227, 27, 35, 0.12);
}

.fighter-nav a:active {
  transform: scale(0.98);
}

.fighter-nav-prev {
  text-align: left;
}

.fighter-nav-next {
  text-align: right;
  align-items: flex-end;
}

.fighter-nav-direction {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.fighter-nav-name {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.fighter-nav-team {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 560px) {
  .fighter-nav {
    grid-template-columns: 1fr;
  }
  .fighter-nav-next {
    text-align: left;
    align-items: flex-start;
  }
  .fighter-nav-next .fighter-nav-direction {
    justify-content: flex-end;
    width: 100%;
  }
}

/* =========================================================================
   Mobile UX layer 6: PERF — pause out-of-view animations, lighter blur,
   content-visibility for fight cards
   ========================================================================= */

/* Pause hero animations (Ken Burns + scan-sweep) when hero is offscreen.
   JS adds .is-paused on .hero via scroll handler. */
.hero.is-paused .hero-visual-frame img {
  animation-play-state: paused;
}
.hero.is-paused .hero-visual-frame::after {
  animation-play-state: paused;
}
.hero.is-paused .hero-visual-frame {
  transition: none;
}

/* No dock blur on mobile: fixed translucent blur is costly on low-end phones. */
@media (max-width: 900px) {
  .mobile-dock {
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.98) 55%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  #archivo .archive-tabs {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* content-visibility on fight cards & fight rows: many on fighter pages.
   Browser skips paint until near viewport. Big mobile scroll perf win. */
.fight-card,
.fight-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}

/* Lower text-shadow cost on huge titles (large blurred shadows are expensive
   to repaint during scroll) — single shadow + red offset */
@media (max-width: 560px) {
  .hero-title-type {
    text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.85), -1px 1px 0 var(--red);
  }
  .hero-announcement strong {
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85), -2px 2px 0 var(--red);
  }
  .fighter-index-card h3 {
    text-shadow: 2px 2px 0 #000, -1px 1px 0 var(--red);
  }
  /* Smaller live-pulse box-shadow to reduce repaint area on small screens */
  .live-dot {
    box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.45), 0 0 8px rgba(227, 27, 35, 0.55);
  }
}

/* Save battery on data-saver browsers — kill cosmetic infinite animations */
@media (prefers-reduced-data: reduce) {
  .hero-visual-frame img,
  .hero-visual-frame::after,
  .live-dot,
  .hero-scroll-hint-icon {
    animation: none !important;
  }
}

/* Offline banner — appears when navigator.onLine === false */
.offline-banner {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 7px;
  background: rgba(7, 7, 7, 0.92);
  border: 1px solid rgba(246, 196, 58, 0.45);
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -120%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.offline-banner.is-visible {
  transform: translate(-50%, 0);
}

.offline-banner-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: offline-blink 1.4s ease-in-out infinite;
}

@keyframes offline-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .offline-banner-dot {
    animation: none;
  }
}

/* =========================================================================
   Media archive page (/archivo/)
   ========================================================================= */

.archivo-page {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(60px, 8vw, 96px);
}

.archivo-intro {
  max-width: 820px;
}

.archivo-lede {
  margin-top: 14px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.archivo-event {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(28px, 4vw, 44px);
  margin-top: clamp(28px, 4vw, 44px);
}

.archivo-event-head {
  margin-bottom: 22px;
}

.archivo-event-head h2 {
  margin-top: 6px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.archivo-event-meta {
  margin-top: 10px;
  max-width: 720px;
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.archivo-event-meta a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 196, 58, 0.35);
}

.archivo-group-title {
  margin: 28px 0 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 12px;
}

.archivo-back {
  margin-top: clamp(36px, 6vw, 60px);
  text-align: left;
}

/* Video gallery — single block, NOT a horizontal carousel */
.gallery.archivo-video-gallery {
  display: block !important;
  overflow-x: visible !important;
  scroll-snap-type: none !important;
  margin-top: 4px;
}

.archivo-video {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08080a;
  border-radius: 6px;
  overflow: hidden;
  max-width: 880px;
  contain: layout paint;
}

.archivo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.archivo-video figcaption {
  padding: 10px 14px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sponsor gallery — fixed grid (NOT carousel) so logos stay visible */
.gallery.sponsor-gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  overflow-x: visible !important;
  scroll-snap-type: none !important;
}

@media (max-width: 560px) {
  .gallery.sponsor-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.gallery.sponsor-gallery .sponsor-item {
  flex: none !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #131316, #08080a);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sponsor-item img {
  object-fit: contain !important;
  padding: 14%;
  background: transparent !important;
  filter: none !important;
}

.sponsor-item:hover img {
  transform: scale(1.04);
  filter: none !important;
}

.sponsor-item span {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
}

/* Home → archivo CTA card (replaces inline gallery) */
.archivo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--red);
  background: linear-gradient(180deg, rgba(227, 27, 35, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.archivo-cta:hover,
.archivo-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  border-left-color: var(--amber);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(246, 196, 58, 0.08), rgba(255, 255, 255, 0.02));
}

.archivo-cta-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.archivo-cta h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.archivo-cta p {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.archivo-cta-arrow {
  flex-shrink: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--amber);
  transition: transform 180ms ease;
}

.archivo-cta:hover .archivo-cta-arrow,
.archivo-cta:focus-visible .archivo-cta-arrow {
  transform: translateX(4px);
}

/* =========================================================================
   Roster filter chips (/fighters/)
   ========================================================================= */
.roster-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 28px clamp(20px, 4vw, 36px) !important;
}

.roster-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.roster-filter-label {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 4px;
  min-width: 78px;
}

.roster-filter-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 120ms ease;
}

.roster-filter-chip small {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.roster-filter-chip:hover,
.roster-filter-chip:focus-visible {
  border-color: rgba(227, 27, 35, 0.5);
  color: var(--paper);
}

.roster-filter-chip.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.roster-filter-chip.is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.roster-filter-chip:active {
  transform: scale(0.97);
}

.roster-filter-empty {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  text-align: center;
}

.fighter-teams-group[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .roster-controls {
    padding-inline: 16px !important;
  }
  .roster-filter-row {
    gap: 6px;
  }
  .roster-filter-label {
    width: 100%;
    min-width: 0;
    margin-bottom: 2px;
  }
  .roster-filter-chip {
    padding: 7px 11px 6px;
    font-size: 0.66rem;
  }
}

/* Mobile-first tightening for sub-pages: keep real content above the dock. */
@media (max-width: 560px) {
  .archivo-page {
    padding-top: 42px;
  }

  .archivo-intro {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .archivo-intro h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 9.2vw, 2.85rem);
    line-height: 0.95;
  }

  .archivo-lede {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .archivo-event {
    margin-top: 20px;
    padding-top: 26px;
  }

  .roster-hero {
    padding: 20px 16px 28px;
  }

  .roster-hero .profile-hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.05rem, 8.7vw, 2.95rem);
    line-height: 0.9;
  }

  .roster-hero .profile-tagline {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .event-detail-hero {
    gap: 18px;
    padding: 24px 16px 28px;
  }

  .event-detail-poster-inner {
    gap: 10px;
    padding: 18px;
  }

  .event-detail-headline {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }
}
