:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1c1c1f;
  --line: rgba(243, 234, 216, 0.12);
  --ice: #c81e2b;
  --ice-2: #e8d9c4;
  --gold: #f3ead8;
  --win: #7dba7a;
  --loss: #c81e2b;
  --draw: #c4b7a4;
  --text: #f3ead8;
  --muted: #9a8f82;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --wash-1: rgba(200, 30, 43, 0.12);
  --wash-2: rgba(243, 234, 216, 0.04);
  --glow: none;
  --nav-bg: #141416;
  --card: #141416;
  --btn-text: #f3ead8;
  --bar-track: #2a2a2e;
  --portrait: #1a1a1c;
  --inset: #1a1a1c;
  --radius: 12px;
  --grain: 0.035;
  --header: #0b0b0c;
  --header-text: #f3ead8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color-scheme: dark; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--wash-1), transparent 50%),
    radial-gradient(900px 400px at 90% 0%, var(--wash-2), transparent 45%),
    var(--bg);
  color: var(--text);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, footer { position: relative; }
.top { z-index: 50; }
main, footer { z-index: 1; }

.top {
  background: var(--header);
  color: var(--header-text);
  padding: 16px 32px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-right: max(32px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(200, 30, 43, 0.55);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(243, 234, 216, 0.15);
  appearance: none;
  -webkit-appearance: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--header-text);
  transform: rotate(45deg);
  box-shadow: var(--glow);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--ice);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.08em;
  line-height: 0.9;
}
.brand-text strong { color: var(--header-text); font-weight: 400; }
.brand-text em {
  font-family: Outfit, sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 234, 216, 0.55);
}

nav { display: flex; gap: 8px; }
nav a {
  color: rgba(243, 234, 216, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
nav a.active, nav a:hover {
  color: var(--header-text);
  border-color: transparent;
  border-bottom: 2px solid var(--ice);
  background: transparent;
  border-radius: 0;
}

main { max-width: 1280px; margin: 0 auto; padding: 18px 32px 60px; }
footer {
  max-width: 1280px;
  margin: 0 auto 28px;
  padding: 0 32px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  margin-bottom: 22px;
  align-items: stretch;
}
.hero-event {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.hero-event h1 { margin-bottom: 4px; }
a.hero-event-link {
  color: inherit;
  text-decoration: none;
}
a.hero-event-link:hover { color: var(--gold); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
a.hero-video,
button.hero-video {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-size: 13px;
}
button.hero-video:disabled {
  opacity: 0.45;
  cursor: default;
}
.hero-poster-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 200px;
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(200, 30, 43, 0.6);
  background:
    radial-gradient(90% 80% at 50% 30%, rgba(200, 30, 43, 0.28), transparent 68%),
    #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.hero-poster {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 6px;
}
.event-poster {
  display: block;
  width: min(100%, 440px);
  height: auto;
  border-radius: 8px;
}
.poster-band {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  justify-content: center;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}
h1, h2, h3 { font-family: Oswald, sans-serif; margin: 8px 0; letter-spacing: 0.04em; }
h1 { font-size: 42px; line-height: 1; }
.meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge.live { color: var(--ice); border-color: var(--ice); }
.badge.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--loss);
  box-shadow: 0 0 10px var(--loss);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  50% { opacity: 0.35; }
}

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}
.fight-list { display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow: auto; }
.fight-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-radius: var(--radius);
}
.row-shot {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 8px;
  background: var(--portrait);
  border: 1px solid var(--line);
}
.row-shot.empty { display: block; }
.fight-row:hover, .fight-row.selected { border-color: var(--ice); background: var(--panel-2); }
.schedule button.selected { border-color: var(--ice); }
.fight-row .info-b { text-align: right; }
.fight-row .name { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.fight-row .info-b .name { justify-content: flex-end; }
.name-flag { display: inline-flex; align-items: center; gap: 8px; }
.fight-row .sub { color: var(--muted); font-size: 12px; }
.fight-row .center {
  width: 108px;
  max-width: 108px;
  justify-self: center;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fight-row .result-line { color: var(--ice-2); letter-spacing: 0.04em; text-transform: none; font-size: 13px; margin-top: 2px; }
.fight-row .line {
  font-size: 22px;
  letter-spacing: 0.02em;
}
.line {
  font-family: Oswald, sans-serif;
  font-size: 18px;
  margin-top: 4px;
  color: var(--ice-2);
}
.line span { font-family: Outfit, sans-serif; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.line.fav { color: var(--gold); }
.odds-grid, .method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.method-grid { grid-template-columns: 1fr 1fr; }
.odds-grid div, .method-grid div {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--inset);
}
.odds-grid small, .method-grid small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 4px;
}
.odds-grid b, .method-grid b {
  font-family: Oswald, sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ice-2);
}
.odds-grid .moved, .method-grid .moved { color: var(--gold); }
.odds-grid .hit, .method-grid .hit, .line.hit, .props .hit, .spread-pair.hit b {
  color: var(--win);
}
.odds-grid .hit-box, .method-grid .hit-box, .spread-grid .hit-box, .props .hit {
  border-color: rgba(125, 186, 122, 0.55);
  background: rgba(125, 186, 122, 0.1);
}
.props span.hit { padding: 4px 8px; border-radius: 8px; }
.odds-chart {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 8px;
  background: var(--inset);
}
.odds-chart .kicker { display: flex; align-items: center; gap: 10px; }
.chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.chart-legend .swatch {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.chart-legend .swatch.left { background: var(--gold); }
.chart-legend .swatch.right { background: var(--ice); }
.line-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Outfit, system-ui, sans-serif;
}
.spread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.spread-grid > div {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--inset);
}
.spread-grid small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 8px;
}
.spread-pair {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  margin-top: 4px;
}
.spread-pair b {
  font-family: Oswald, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ice-2);
}
.spread-line { color: var(--gold); }
.spread-line span { color: var(--muted); }
.dfs-line { color: var(--ice-2); }
.dfs-grid b { font-size: 26px; }
.props { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.props span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 12px;
}
.props em { color: var(--muted); font-style: normal; }
.bout-actions, .bout-when { text-align: right; display: grid; gap: 6px; justify-items: end; }
.bout-date { color: var(--muted); font-size: 12px; }
.bout-place {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  max-width: 240px;
}
.bout-line { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.bout-line b { font-family: Oswald, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.bout-line small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.bout-line.win b { color: var(--win); }
.bout-line.loss b { color: var(--loss); }
.bout-line.neutral b { color: var(--gold); }
.ghost.tiny { padding: 6px 10px; font-size: 11px; }
.bout-panel {
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
@media (max-width: 900px) {
  .odds-grid, .method-grid { grid-template-columns: 1fr; }
}
.win .name { color: var(--win); }
.loss .name { color: var(--loss); }

.scorecard {
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--inset);
}
.scorecard .kicker { margin-bottom: 8px; }
.scorecard-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f4f1ea;
  border-radius: 8px;
  cursor: zoom-in;
}
.scorecard-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #f4f1ea;
}
.scorecard.zoomed .scorecard-shot {
  cursor: zoom-out;
}
.scorecard.zoomed .scorecard-shot img {
  max-height: none;
}
.scorecard .sub { margin-top: 8px; }
.sc-official { margin-top: 12px; color: var(--muted); font-size: 12px; }
.sc-official summary { cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase; }
.sc-official .scorecard-shot { margin-top: 10px; }

.faceoff {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 12px 0 16px;
  background: #000;
}
.fight-media {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.fight-media.one { grid-template-columns: 1fr; max-width: 280px; }
.fight-media.two { grid-template-columns: 1fr 1fr; }
.weighin-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}
.weighin-stills img, .weighin-stills .media-gap {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.media-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.media-tile img, .media-gap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.media-gap { background: var(--inset); }
.media-tile figcaption {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  background: var(--inset);
}
.media-tile.empty-tile img { display: none; }
.bout-clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}
.bout-clip {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.bout-clip-hit {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.bout-clip-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}
.bout-clip-stills img,
.bout-clip-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 18%;
  background: #000;
}
.bout-clip-stills img { aspect-ratio: 3 / 4; object-position: center 12%; }
.bout-clip-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(11, 11, 12, 0.82);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.bout-clip figcaption {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  background: var(--inset);
}
.bout-clip-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  aspect-ratio: 16 / 9;
  padding: 12px;
  text-align: center;
  background: var(--inset);
  color: var(--muted);
}
.bout-clip-soon strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.bout-clip.is-soon .bout-clip-soon { cursor: default; }
@media (max-width: 520px) {
  .bout-clips { grid-template-columns: 1fr; gap: 8px; }
  .bout-clip figcaption { font-size: 10px; letter-spacing: 0.1em; }
  .bout-clip-soon { aspect-ratio: auto; min-height: 88px; }
  .bout-clip-soon strong { font-size: 14px; }
  .bout-clip-play { left: 8px; bottom: 8px; font-size: 12px; }
}
.watch-pass {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 8px 12px;
  border: 1px solid var(--ice);
  border-radius: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.watch-pass:hover { background: var(--ice); color: var(--gold); }
.bout-actions .watch-pass, .bout-when .watch-pass {
  margin: 0;
  padding: 5px 8px;
  font-size: 10px;
}
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.pass-card h2 {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.04em;
  margin: 6px 0 10px;
}
.watch-desk { display: grid; gap: 16px; }
.watch-stage { padding: 0; overflow: hidden; }
.yt-watch {
  margin: 12px 0 4px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.yt-watch iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.watch-stage .yt-watch {
  margin: 0;
  border: 0;
  border-radius: 0;
}
body.ufc-overlay-open { overflow: hidden; }
#ufc-player,
#ufc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 12px;
}
#ufc-player[hidden],
#ufc-lightbox[hidden] { display: none !important; }
.ufc-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
}
.ufc-overlay-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 56px 12px 12px;
}
.ufc-overlay-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #141416;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ufc-overlay-stage .yt-watch { margin: 0; }
.ufc-overlay-stage img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  object-position: center top;
  background: #000;
}
.ufc-overlay-stage img + img { margin-top: 8px; }
.ufc-embed-fallback { margin: 12px 0 0; }
.pass-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #000;
}
.watch-note {
  padding: 10px 14px 14px;
  color: var(--muted);
}
.vs-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.fighter-col { min-width: 0; }
.portrait {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 12%;
  background: var(--portrait);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.profile-head .portrait {
  height: 280px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.bio-grid div {
  border: 1px solid var(--line);
  background: var(--inset);
  padding: 8px 10px;
}
.bio-grid small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}
.bio-grid b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  min-height: 20px;
}
.flag { width: 16px; height: 12px; object-fit: cover; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.record {
  font-family: Oswald, sans-serif;
  font-size: 34px;
  color: var(--ice-2);
  margin: 6px 0 2px;
}
.records {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 4px;
}
.records div {
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: var(--inset);
}
.records small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}
.records b {
  font-family: Oswald, sans-serif;
  font-size: 28px;
  color: var(--ice-2);
  font-weight: 500;
}
.nick { color: var(--gold); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.fighter-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.fighter-name .flag { width: 22px; height: 16px; }
.born {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
}
.nick-alias {
  color: var(--loss);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nick-legal {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.last5 { text-align: right; flex: 0 0 auto; }
.last5 small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 6px;
}
.form-row { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.last5 .tag { width: 22px; height: 22px; font-size: 11px; }
.vs {
  align-self: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stats {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.stat-row { display: grid; grid-template-columns: 72px 1fr 72px; column-gap: 10px; row-gap: 2px; align-items: center; }
.stat-row > span {
  font-family: Oswald, sans-serif;
  font-size: 20px;
}
.stat-row > span:last-of-type { text-align: right; }
.bar {
  height: 10px;
  background: var(--bar-track);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.bar i { display: block; height: 100%; }
.bar .l { background: linear-gradient(90deg, transparent, var(--ice)); justify-self: end; }
.bar .r { background: linear-gradient(90deg, var(--gold), transparent); }
.stat-label {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.targets div {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
}
.targets b { display: block; font-size: 22px; font-family: Oswald, sans-serif; }

.bouts { margin-top: 16px; display: grid; gap: 6px; }
.bout {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tag {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0;
  color: #fff;
  background: #2a2a2e;
  border: 1px solid rgba(243, 234, 216, 0.35);
}
.tag.W { background: #2f8f45; border-color: #2f8f45; color: #fff; }
.tag.L { background: var(--loss); border-color: var(--loss); color: #fff; }
.tag.D { background: #000; border-color: #b7b0a6; color: #fff; }
.tag.U, .tag.C, .tag.NC, .tag.N { background: #2a2a2e; border-color: rgba(243, 234, 216, 0.35); color: #fff; }

.search {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.search input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  border-radius: var(--radius);
}
.search button, .ghost {
  background: var(--ice);
  color: var(--btn-text);
  border-radius: var(--radius);
  border: 0;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
}
.ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
}

.results, .schedule { display: grid; gap: 8px; }
.result, .schedule a, .schedule button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: var(--radius);
}
.result:hover, .schedule a:hover, .schedule button:hover, .schedule a.selected { border-color: var(--ice); }
.schedule a.past span:last-child { color: var(--ice); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.account-hero { grid-template-columns: 1fr 1fr; }
body.locked nav a:not(#account-nav) { display: none; }
body.gate header,
body.gate footer { display: none; }
body.gate {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(200, 30, 43, 0.28), transparent 55%),
    #0b0b0c;
}
.gate-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 40px 20px;
}
.gate-brand {
  font-family: "Bebas Neue", Oswald, sans-serif;
  font-size: 52px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.gate-brand strong { color: var(--ice); }
.gate-box {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid rgba(200, 30, 43, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gate-box label {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-align: center;
}
.gate-box input {
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-align: center;
  border-radius: var(--radius);
}
.gate-box button {
  background: var(--ice);
  color: var(--gold);
  border: 0;
  padding: 12px 16px;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
}
.gate-box .auth-form { margin-top: 0; }
.gate-box .auth-form .kicker:empty { display: none; }
.gate-member {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.people-row { align-items: center; }
.people-row.off { opacity: 0.55; }
.people-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.invite-fresh {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--ice);
  border-radius: var(--radius);
  background: var(--inset);
  display: grid;
  gap: 10px;
}
.invite-fresh code {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--gold);
  word-break: break-all;
}
.lede {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.5;
}
.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form input {
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius);
}
.tz-field {
  display: grid;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tz-field select,
.tz-field select option {
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius);
  max-width: 100%;
}
.tz-preview { margin: 0 0 12px; }
.fight-row .fight-time {
  color: var(--ice-2);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  margin-top: 4px;
}
.fight-row .distance-line {
  display: block;
  width: 100%;
  margin: 4px auto 0;
  color: var(--ice-2);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  white-space: normal;
}
.fight-row .distance-line span {
  display: block;
  white-space: nowrap;
}
.fight-row .distance-kicker {
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.fight-row .distance-line.quiet { color: var(--muted); }
.auth-form button {
  background: var(--ice);
  color: var(--btn-text);
  border: 0;
  border-radius: var(--radius);
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  justify-self: start;
}
.saved-row {
  align-items: center;
}
.saved-row a {
  color: inherit;
  text-decoration: none;
}
.book-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.book-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-bar select {
  background: var(--inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}
.book-bar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.book-bar a:hover { color: var(--ice); }
.book-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.book-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--inset);
  cursor: pointer;
}
.book-choice.selected { border-color: var(--ice); }
.book-choice strong { display: block; }
.book-choice input { accent-color: var(--ice); }
@media (max-width: 900px) {
  .account-hero { grid-template-columns: 1fr; }
}
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.back-link:hover { color: var(--ice); }
.fighter-link {
  color: inherit;
  text-decoration: none;
}
.fighter-link:hover, .profile-link:hover { color: var(--ice); }
.profile-link {
  display: inline-block;
  margin: 4px 0 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero.card-page { grid-template-columns: 1fr; }

.profile-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts div { border: 1px solid var(--line); padding: 12px; background: var(--panel); }
.facts small { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }

.empty, .error, .loading {
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.fight-row .row-shot.empty {
  padding: 0;
  width: 44px;
  height: 44px;
  max-width: 44px;
  box-sizing: border-box;
}

.clock {
  font-family: Oswald, sans-serif;
  font-size: 28px;
  color: var(--gold);
}

@media (max-width: 900px) {
  .hero, .layout, .vs-board, .profile-head { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .layout > *, .profile-head > *, .vs-board > * { min-width: 0; }
  .fight-media { grid-template-columns: 1fr; }
  .fight-row { grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr) 40px; }
  .vs { writing-mode: initial; transform: none; text-align: center; }
  main, .top, footer { padding-left: 16px; padding-right: 16px; }
}

.looks-page { display: grid; gap: 28px; }
.look-block { display: grid; gap: 10px; }
.look-title {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0;
}
.look-note { color: var(--muted); font-size: 13px; margin: 0; }
.sc-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.sc-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.sc-names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}
.sc-name {
  font-family: Oswald, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
}
.sc-name small {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-name.win { color: var(--win); }
.sc-vs {
  color: var(--ice);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding-bottom: 8px;
}
.sc-right { text-align: right; }
.sc-judges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sc-judge {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.sc-judge h3 { margin: 0 0 8px; font-size: 14px; }
.sc-judge h3 span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sc-round {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  padding: 3px 0;
}
.sc-round .rd {
  color: var(--muted);
  font-family: Outfit, sans-serif;
  font-size: 11px;
  text-align: center;
  align-self: center;
  letter-spacing: 0.08em;
}
.sc-round.tot {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 6px;
  color: var(--win);
}
.sc-result {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 186, 122, 0.45);
  background: rgba(125, 186, 122, 0.1);
  border-radius: 8px;
  font-size: 13px;
}
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th, .sc-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.sc-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.sc-table td.round-lab {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sc-table .pair { font-family: Oswald, sans-serif; font-size: 20px; }
.sc-deduct {
  display: inline-block;
  margin: 0 3px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--loss);
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  vertical-align: super;
}
.sc-deductions {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--inset);
}
.sc-deductions ul { margin: 6px 0 0; padding: 0; list-style: none; }
.sc-deductions li { font-size: 13px; line-height: 1.45; }
.sc-table .pair .hi { color: var(--win); }
.sc-table tfoot td {
  color: var(--win);
  font-family: Oswald, sans-serif;
  font-size: 22px;
  border-bottom: 0;
}
.sc-corners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sc-corner {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.sc-corner.won { border-color: rgba(125, 186, 122, 0.55); }
.sc-corner h3 {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
}
.sc-rline {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.sc-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-dot {
  min-width: 28px;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 20px;
}
.sc-dot.hi { color: var(--win); }
.sc-sum {
  margin-top: 10px;
  font-family: Oswald, sans-serif;
  font-size: 32px;
  color: var(--win);
}
.sc-sum.down { color: var(--muted); }
@media (max-width: 900px) {
  .sc-names, .sc-judges, .sc-corners { grid-template-columns: 1fr; }
  .sc-right { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .brand { min-width: 0; overflow: hidden; }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--nav-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .top { z-index: 50; }
  body.nav-open nav { display: flex; }
  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
  }
  .fight-list { gap: 8px; }
  .layout, .hero, .card, .fight-list, .fight-row, .gate-screen, .gate-box, .search, .profile-head, .watch-desk {
    min-width: 0;
    max-width: 100%;
  }
  .fight-list {
    max-height: none;
    overflow: visible;
  }
  .fight-row {
    width: 100%;
    grid-template-columns: 32px minmax(0, 1fr) 100px minmax(0, 1fr) 32px !important;
    grid-template-rows: none;
    grid-template-areas: none;
    align-items: start;
    align-content: start;
    gap: 4px 6px;
    padding: 8px;
    min-height: min-content;
    height: max-content;
    overflow: visible;
  }
  .fight-row > * { min-width: 0; max-width: 100%; }
  .fight-row .shot-a,
  .fight-row .shot-b,
  .fight-row .info-a,
  .fight-row .info-b,
  .fight-row .center {
    grid-area: auto;
  }
  .fight-row .row-shot,
  .fight-row .row-shot.empty {
    width: 32px;
    height: 32px;
    max-width: 32px;
    padding: 0;
    border-radius: 6px;
    justify-self: center;
  }
  .fight-row .name {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }
  .fight-row .info-b .name { justify-content: flex-end; text-align: right; }
  .fight-row .sub { font-size: 10px; line-height: 1.25; }
  .fight-row .center {
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 0;
    border: 0;
    width: 100%;
    max-width: 100px;
    overflow-wrap: normal;
    word-break: normal;
  }
  .fight-row .distance-line { font-size: 9px; max-width: 100px; }
  .fight-row .distance-kicker { font-size: 8px; letter-spacing: 0.04em; }
  a.hero-event-link { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-poster-link { min-height: 0; padding: 8px; flex: 0 0 auto; }
  .hero-poster { max-height: none; height: auto; }
  .fight-row .result-line { font-size: 10px; }
  .fight-row .fight-time { font-size: 10px; margin-top: 2px; }
  .fight-row .line { font-size: 15px; line-height: 1.15; }
  .fight-row .line span { display: block; font-size: 9px; }
  .fight-row .info-b { text-align: right; }
  .looks-page,
  .look-block,
  .bout-panel,
  .scorecard,
  .sc-board {
    min-width: 0;
    max-width: 100%;
  }
  .bout-panel,
  .scorecard,
  .sc-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .odds-grid,
  .method-grid,
  .spread-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }
  .sc-table { min-width: 420px; }
  .sc-judges { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; overflow-x: visible; }
  .targets { grid-template-columns: 1fr; }
  .bio-grid b, .facts div, h1, h2, .nick, .lede, .meta, .clock { overflow-wrap: anywhere; }
  .clock { font-size: 22px; }
  .meta { align-items: flex-start; }
  .search { width: 100%; }
  .search input { min-width: 0; width: 0; flex: 1 1 auto; }
  .search button { flex: 0 0 auto; }
  .bout {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }
  .bout .tag {
    width: 28px;
    height: 28px;
    min-height: 28px;
    min-width: 28px;
  }
  .bout-actions, .bout-when {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .bout-place { justify-content: flex-start; max-width: none; }
  .profile-top { flex-wrap: wrap; }
  .last5, .form-row { text-align: left; justify-content: flex-start; width: 100%; }
  .fighter-name { font-size: 34px; }
  .born { flex-basis: 100%; }
  .result, .schedule a, .people-row, .saved-row, .book-bar { flex-wrap: wrap; align-items: center; }
  .people-actions { width: 100%; }
  .book-bar select, .tz-field select, .search input, .auth-form input, .gate-box input {
    max-width: 100%;
    min-height: 44px;
  }
  .book-choice input {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .fighter-col > a { display: block; }
  .fighter-col h2 .fighter-link,
  .bout a,
  .book-bar a,
  .gate-member,
  .profile-link,
  .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .gate-box,
  .gate-box > * { min-width: 0; max-width: 100%; }
  .gate-box input,
  .gate-box button,
  .auth-form input,
  .auth-form button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .profile-link { margin-right: 8px; }
  img, svg, video, iframe { max-width: 100%; }
  .mark, .flag, .row-shot, .nav-toggle span { max-width: none; }
  .portrait { height: 200px; }
  .profile-head .portrait { height: 240px; width: min(100%, 220px); }
  .ghost,
  .watch-pass,
  .search button,
  .auth-form button,
  .gate-box button,
  .back-link,
  .book-choice,
  .people-actions button {
    min-height: 44px;
    min-width: 44px;
  }
  .ghost.tiny {
    min-height: 44px;
    padding: 10px 12px;
  }
  .gate-brand { font-size: 42px; max-width: 100%; }
  .gate-screen { padding: 28px 16px; }
  .gate-box { width: min(100%, 400px); padding: 22px 16px; }
  .gate-box input {
    min-height: 44px;
    font-size: 20px;
    letter-spacing: 0.08em;
  }
  .brand-text em { display: none; }
  main { padding-bottom: 80px; }
}
