/* NextFightApp: "fight night" design.
   Dark poster bands (header, heroes) in both themes; light or dark content below them.
   Red corner vs blue corner is the sport's own convention; gold marks titles, CTAs and the brand.
   Barlow Condensed (display, numbers), Inter (text), JetBrains Mono (labels, data). */

:root {
  color-scheme: light;
  --bg: #f2f0eb; --bg-2: #e8e5de; --surface: #ffffff; --surface-2: #f7f6f2; --surface-3: #ebe9e3;
  --border: #dedad1; --border-strong: #c6c1b5;
  --text: #0d0f13; --text-2: #3a3f49; --muted: #626874;
  --link: #1b5ccc; --link-hover: #13469f;
  --red: #d0262d; --blue: #1b5ccc; --red-soft: #fbe6e6; --blue-soft: #e5edfb;
  --gold: #f2b636; --gold-ink: #845400; --gold-soft: #fbefd2;
  --good: #137a3a; --good-soft: #e1f2e6; --bad: #c0262b; --bad-soft: #fae5e4;
  /* night bands: always dark */
  --night: #0b0c10; --night-2: #15171d; --night-3: #1e2129; --night-line: #2a2e37;
  --night-text: #f5f5f7; --night-2t: #c9cdd5; --night-muted: #9097a3;
  --night-red: #ff4b53; --night-blue: #4a98ff;
  --radius-lg: 16px; --radius: 12px; --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 16, 8, .06);
  --shadow: 0 1px 2px rgba(20, 16, 8, .05), 0 10px 30px -14px rgba(20, 16, 8, .22);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c10; --bg-2: #101217; --surface: #14161c; --surface-2: #191c23; --surface-3: #222630;
    --border: #252931; --border-strong: #363c48;
    --text: #f2f3f5; --text-2: #bcc1ca; --muted: #8b919d;
    --link: #7fb3ff; --link-hover: #a9cbff;
    --red: #ff4b53; --blue: #4a98ff; --red-soft: #2b1416; --blue-soft: #111f37;
    --gold-ink: #f5c75c; --gold-soft: #2c2412;
    --good: #43d17a; --good-soft: #122a1b; --bad: #ff6b6b; --bad-soft: #321718;
    --night: #08090c; --night-2: #111318;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c10; --bg-2: #101217; --surface: #14161c; --surface-2: #191c23; --surface-3: #222630;
  --border: #252931; --border-strong: #363c48;
  --text: #f2f3f5; --text-2: #bcc1ca; --muted: #8b919d;
  --link: #7fb3ff; --link-hover: #a9cbff;
  --red: #ff4b53; --blue: #4a98ff; --red-soft: #2b1416; --blue-soft: #111f37;
  --gold-ink: #f5c75c; --gold-soft: #2c2412;
  --good: #43d17a; --good-soft: #122a1b; --bad: #ff6b6b; --bad-soft: #321718;
  --night: #08090c; --night-2: #111318;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font-text); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1 0 auto; width: 100%; padding-bottom: 56px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .95; }
h2 { font-size: clamp(26px, 3vw, 32px); margin: 44px 0 14px; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 6px; height: .8em; background: var(--gold); transform: skewX(-14deg); flex: none; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); }

/* ------------------------------------------------------------ header + footer */
.top { position: sticky; top: 0; z-index: 30; background: var(--night); color: var(--night-text); border-bottom: 1px solid var(--night-line); }
.top-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--night-text); }
.mark { width: 14px; height: 28px; background: var(--gold); transform: skewX(-16deg); position: relative; flex: none; border-radius: 2px; }
.mark::after { content: ""; position: absolute; left: 18px; top: 0; width: 6px; height: 28px; background: var(--night-red); border-radius: 2px; }
.wm { font: italic 800 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin-left: 10px; }
.wm b { color: var(--gold); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--night-2t); text-decoration: none; font: 700 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; padding: 22px 12px 19px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
@media (max-width: 700px) {
  .top { position: static; }
  .top-inner { flex-wrap: wrap; height: auto; gap: 0; padding-top: 14px; }
  .wm { font-size: 23px; }
  .nav { width: calc(100% + 16px); margin: 6px -8px 0; }
  .nav a { padding: 10px 9px 11px; font-size: 16px; }
  .nav a:first-child { display: none; }  /* the logo goes home */
}
.foot { background: var(--night); color: var(--night-muted); font-size: 13px; padding: 34px 0 40px; border-top: 3px solid var(--gold); }
.foot p { margin: 0 0 6px; max-width: 780px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot nav a { color: var(--night-text); font: 700 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.foot nav a:hover { color: var(--gold); }
.foot .wm { margin: 0 0 14px; display: inline-block; color: var(--night-text); font-size: 22px; }

/* ------------------------------------------------------------ bands (dark poster sections) */
.band { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 120% at 0% 60%, color-mix(in srgb, var(--night-red) 30%, transparent), transparent 70%),
              radial-gradient(55% 120% at 100% 60%, color-mix(in srgb, var(--night-blue) 30%, transparent), transparent 70%); }
.band.plain::before { background: radial-gradient(70% 140% at 85% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.band .wrap { padding-top: 26px; padding-bottom: 34px; }
.band a { color: var(--night-text); }
.band .crumbs, .band .crumbs a { color: var(--night-muted); }
.band .eyebrow { color: var(--gold); }
.band .lede { color: var(--night-2t); }
.band .lede strong, .band .lede a { color: #fff; }
.band h1 { color: #fff; }

/* breadcrumbs, page head */
.crumbs { font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.wrap > .crumbs:first-child { margin-top: 24px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.eyebrow { color: var(--gold-ink); font: 700 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 760px; }
.lede strong { color: var(--text); }
.head { padding: 4px 0 6px; }

/* pills, buttons */
.pill { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill.promo { background: var(--text); color: var(--bg); }
.band .pill.promo, .pill.promo.inv { background: #fff; color: #0b0c10; }
.pill.main { background: var(--gold); color: #1d1503; }
.pill.title { background: transparent; color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.band .pill.title { color: var(--gold); }
.pill.live { background: var(--night-red); color: #fff; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; font: 700 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1503; }
.btn.primary:hover { background: #ffc84f; border-color: #ffc84f; color: #1d1503; }
.band .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.band .btn:hover { border-color: #fff; }
.band .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1503; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.card + .card { margin-top: 14px; }
@media (max-width: 640px) { .card { padding: 16px; } }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.label { font: 700 11.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.label a { color: inherit; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.band .note { color: var(--night-muted); }

/* ------------------------------------------------------------ face-off (hero) */
.faceoff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; margin-top: 18px; }
.fo-side { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: #fff; min-width: 0; position: relative; container-type: inline-size; }
.fo-side .cut { width: min(300px, 100%); aspect-ratio: 350 / 254; object-fit: contain; object-position: bottom; display: block;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.fo-side .cut.nocut { display: flex; align-items: center; justify-content: center; font: 800 64px/1 var(--font-display); color: var(--night-muted); }
.fo-side.a { --c: var(--night-red); } .fo-side.b { --c: var(--night-blue); }
.fo-name { margin-top: -10px; font: 800 clamp(20px, 15cqi, 58px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word; max-width: 100%; }
.fo-name small { display: block; font-size: .42em; font-weight: 600; letter-spacing: .06em; color: var(--night-2t); margin-bottom: 2px; }
.fo-meta { margin-top: 10px; font: 500 12.5px/1.3 var(--font-mono); color: var(--night-2t); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fo-meta::before { content: ""; width: 18px; height: 4px; background: var(--c); border-radius: 2px; }
a.fo-side:hover .fo-name { color: var(--gold); }
.fo-vs { align-self: center; font: italic 800 clamp(30px, 4vw, 52px)/1 var(--font-display); color: var(--gold); padding: 0 6px 40px; }
.fo-center { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 40px; }
.fo-center .fo-vs { padding: 0; }
@media (max-width: 640px) {
  .faceoff { gap: 2px; }
  .fo-vs, .fo-center { padding-bottom: 54px; }
  .fo-meta { font-size: 11px; }
}
.hero-title { font-size: clamp(22px, 3vw, 30px); color: var(--night-2t); font-weight: 700; margin-top: 22px; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: var(--gold); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--night-line); }
.hero-foot .btns { margin: 0; }
.when { font: 600 15px/1.4 var(--font-text); color: var(--night-2t); }
.when b { color: #fff; font-weight: 700; }

/* countdown */
.countdown { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.countdown .cd { min-width: 62px; padding: 6px 8px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.countdown .cd b { display: block; font: 800 40px/1 var(--font-display); letter-spacing: .01em; }
.countdown .cd span { font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown .cd-label { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 8px; max-width: 140px; }
.countdown .cd-done { font: 800 24px/1 var(--font-display); text-transform: uppercase; color: var(--night-red); }
.band .countdown .cd { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.band .countdown .cd b { color: #fff; }
.band .countdown .cd span, .band .countdown .cd-label { color: var(--night-muted); }
@media (max-width: 640px) { .countdown .cd { min-width: 54px; } .countdown .cd b { font-size: 32px; } }

/* times strip on event page */
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 22px 0 0; border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.times > div { padding: 12px 16px; border-right: 1px solid var(--night-line); background: rgba(255,255,255,.03); }
.times > div:last-child { border-right: 0; }
.times dt { font: 700 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 4px; }
.times dd { margin: 0; font-weight: 600; color: #fff; font-size: 14.5px; }
.times dd small { display: block; color: var(--night-muted); font-weight: 500; font-size: 12.5px; }
@media (max-width: 640px) { .times > div { border-right: 0; border-bottom: 1px solid var(--night-line); } .times > div:last-child { border-bottom: 0; } }

/* ------------------------------------------------------------ event list */
.events { display: grid; gap: 10px; }
.ev { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.ev:hover { color: var(--text); border-left-color: var(--gold); transform: translateX(2px); }
.ev.next { border-left-color: var(--gold); }
.ev-date { text-align: center; line-height: 1; }
.ev-date span { display: block; font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ev-date b { display: block; font: 800 44px/.95 var(--font-display); margin: 3px 0 2px; }
.ev-kicker { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; font: 600 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ev-head { font: 800 clamp(22px, 2.6vw, 30px)/1 var(--font-display); text-transform: uppercase; margin: 6px 0 4px; letter-spacing: .005em; }
.ev-head i { font-style: italic; color: var(--gold-ink); font-size: .75em; margin: 0 .15em; }
.ev-meta { font-size: 13px; color: var(--muted); }
.ev-faces { display: flex; align-items: flex-end; }
.ev-faces .shot { width: 64px; height: 64px; }
.ev-faces .shot + .shot { margin-left: -14px; }
@media (max-width: 640px) {
  .ev { grid-template-columns: 54px minmax(0, 1fr); padding: 12px 12px 12px 10px; gap: 12px; }
  .ev-faces { display: none; }
  .ev-date b { font-size: 34px; }
  .ev-head { font-size: 22px; }
}
.ev-list { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 28px; font-size: 14px; }
.ev-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ev-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.ev-list a:hover { color: var(--link); text-decoration: underline; }
.ev-list small { display: block; color: var(--muted); font: 500 11.5px/1.4 var(--font-mono); }

/* headshots */
.shot { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; object-position: top; background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); flex: none; }
.shot.xl { width: 120px; height: 120px; border-radius: 16px; }
.noshot { display: inline-flex; align-items: center; justify-content: center; font: 800 16px/1 var(--font-display); color: var(--muted); }
.shot.xl.noshot { font-size: 40px; }
.flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: -1px; }

/* ------------------------------------------------------------ fight card */
.seg { margin-top: 8px; }
.seg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 14px; }
.seg-head h2 { margin: 0; }
.seg-head .hint { font: 500 12.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.bouts { display: grid; gap: 10px; }
.bout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 210px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.bout::before, .bout::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; }
.bout::before { left: 0; background: var(--red); }
.bout::after { right: 0; background: var(--blue); }
.bout.main { border-color: color-mix(in srgb, var(--gold) 70%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow-sm); }
.bout.main .shot { width: 64px; height: 64px; }
.corner { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.corner.b { flex-direction: row-reverse; text-align: right; }
a.corner:hover .name { color: var(--link); }
.ctext { display: flex; flex-direction: column; min-width: 0; }
.name { font: 800 23px/.95 var(--font-display); text-transform: uppercase; letter-spacing: .005em; overflow-wrap: break-word; }
.name small { display: block; font: 600 12.5px/1.2 var(--font-text); text-transform: none; color: var(--muted); letter-spacing: 0; margin-bottom: 2px; }
.bout.main .name { font-size: 28px; }
.meta { font: 500 12px/1.3 var(--font-mono); color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.corner.b .meta { justify-content: flex-end; }
.corner.lost { opacity: .55; }
.wbadge { display: inline-block; font: 800 11px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px; background: var(--good); color: #fff; vertical-align: 3px; margin-left: 6px; }
.corner.b .wbadge { margin: 0 6px 0 0; }
.mid { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.mid .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.wc { font: 700 11.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.result { font: 700 13px/1.3 var(--font-text); color: var(--text); }
.result span { display: block; font: 500 11.5px/1.3 var(--font-mono); color: var(--muted); }
.h2h { font: 700 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.h2h:hover { color: var(--link); }
@media (max-width: 680px) {
  .bout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 14px; gap: 10px 10px; }
  .bout .mid { grid-column: 1 / -1; grid-row: 2; }
  .shot, .bout.main .shot { width: 40px; height: 40px; }
  .name, .bout.main .name { font-size: 19px; }
  .meta .cty { display: none; }
}

/* split bar: red corner share vs blue corner share, with numbers at both ends */
.duel { display: grid; grid-template-columns: 34px minmax(40px, 1fr) 34px; gap: 6px; align-items: center; font: 700 13px/1 var(--font-mono); }
.duel > span:first-child { text-align: right; color: var(--red); }
.duel > span:last-child { text-align: left; color: var(--blue); }
.duel .bar { height: 8px; border-radius: 4px; display: flex; gap: 2px; overflow: hidden; }
.duel .bar i { display: block; height: 100%; background: var(--red); border-radius: 4px 0 0 4px; }
.duel .bar u { display: block; height: 100%; flex: 1; background: var(--blue); border-radius: 0 4px 4px 0; }
.duel-src { font: 600 10.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fav { color: var(--text); }

/* ------------------------------------------------------------ fighter page */
.fhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: end; }
.fhero .cut { width: 300px; aspect-ratio: 350 / 254; object-fit: contain; object-position: bottom; display: block; margin-bottom: -34px;
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.fhero .nocut { width: 140px; height: 140px; border-radius: 18px; background: var(--night-3); display: flex; align-items: center; justify-content: center; font: 800 52px/1 var(--font-display); color: var(--night-muted); margin-bottom: 4px; }
.fhero h1 small { display: block; font-size: .42em; font-weight: 600; color: var(--night-2t); letter-spacing: .06em; margin-bottom: 4px; }
.fhero .q { font: 700 13px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.facts { display: flex; gap: 10px 30px; flex-wrap: wrap; margin-top: 18px; }
.facts > span { display: flex; flex-direction: column; }
.facts small { font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.facts b { font: 800 26px/1.05 var(--font-display); color: #fff; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
@media (max-width: 700px) {
  .fhero { grid-template-columns: 1fr; }
  .fhero .cut { width: 220px; margin: 0 0 -8px; }
  .facts b { font-size: 22px; }
}
.answer { font: 600 clamp(18px, 2.2vw, 21px)/1.45 var(--font-text); margin: 24px 0 0; max-width: 860px; color: var(--text); }
.band .answer { color: #fff; }
.band .answer a { color: var(--gold); }
.answer a { color: inherit; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 9px 8px; border-bottom: 2px solid var(--text); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.res { display: inline-grid; place-items: center; min-width: 26px; height: 24px; border-radius: 4px; font: 800 14px/1 var(--font-display); background: var(--surface-3); color: var(--text-2); }
.res.W { color: #fff; background: var(--good); }
.res.L { color: #fff; background: var(--bad); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
td.big { font: 800 20px/1 var(--font-display); }
@media (max-width: 640px) { .hide-sm { display: none; } table { font-size: 13px; } td, th { padding: 8px 5px; } }

/* fighter index */
.filter { width: 100%; max-width: 440px; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.filter:focus { border-color: var(--gold); outline: none; }
.alpha { columns: 4 210px; column-gap: 24px; padding: 0; margin: 16px 0 0; list-style: none; font-size: 14px; }
.alpha li { break-inside: avoid; padding: 3px 0; }
.alpha li a { color: var(--text); text-decoration: none; font-weight: 600; }
.alpha li a:hover { color: var(--link); text-decoration: underline; }
.alpha li small { color: var(--muted); margin-left: 5px; font: 500 11px var(--font-mono); text-transform: uppercase; }
.booked { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.booked a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.booked a:hover { border-color: var(--gold); }
.booked a span { display: flex; flex-direction: column; min-width: 0; }
.booked b { font: 800 19px/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booked small { color: var(--muted); font: 500 11.5px/1.5 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* calendar feeds */
.feeds { display: grid; gap: 10px; }
.feed { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.feed p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.feed .btns { margin: 0; }
.steps { padding-left: 20px; margin: 8px 0 0; }
.steps li { margin: 4px 0; }

/* ------------------------------------------------------------ ratings */
.stats { display: flex; gap: 12px 34px; flex-wrap: wrap; }
.stat span { display: block; font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 800 38px/1.05 var(--font-display); }
.stat small { display: block; font-size: 12px; color: var(--muted); }
.rchart { position: relative; margin-top: 16px; min-height: 240px; }
.rchart svg { display: block; width: 100%; overflow: visible; }
.rchart svg:focus { outline: none; }
.rchart svg:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.rc-grid { stroke: var(--border); stroke-width: 1; }
.rc-mean { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 3; }
.rc-axis { fill: var(--muted); font: 500 11px var(--font-mono); }
.rc-area { fill: var(--gold); opacity: .14; }
.rc-line { fill: none; stroke: var(--gold-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rc-dot { fill: var(--gold-ink); stroke: var(--surface); stroke-width: 2; }
.rc-dot.hollow { fill: var(--surface); stroke: var(--gold-ink); }
.rc-end { fill: var(--text); font: 700 12px var(--font-mono); }
.rc-cross { stroke: var(--text-2); stroke-width: 1; }
.rc-tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 7px 10px; font-size: 12px; line-height: 1.4; color: var(--text-2); white-space: nowrap; z-index: 2; }
.rc-tip b { display: block; font: 800 20px/1.1 var(--font-display); color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.chips .pill { text-decoration: none; font-size: 11.5px; padding: 7px 10px; }
.chips .pill:hover { background: var(--gold-soft); color: var(--gold-ink); }
.who { display: flex; gap: 12px; align-items: center; }
.who > span { display: flex; flex-direction: column; min-width: 0; }
.who a, .who > span > b { color: var(--text); font: 800 18px/1.05 var(--font-display); text-transform: uppercase; text-decoration: none; }
.who a:hover { color: var(--link); }
.who small { color: var(--muted); font: 500 11.5px/1.5 var(--font-mono); }
.ranks .shot { width: 40px; height: 40px; }
.ranks td:first-child { font: 800 22px/1 var(--font-display); color: var(--muted); width: 44px; }
.ranks tr:nth-child(-n+3) td:first-child { color: var(--gold-ink); }

/* rating systems */
.rc-tabs, .sys-tabs { display: inline-flex; gap: 0; margin-top: 18px; border: 1.5px solid var(--border-strong); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.rc-tabs button, .sys-tabs a { font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border: 0; background: var(--surface); color: var(--text-2); cursor: pointer; text-decoration: none; border-right: 1px solid var(--border); }
.rc-tabs button:last-child, .sys-tabs a:last-child { border-right: 0; }
.rc-tabs button:hover, .sys-tabs a:hover { color: var(--text); background: var(--surface-2); }
.rc-tabs button[aria-pressed="true"], .sys-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.band .sys-tabs { border-color: var(--night-line); }
.band .sys-tabs a { background: transparent; color: var(--night-2t); border-right-color: var(--night-line); }
.band .sys-tabs a[aria-current="page"] { background: var(--gold); color: #1d1503; }
.rc-tabs + .rchart { margin-top: 10px; }
.preview-banner { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--gold-soft); color: var(--text); font-size: 13.5px; border: 1px dashed var(--gold); }
.preview-banner b { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; margin-right: 6px; }
tr.current td { background: var(--gold-soft); }
abbr[title] { text-decoration: none; }
.best { color: var(--gold-ink); font: 700 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }

/* ------------------------------------------------------------ head-to-head (fight page) */
.tape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tape > div { padding: 11px 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.tape > div:nth-last-child(-n+3) { border-bottom: 0; }
.tape .ta, .tape .tb { font: 800 21px/1.15 var(--font-display); align-self: stretch; }
.tape .ta { text-align: left; border-left: 4px solid var(--red); }
.tape .tb { text-align: right; border-right: 4px solid var(--blue); }
.tape .ta .name, .tape .tb .name { font-size: 24px; }
.tape .tk { display: flex; align-items: center; justify-content: center; text-align: center; font: 700 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); }
.tape .edge { color: var(--good); }
.tape .ta.edge::after { content: " ▲"; font-size: 11px; vertical-align: 3px; }
.tape .tb.edge::before { content: "▲ "; font-size: 11px; vertical-align: 3px; }
.tape small { font: 500 12px/1.3 var(--font-mono); color: var(--muted); margin: 0 6px; }
.tape .form { display: inline-flex; gap: 3px; flex-wrap: wrap; vertical-align: middle; }
.tape .form .res { min-width: 22px; height: 22px; font-size: 13px; }
.tape .flag { vertical-align: 1px; }
@media (max-width: 640px) {
  .tape { grid-template-columns: minmax(0, 1fr) minmax(84px, 110px) minmax(0, 1fr); }
  .tape > div { padding: 9px 8px; }
  .tape .ta, .tape .tb { font-size: 17px; }
  .tape .ta .name, .tape .tb .name { font-size: 19px; }
  .tape small { display: block; margin: 2px 0 0; }
}
.odds { display: grid; gap: 14px; }
.odds-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.odds-row .who-src { font: 800 18px/1.05 var(--font-display); text-transform: uppercase; }
.odds-row .who-src small { display: block; font: 500 11.5px/1.4 var(--font-mono); text-transform: none; color: var(--muted); letter-spacing: 0; }
.odds-row .duel { grid-template-columns: 44px minmax(60px, 1fr) 44px; font-size: 15px; }
.odds-row.market .who-src { color: var(--gold-ink); }
@media (max-width: 640px) { .odds-row { grid-template-columns: 1fr; gap: 6px; } }
.spark { display: block; width: 100%; height: auto; margin-top: 6px; }
.spark .sp-mid { stroke: var(--border-strong); stroke-dasharray: 3 3; }
.spark .sp-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.spark .sp-mark { stroke: var(--gold-ink); stroke-width: 1.5; }
.spark text { fill: var(--muted); font: 500 10.5px var(--font-mono); }
.spark .sp-end { fill: var(--surface); stroke: var(--red); stroke-width: 2; }
.verdict { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font: 800 26px/1.05 var(--font-display); text-transform: uppercase; }
.verdict .res { font-size: 18px; min-width: 32px; height: 30px; }
.verdict small { font: 500 13px/1.4 var(--font-mono); text-transform: none; color: var(--night-2t); width: 100%; }
.meet { list-style: none; margin: 0; padding: 0; }
.meet li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.meet li:last-child { border-bottom: 0; }

/* all-time */
.reign td:nth-child(3) { font: 800 20px/1 var(--font-display); }
.tabrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tabrow .sys-tabs { margin: 0; }
.ev-kicker > span:not(.pill) + span:not(.pill)::before { content: "·"; margin-right: 8px; color: var(--border-strong); }
.fo-side.lost { opacity: .5; }
.fo-side.lost .cut { filter: grayscale(1); }
.fo-win { position: relative; z-index: 1; margin: -26px 0 14px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #1d1503; background: var(--gold); padding: 5px 8px; border-radius: 4px; }
.eyebrow > span:not(.pill) + span:not(.pill)::before { content: "·"; margin-right: 10px; opacity: .6; }
