/* =========================================================================
   WCGL public site: "Fight Night" theme
   Used by index.html, fighters.html and fights.html.
   (admin.html and login.html still use styles.css.)
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: "Anton"; src: url("assets/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --ink: #0B0B0D;
  --ink-2: #111114;
  --panel: #141418;
  --panel-hover: #1A1A20;
  --line: #1F1F24;
  --line-2: #2A2A31;
  --text: #F4F4F6;
  --text-2: #C9C9D1;
  --muted: #A3A3AD;
  --muted-2: #8A8A94;
  --accent: #0050FF;
  --accent-text: #6F9CFF;
  --gold: #F5B83D;
  --live: #42D678;
  --div-und: #22C3E6;
  --div-ufc: #FF3B30;
  --div-mk: #F5B83D;
  --stamp-ko: #D42A25;
  --stamp-tko: #FF6A13;
  --stamp-sub: #8B5CF6;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Helvetica, sans-serif;
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --cut: 12px;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open, body.dialog-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--accent); color: #fff; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.noscript-message { padding: 16px var(--gutter); background: var(--stamp-ko); color: #fff; text-align: center; }

/* ---------- Shared type ---------- */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.label { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border: 0;
  font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: translate 0.3s var(--e), filter 0.3s var(--e), scale 0.15s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.24) 50%, transparent 65%);
  translate: -110% 0; transition: translate 0.9s var(--e);
}
.btn:hover { translate: 0 -2px; filter: brightness(1.15); }
.btn:hover::after { translate: 110% 0; }
.btn:active { scale: 0.97; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: #1C1C21; color: var(--text); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 16px; --cut: 10px; }
.btn-glint::after { animation: glint 3.6s 2s ease-in-out infinite; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.88); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  view-transition-name: site-header;
  animation: drop 0.8s var(--e) both;
  transition: background-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(11, 11, 13, 0.96); }
.header-inner { max-width: var(--shell); margin-inline: auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand-logo { width: 48px; height: 48px; animation: logo-in 1s 0.15s var(--spring) both; transition: rotate 0.5s var(--spring), scale 0.5s var(--spring); }
.brand:hover .brand-logo { rotate: -6deg; scale: 1.08; }
.brand-slash { width: 4px; height: 30px; background: var(--accent); transform: skewX(-18deg); }
.brand-text { font-family: var(--label); font-weight: 600; font-size: 13px; line-height: 1.15; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 8px; }
.desktop-nav { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-indicator {
  position: absolute; left: 0; bottom: 4px; height: 3px; width: 0; opacity: 0;
  background: var(--accent); pointer-events: none;
  transition: transform 0.45s var(--e), width 0.45s var(--e), opacity 0.3s ease;
}
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 12px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 3px; background: var(--text); transition: translate 0.3s var(--e), opacity 0.2s ease; }
.menu-toggle span:nth-child(2) { width: 70%; margin-left: auto; }

.menu-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(360px, 88vw);
  display: flex; flex-direction: column; gap: 28px; padding: 18px 24px 28px;
  background: var(--ink-2); border-left: 1px solid var(--line);
  translate: 100% 0; visibility: hidden; transition: translate 0.45s var(--e), visibility 0s 0.45s;
}
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
body.menu-open .mobile-menu { translate: 0 0; visibility: visible; transition: translate 0.45s var(--e), visibility 0s; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-head img { width: 44px; height: 44px; }
.menu-close { width: 48px; height: 48px; border: 0; background: transparent; position: relative; }
.menu-close::before, .menu-close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 3px; background: var(--text); }
.menu-close::before { rotate: 45deg; } .menu-close::after { rotate: -45deg; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 34px; line-height: 1.1; text-transform: uppercase; text-decoration: none; color: var(--muted);
  translate: 24px 0; opacity: 0; transition: translate 0.5s var(--e), opacity 0.5s var(--e), color 0.2s ease;
}
body.menu-open .mobile-nav a { translate: 0 0; opacity: 1; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-nav a.is-active, .mobile-nav a:hover { color: var(--text); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-socials { display: flex; gap: 20px; margin-top: auto; }
.mobile-socials a { font-family: var(--label); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-panel { position: absolute; top: 0; right: -80px; width: 46%; height: 100%; background: var(--panel); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); animation: slide-in 1.1s 0.1s var(--e) both; }
.hero-stripe { position: absolute; top: 0; right: 30%; width: 14px; height: 100%; background: var(--accent); transform: skewX(-12deg); animation: sweep 1.2s 0.25s var(--e) both, breathe 4s 1.5s ease-in-out infinite; }
.hero-edge {
  position: absolute; top: 0; right: -80px; width: 46%; height: 100%; background: var(--accent);
  clip-path: polygon(22% 0, calc(22% + 14px) 0, 14px 100%, 0 100%);
  animation: slide-in 1.1s 0.1s var(--e) both, breathe 4s 1.5s ease-in-out infinite;
}
.hero-watermark { position: absolute; top: 50%; right: 4%; width: 380px; max-width: 34%; margin-top: -190px; opacity: 0.07; pointer-events: none; animation: float 9s ease-in-out infinite; }
.hero-inner { position: relative; max-width: var(--shell); margin-inline: auto; padding: clamp(48px, 8vw, 80px) var(--gutter) clamp(44px, 7vw, 68px); display: flex; flex-direction: column; gap: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag-season { padding: 6px 12px; background: var(--accent); color: #fff; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.live-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: ping 1.8s ease-out infinite; }
.live-label.is-offline .live-dot { background: var(--gold); animation: none; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 10vw, 136px); line-height: 0.92; letter-spacing: 1px; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: block; animation: rise 1s var(--e) both; }
.hero-title .line:nth-child(1) > span { animation-delay: 0.45s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.58s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.71s; color: var(--accent); }
.hero-copy { margin: 0; max-width: 40ch; font-size: 19px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { min-height: 54px; padding-inline: 30px; font-size: 19px; }
.fade-in { animation: up 0.9s var(--e) both; }
.hero-tags.fade-in { animation-delay: 0.3s; }
.hero-copy.fade-in { animation-delay: 0.95s; }
.hero-actions.fade-in { animation-delay: 1.1s; }

/* ---------- Stats strip ---------- */
.stats { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.stats-grid { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--display); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value.is-accent { color: var(--accent-text); }
.stat-label { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: var(--shell); margin-inline: auto; padding: 72px var(--gutter) 24px; display: flex; flex-direction: column; gap: 28px; }
.section + .section { padding-top: 56px; }
.section:last-of-type { padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-kicker { display: block; margin-bottom: 6px; font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent-text); }
.section-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 52px); line-height: 1; text-transform: uppercase; }
.section-link { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--label); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-underline-offset: 6px; }
.section-link:hover { color: var(--text); }

/* ---------- Belt holders ---------- */
.belt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.belt-card {
  position: relative; overflow: hidden; width: 100%; text-align: left; border: 0;
  background: var(--panel); color: var(--text); padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: translate 0.45s var(--e), background-color 0.45s var(--e);
}
.belt-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--div, var(--accent)); }
.belt-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  translate: -110% 0; transition: translate 0.9s var(--e);
}
button.belt-card:hover, button.belt-card:focus-visible { translate: 0 -8px; background: var(--panel-hover); }
button.belt-card:hover::after { translate: 110% 0; }
.belt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.belt-division { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--div-text, var(--div)); }
.belt-icon { width: 40px; height: 24px; color: var(--gold); animation: glow 3.2s ease-in-out infinite; transition: scale 0.5s var(--spring), rotate 0.5s var(--spring); }
button.belt-card:hover .belt-icon { scale: 1.15; rotate: -8deg; }
.belt-who { display: flex; flex-direction: column; gap: 4px; }
.belt-label { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.belt-name { font-family: var(--display); font-size: 38px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.belt-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.belt-record { font-family: var(--display); font-size: 30px; line-height: 1; }
.belt-last { font-size: 15px; color: var(--muted); }
.belt-card.is-vacant .belt-name { color: var(--muted-2); }
.belt-card.is-vacant .belt-icon { color: var(--muted-2); animation: none; }

/* ---------- Result cards (home + archive) ---------- */
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-card { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--panel); transition: translate 0.4s var(--e), background-color 0.4s var(--e); }
.result-card:hover { translate: 6px 0; background: var(--panel-hover); }
.result-bar { width: 6px; flex: none; background: var(--div, var(--accent)); transition: width 0.4s var(--e); }
.result-card:hover .result-bar { width: 12px; }
.result-main { flex: 999 1 420px; min-width: 0; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.result-side { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.result-label { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); }
.result-side.is-winner .result-label { color: var(--gold); }
.result-name { font-family: var(--label); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--muted); overflow-wrap: anywhere; }
.result-side.is-winner .result-name { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--text); text-transform: uppercase; }
.result-card.is-neutral .result-side .result-name { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--text); text-transform: uppercase; }
.result-card.is-neutral .result-side .result-label { color: var(--muted); }
.result-def { font-family: var(--display); font-size: 20px; color: #6E6E78; text-transform: uppercase; }
.result-meta { flex: 1 1 260px; padding: 18px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-left: 1px solid #222228; }
.result-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 120px; text-align: right; }
.result-game { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--div-text, var(--div)); }
.result-date { font-size: 14px; color: var(--muted-2); }
.result-event { font-size: 14px; color: var(--muted); }
.title-fight { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.empty-row { padding: 28px; background: var(--panel); color: var(--muted); }

.stamp {
  display: inline-block; padding: 7px 14px; transform: rotate(-3deg);
  font-family: var(--display); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: var(--gold); color: var(--ink);
}
.stamp--ko { background: var(--stamp-ko); color: #fff; }
.stamp--tko { background: var(--stamp-tko); color: var(--ink); }
.stamp--sub { background: var(--stamp-sub); color: #fff; }
.stamp--dq, .stamp--nc { background: #3A3A42; color: var(--text); }
.stamp--dec { background: #E8E8EC; color: var(--ink); }
.stamp--draw { background: #5A5A64; color: #fff; }

/* ---------- Featured video ---------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--panel); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Discord band ---------- */
.cta-band { position: relative; background: var(--accent); clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); margin-top: 48px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background: repeating-linear-gradient(-55deg, #fff 0 2px, transparent 2px 26px);
  background-size: 200% 200%; animation: drift 18s linear infinite;
}
.cta-inner { position: relative; max-width: var(--shell); margin-inline: auto; padding: 84px var(--gutter) 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-copy { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.cta-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; text-transform: uppercase; color: #fff; }
.cta-copy p { margin: 0; font-size: 18px; color: #fff; }
.cta-band .btn { min-height: 58px; padding-inline: 34px; font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #08080A; }
.cta-band + .site-footer, main + .site-footer { margin-top: 0; }
.footer-inner { max-width: var(--shell); margin-inline: auto; padding: 36px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; max-width: 640px; }
.footer-brand img { width: 40px; height: 40px; flex: none; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--muted-2); }
.footer-social-links { display: inline-flex; gap: 20px; }
.footer-links a { color: var(--muted-2); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }

/* ---------- Sync banner ---------- */
.sync-banner { background: #2A2108; color: #F7E2B0; border-bottom: 1px solid #4A3A10; }
.sync-banner .shell { padding-block: 10px; font-size: 14px; }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero-stripe { right: 18%; }
.page-hero-inner { position: relative; max-width: var(--shell); margin-inline: auto; padding: clamp(40px, 7vw, 64px) var(--gutter) clamp(32px, 5vw, 48px); display: flex; flex-direction: column; gap: 12px; }
.page-hero-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 112px); line-height: 0.92; text-transform: uppercase; }
.page-hero-title > span { display: block; animation: rise 0.9s 0.2s var(--e) both; }
.page-hero-title { overflow: hidden; }
.page-hero p { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 18px; animation: up 0.8s 0.45s var(--e) both; }

/* ---------- Toolbar: search + filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.result-count { margin: 0; font-family: var(--label); font-weight: 600; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.search { position: relative; flex: 0 1 340px; min-width: 220px; }
.search input {
  width: 100%; min-height: 48px; padding: 12px 44px 12px 16px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel);
  font-size: 16px; color: var(--text); transition: border-color 0.2s ease, background-color 0.2s ease;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--panel-hover); }
.search kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; padding: 2px 8px; border: 1px solid var(--line-2); font-family: var(--label); font-size: 13px; color: var(--muted-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); background: transparent;
  font-family: var(--label); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-button:hover { color: var(--text); border-color: var(--div, var(--accent)); }
.filter-button.is-active { background: var(--div, var(--accent)); border-color: var(--div, var(--accent)); color: var(--on-div, #fff); }

/* ---------- Rankings table ---------- */
.rank-head, .rank-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px 110px 56px; align-items: center; gap: 16px; }
.rank-head { padding: 0 22px 0 28px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted-2); }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row { position: relative; padding: 14px 22px 14px 28px; background: var(--panel); transition: translate 0.4s var(--e), background-color 0.4s var(--e); }
.rank-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--div, var(--accent)); transition: width 0.4s var(--e); }
.rank-row:hover { translate: 6px 0; background: var(--panel-hover); }
.rank-row:hover::before { width: 10px; }
.rank-num { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--muted-2); }
.rank-row.is-top .rank-num { color: var(--gold); }
.rank-identity { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0; border: 0; background: none; text-align: left; }
.rank-name { font-family: var(--display); font-size: 26px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.rank-identity:hover .rank-name { color: var(--accent-text); }
.rank-sub { font-size: 14px; color: var(--muted); }
.rank-sub b { font-family: var(--label); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--div-text, var(--div)); }
.rank-record { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 28px; line-height: 1; }
.rank-record small { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 1px; color: var(--muted-2); margin-right: 6px; }
.rank-finishes { font-family: var(--display); font-size: 24px; }
.rank-finishes small { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-left: 4px; }
.rank-open {
  width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, translate 0.3s var(--e);
}
.rank-open svg { width: 18px; height: 18px; }
.rank-row:hover .rank-open { background: var(--accent); border-color: var(--accent); translate: 4px 0; }
.empty-state { padding: 48px 24px; background: var(--panel); text-align: center; }
.empty-state h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 32px; text-transform: uppercase; }
.empty-state p { margin: 0; color: var(--muted); }

/* ---------- Fighter profile dialog ---------- */
.fighter-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.fighter-dialog::backdrop { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); transition: background-color 0.35s ease, backdrop-filter 0.35s ease; }
.fighter-dialog.is-visible::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); }
.dialog-panel {
  position: relative; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--ink-2); border-top: 6px solid var(--div, var(--accent));
  opacity: 0; translate: 0 32px; scale: 0.97; transition: opacity 0.35s var(--e), translate 0.45s var(--e), scale 0.45s var(--e);
}
.fighter-dialog.is-visible .dialog-panel { opacity: 1; translate: 0 0; scale: 1; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; border: 0; background: rgba(0,0,0,0.4); }
.dialog-close::before, .dialog-close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 3px; background: var(--text); }
.dialog-close::before { rotate: 45deg; } .dialog-close::after { rotate: -45deg; }
.profile-hero { position: relative; overflow: hidden; padding: 36px 28px 28px; background: var(--panel); }
.profile-hero::after { content: ""; position: absolute; top: 0; right: 18%; width: 12px; height: 100%; background: var(--div, var(--accent)); transform: skewX(-12deg); opacity: 0.8; }
.profile-division { position: relative; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--div-text, var(--div)); }
.profile-name { position: relative; margin: 6px 0 0; padding-right: 48px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 8vw, 64px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.profile-champ { position: relative; display: inline-flex; margin-top: 12px; padding: 5px 10px; background: var(--gold); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.profile-stats div { padding: 18px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.profile-stats div:last-child { border-right: 0; }
.profile-stats strong { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; }
.profile-stats .is-win strong { color: var(--accent-text); }
.profile-stats span { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.profile-form { display: flex; align-items: center; gap: 6px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.profile-form .label { margin-right: 8px; }
.form-pip { width: 28px; height: 28px; display: grid; place-items: center; font-family: var(--display); font-size: 15px; }
.form-pip.is-win { background: #1F7A4D; color: #fff; }
.form-pip.is-loss { background: #8E1F1C; color: #fff; }
.form-pip.is-draw, .form-pip.is-nc { background: #3A3A42; color: var(--text); }
.profile-history { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.profile-history h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.profile-fight { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); }
.profile-fight .form-pip { width: 36px; height: 36px; font-size: 18px; }
.profile-fight-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.profile-fight-who span { font-size: 13px; color: var(--muted); }
.profile-fight-who strong { font-family: var(--label); font-weight: 700; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.profile-fight-who small { font-size: 13px; color: var(--muted-2); }
.profile-fight .stamp { font-size: 15px; padding: 5px 10px; }

/* ---------- Scroll-driven reveals (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .belt-card { animation: up linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 6%) entry calc(55% + var(--i, 0) * 6%); }
  .result-card { animation: from-left linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  .result-card .stamp { animation: slam linear both; animation-timeline: view(); animation-range: entry 35% entry 85%; }
  .rank-row { animation: up-sm linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .cta-band { animation: band linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

/* ---------- Page-to-page transitions (replaces the old loader) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--e) both; }

/* ---------- Keyframes ---------- */
@keyframes drop { from { translate: 0 -100%; opacity: 0; } }
@keyframes logo-in { from { scale: 0.4; rotate: -20deg; opacity: 0; } }
@keyframes rise { from { translate: 0 105%; } }
@keyframes up { from { translate: 0 36px; opacity: 0; } }
@keyframes up-sm { from { translate: 0 16px; opacity: 0; } }
@keyframes from-left { from { translate: -48px 0; opacity: 0; } }
@keyframes slide-in { from { translate: 30% 0; opacity: 0; } }
@keyframes sweep { from { translate: 0 -105%; } }
@keyframes breathe { 50% { opacity: 0.55; } }
@keyframes float { 50% { translate: 0 -18px; rotate: 3deg; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(66, 214, 120, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(66, 214, 120, 0); } }
@keyframes slam { 0% { scale: 2.4; opacity: 0; } 65% { scale: 0.9; opacity: 1; } }
@keyframes band { from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 6px rgba(245, 184, 61, 0.75)); } }
@keyframes glint { 0%, 70% { translate: -110% 0; } 100% { translate: 110% 0; } }
@keyframes drift { to { background-position: 100% 100%; } }
@keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 18px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .video-layout { grid-template-columns: minmax(0, 1fr); }
  .rank-head { display: none; }
  .rank-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "num who open" "num rec fin"; row-gap: 8px; }
  .rank-num { grid-area: num; font-size: 26px; }
  .rank-identity { grid-area: who; }
  .rank-record { grid-area: rec; font-size: 22px; }
  .rank-finishes { grid-area: fin; justify-self: end; font-size: 20px; }
  .rank-open { grid-area: open; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-panel, .hero-watermark { display: none; }
  .page-hero .hero-stripe { right: 8%; width: 10px; opacity: 0.6; }
  .hero-edge { opacity: 0.6; }
  .brand-text, .brand-slash { display: none; }
  .result-main { flex-direction: column; align-items: flex-start; gap: 2px; }
  .result-side { flex: none; }
  .result-def { font-size: 16px; margin: 2px 0; }
  .result-meta { border-left: 0; border-top: 1px solid #222228; justify-content: space-between; padding-block: 14px; }
  .result-info { align-items: flex-end; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats div:nth-child(2) { border-right: 0; }
  .profile-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-hero, .profile-history, .profile-form { padding-inline: 18px; }
  .search { flex-basis: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
