:root {
  --bg: #07080c;
  --bg-elevated: #0d1017;
  --surface: #11151d;
  --surface-2: #171c26;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #f6f7fa;
  --muted: #939ba9;
  --subtle: #5d6572;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --accent: #f1283f;
  --accent-bright: #ff3b4f;
  --accent-deep: #a80820;
  --accent-rgb: 241, 40, 63;
  --accent-contrast: #fff;
  --hero-glow: rgba(241, 40, 63, 0.28);
  --success: #39d98a;
  --warning: #ffbd4a;
  --radius-xs: 5px;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --display: "Barlow Condensed", sans-serif;
  --body: "Inter", sans-serif;
}

html[data-theme="aegean"] {
  --accent: #0ba7ea;
  --accent-bright: #31c0ff;
  --accent-deep: #005f96;
  --accent-rgb: 11, 167, 234;
  --accent-contrast: #fff;
  --hero-glow: rgba(11, 167, 234, 0.26);
}

html[data-theme="volt"] {
  --accent: #d6ff2e;
  --accent-bright: #e5ff70;
  --accent-deep: #748f00;
  --accent-rgb: 214, 255, 46;
  --accent-contrast: #10130a;
  --hero-glow: rgba(214, 255, 46, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 2%, var(--hero-glow), transparent 24rem),
    linear-gradient(180deg, #080a0f 0%, var(--bg) 32%, #090b10 100%);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .45);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .09;
  pointer-events: none;
}

.ambient-one { background: var(--accent); top: 6rem; right: -20rem; }
.ambient-two { background: #255bff; top: 55rem; left: -30rem; opacity: .045; }

.mobile-only { display: none !important; }
.page-shell, .header-shell, .broadcast-strip-inner, .footer-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, .86);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-shell { height: 100%; display: flex; align-items: center; gap: 42px; }

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 76px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.25)); }

.desktop-nav { align-self: stretch; display: flex; align-items: stretch; gap: 31px; }
.desktop-nav a { position: relative; display: flex; align-items: center; color: #aeb4bf; font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; transition: .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a::after { content: ""; position: absolute; right: 50%; bottom: -1px; left: 50%; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transition: .22s ease; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; left: 0; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s ease; }
.icon-button svg { width: 19px; height: 19px; stroke-width: 1.8; }
.icon-button:hover { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); transform: translateY(-1px); }

.live-radio-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; margin-right: 8px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 30px; background: rgba(var(--accent-rgb), .075); cursor: pointer; }
.live-radio-pill > span:last-child { display: grid; text-align: left; }
.live-radio-pill small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.live-radio-pill b { margin-top: 2px; font: 700 11px/1 var(--body); letter-spacing: .04em; }
.sound-bars { height: 17px; display: flex; align-items: center; gap: 2px; }
.sound-bars i { width: 3px; height: 7px; border-radius: 3px; background: var(--accent); }
.sound-bars i:nth-child(2) { height: 15px; }
.sound-bars i:nth-child(3) { height: 10px; }
.live-radio-pill.playing .sound-bars i { animation: sound 600ms ease-in-out infinite alternate; }
.live-radio-pill.playing .sound-bars i:nth-child(2) { animation-delay: 200ms; }
.live-radio-pill.playing .sound-bars i:nth-child(3) { animation-delay: 350ms; }
@keyframes sound { to { height: 3px; } }

.avatar-button { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(145deg, var(--accent-bright), var(--accent-deep)); color: var(--accent-contrast); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.online-dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--success); }

.popover {
  position: fixed;
  z-index: 80;
  top: 68px;
  right: max(32px, calc((100vw - 1440px) / 2));
  width: 290px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(16, 19, 27, .98);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: .18s ease;
}
.popover.open { opacity: 1; visibility: visible; transform: none; }
.popover > p { margin: 8px 10px 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.theme-popover { right: max(134px, calc((100vw - 1236px) / 2)); }
.theme-option { width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.theme-option:hover { background: rgba(255,255,255,.055); }
.theme-option > svg { width: 17px; opacity: 0; color: var(--accent); }
.theme-option.active > svg { opacity: 1; }
.theme-option > span:nth-child(2) { display: grid; gap: 3px; }
.theme-option b { font-size: 12px; }
.theme-option small { color: var(--muted); font-size: 10px; }
.theme-preview { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.1); border-radius: 50%; }
.redline-preview { background: linear-gradient(135deg, #f1283f 50%, #161a22 50%); }
.aegean-preview { background: linear-gradient(135deg, #0ba7ea 50%, #0c1520 50%); }
.volt-preview { background: linear-gradient(135deg, #d6ff2e 50%, #12160d 50%); }

.account-popover { right: max(32px, calc((100vw - 1440px) / 2)); }
.account-summary { display: flex; gap: 11px; align-items: center; padding: 7px 8px 14px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.account-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-size: 12px; font-weight: 800; }
.account-summary > span:last-child { display: grid; gap: 3px; }
.account-summary b { font-size: 12px; }
.account-summary small { color: var(--muted); font-size: 10px; }
.account-popover > button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 10px; border: 0; border-radius: 9px; background: transparent; color: #d4d7dd; font-size: 12px; cursor: pointer; }
.account-popover > button:hover { background: rgba(255,255,255,.055); color: #fff; }
.account-popover svg { width: 17px; }

.mobile-drawer { display: none; }

.broadcast-strip { border-bottom: 1px solid var(--line); background: #0b0e14; }
.broadcast-strip-inner { height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.broadcast-label { display: flex; align-items: center; gap: 8px; color: #fff; font: 800 10px/1 var(--body); letter-spacing: .08em; }
.broadcast-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .12); animation: pulse 1.5s infinite; }
.ticker-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 46px; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span { position: relative; color: #b3b9c4; font-size: 10px; white-space: nowrap; }
.ticker-track span::after { content: ""; position: absolute; top: 50%; right: -25px; width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.ticker-track b { margin-right: 7px; color: var(--accent-bright); font-size: 9px; }
.ticker-track strong { padding: 0 5px; color: #fff; }
.broadcast-strip time { color: var(--muted); font: 700 10px/1 var(--body); font-variant-numeric: tabular-nums; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }

.hero-section { padding-top: 28px; }
.hero-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 520px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-tabs button { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px 12px 13px; border: 0; border-radius: 0; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: .2s ease; }
.hero-tabs button:hover, .hero-tabs button.active { background: transparent; color: #fff; }
.hero-tabs button::after { content: ""; position: absolute; right: 50%; bottom: -1px; left: 50%; height: 2px; background: var(--accent); transition: .2s ease; }
.hero-tabs button:hover::after, .hero-tabs button.active::after { right: 0; left: 0; }
.hero-tabs button > span:last-child { display: grid; gap: 2px; font: 700 12px/1 var(--body); }
.hero-tabs small { color: var(--subtle); font-size: 8px; letter-spacing: .08em; }
.hero-tabs button.active small { color: var(--accent-bright); }
.tab-state { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--subtle); }
.tab-state.pulsing { background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .13); }
.tab-state.upcoming { background: var(--warning); }

.hero-stage {
  position: relative;
  min-height: 575px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: #0e1016;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.018);
  isolation: isolate;
}
.hero-stage::before { content: ""; position: absolute; z-index: 2; top: -1px; left: 44px; width: 120px; height: 3px; background: var(--accent); box-shadow: 0 0 35px var(--accent); }
.hero-backdrop { position: absolute; z-index: -3; inset: 0 0 0 auto; width: 70%; height: 100%; object-fit: cover; transition: opacity .22s ease, transform .65s ease; }
.hero-stage:hover .hero-backdrop { transform: scale(1.018); }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #080a0f 2%, rgba(8,10,15,.97) 33%, rgba(8,10,15,.65) 59%, rgba(8,10,15,.12) 100%), linear-gradient(0deg, rgba(8,10,15,.84), transparent 45%); }
.hero-grid-pattern { position: absolute; z-index: -1; inset: 0 52% 0 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000, transparent); }
.hero-content { width: 58%; padding: 74px 0 70px 58px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: #c4c8d0; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 6px; background: rgba(var(--accent-rgb), .18); color: var(--accent-bright); font: 800 9px/1 var(--body); letter-spacing: .07em; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.live i { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); animation: pulse 1.2s infinite; }
.hero-kicker { margin: 23px 0 8px; color: #a2a9b4; font-size: 12px; }
.hero-content h1 { max-width: 720px; margin: 0; font: 800 clamp(42px, 5vw, 74px)/.91 var(--display); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.hero-content h1 em { display: inline-block; margin: 0 7px; color: var(--accent); font-size: .44em; font-style: normal; letter-spacing: .05em; vertical-align: middle; }

.hero-matchup { display: flex; align-items: center; gap: 21px; margin-top: 33px; }
.hero-team { width: 92px; display: grid; justify-items: center; gap: 9px; text-align: center; }
.hero-team img { width: 72px; height: 72px; padding: 2px; object-fit: contain; object-position: center; border-radius: 7px; box-shadow: 0 9px 25px rgba(0,0,0,.35); }
.hero-team span { max-width: 110px; font: 700 11px/1.1 var(--display); letter-spacing: .035em; }
.hero-score { min-width: 128px; display: grid; justify-items: center; gap: 5px; }
.hero-score strong { font: 800 46px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.hero-score strong i { color: var(--accent); font-style: normal; }
.hero-score span { color: var(--accent-bright); font-size: 9px; font-weight: 800; letter-spacing: .07em; }

.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 35px; }
.primary-button, .secondary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.primary-button { border: 0; background: var(--accent); color: var(--accent-contrast); box-shadow: 0 14px 35px rgba(var(--accent-rgb), .27); }
.primary-button:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(var(--accent-rgb), .34); }
.primary-button svg, .secondary-button svg { width: 18px; height: 18px; }
.button-play { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); }
.button-play svg { width: 13px; }
.secondary-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.055); }
.secondary-button:hover { border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); }
.secondary-button.active { border-color: rgba(var(--accent-rgb), .45); color: var(--accent-bright); }

.hero-meta { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 9px; }
.hero-meta > div { height: 43px; display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,9,13,.75); backdrop-filter: blur(12px); }
.hero-meta > div > svg, .viewer-dots { grid-row: 1 / 3; width: 18px; color: var(--accent); }
.hero-meta b { font-size: 10px; }
.hero-meta small { color: var(--muted); font-size: 8px; }
.viewer-dots { display: flex; align-items: center; }
.viewer-dots i { width: 9px; height: 9px; margin-left: -3px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: #717987; }
.viewer-dots i:first-child { margin-left: 0; background: var(--accent); }

.content-section { padding-top: 78px; scroll-margin-top: 86px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading > div:first-child { display: grid; gap: 7px; }
.section-heading h2 { margin: 0; font: 800 clamp(29px, 3vw, 42px)/.95 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.overline { color: var(--accent-bright); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; background: transparent; color: #b8bec8; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.text-button svg { width: 15px; transition: transform .2s ease; }
.text-button:hover { color: #fff; }
.text-button:hover svg { transform: translate(2px,-2px); }

.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.live-card { --card-accent: var(--accent); position: relative; min-height: 255px; overflow: hidden; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent) 23%, transparent), transparent 51%), linear-gradient(145deg, #171a22, #10131a); cursor: pointer; transition: transform .22s ease, border-color .22s ease; }
.live-card::after { content: ""; position: absolute; right: -45px; bottom: -72px; width: 170px; height: 170px; border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent); border-radius: 50%; }
.live-card:hover { z-index: 2; transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-accent) 58%, transparent); }
.live-card.violet { --card-accent: #7959ff; }
.live-card.amber { --card-accent: #f6aa27; }
.live-card.blue { --card-accent: #1aa8ff; }
.live-card-top { display: flex; align-items: center; justify-content: space-between; }
.live-card-top > span:last-child { display: flex; align-items: center; gap: 5px; color: #b9bec8; font-size: 9px; font-weight: 700; }
.live-card-top svg { width: 13px; }
.competition { margin-top: 21px; color: color-mix(in srgb, var(--card-accent) 85%, #fff); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.crest-matchup { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.crest-matchup img, .country-disc { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.crest-matchup.flags img { width: 51px; height: 34px; border-radius: 5px; object-fit: cover; }
.crest-matchup > span { color: var(--muted); font: 700 9px/1 var(--body); }
.crest-matchup .country-disc { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #d31f39; color: #fff; font: 800 13px/1 var(--body); }
.live-card h3 { margin: 16px 0 0; font: 700 19px/1.02 var(--display); letter-spacing: -.015em; }
.live-card p { display: flex; align-items: center; justify-content: space-between; margin: auto 0 0; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.live-card p span { color: #fff; font: 800 19px/1 var(--display); }

.categories-section { padding-top: 68px; }
.section-heading.compact { margin-bottom: 20px; }
.category-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.category-chip { min-width: 0; display: grid; justify-items: center; gap: 8px; padding: 19px 8px 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.028); cursor: pointer; transition: .2s ease; }
.category-chip > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.045); color: #b8bec8; }
.category-chip svg { width: 21px; }
.category-chip b { font: 700 14px/1 var(--display); }
.category-chip small { color: var(--muted); font-size: 8px; }
.category-chip:hover, .category-chip.active { border-color: rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .07); transform: translateY(-2px); }
.category-chip.active > span { border-color: rgba(var(--accent-rgb), .4); background: var(--accent); color: var(--accent-contrast); box-shadow: 0 9px 25px rgba(var(--accent-rgb), .23); }

.schedule-section { padding-top: 86px; }
.schedule-actions { display: flex; align-items: center; gap: 8px; }
.schedule-actions > span { margin-right: 8px; color: var(--muted); font-size: 10px; }
.round-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); cursor: pointer; }
.round-arrow:hover { border-color: rgba(var(--accent-rgb), .42); color: var(--accent-bright); }
.round-arrow svg { width: 16px; }
.round-selector { display: flex; gap: 6px; overflow-x: auto; padding: 3px 1px 14px; scrollbar-width: none; }
.round-selector::-webkit-scrollbar { display: none; }
.round-selector button { min-width: 44px; height: 35px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.round-selector button:hover, .round-selector button.active { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.fixture-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #11151d, #0b0e14); }
.fixture-panel-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.fixture-panel-head > div:first-child { display: grid; gap: 4px; }
.fixture-panel-head > div:first-child span { font: 800 21px/1 var(--display); }
.fixture-panel-head small { color: var(--muted); font-size: 9px; }
.official-note { display: flex; align-items: center; gap: 9px; color: var(--success); }
.official-note svg { width: 18px; }
.official-note > span { display: grid; gap: 2px; font-size: 9px; font-weight: 700; }
.official-note small { font-weight: 400; }
.fixture-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fixture-card { min-width: 0; min-height: 178px; display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .18s ease; }
.fixture-card:nth-child(4n) { border-right: 0; }
.fixture-card:nth-last-child(-n + 3) { border-bottom: 0; }
.fixture-card:hover { background: rgba(var(--accent-rgb), .045); }
.fixture-time { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.fixture-time span { display: inline-flex; align-items: center; gap: 4px; }
.fixture-time svg { width: 12px; }
.fixture-teams { display: grid; gap: 9px; margin-top: 18px; }
.fixture-team { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; }
.fixture-team img { width: 33px; height: 33px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0,0,0,.25)); }
.fixture-team b { overflow: hidden; font: 700 14px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.fixture-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 13px; color: var(--subtle); font-size: 8px; }
.fixture-footer button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.fixture-footer button.active { color: var(--accent-bright); }
.fixture-footer svg { width: 15px; }

.news-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.feature-story { position: relative; min-height: 550px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; }
.feature-story > img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.feature-story:hover > img { transform: scale(1.035); }
.story-gradient { position: absolute; inset: 0; background: linear-gradient(0deg, #080a0f 1%, rgba(8,10,15,.84) 28%, transparent 72%); }
.story-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 36px; }
.story-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 5px; background: var(--accent); color: var(--accent-contrast); font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.story-copy h3 { max-width: 720px; margin: 13px 0 10px; font: 800 clamp(30px, 3.2vw, 47px)/.95 var(--display); letter-spacing: -.025em; }
.story-copy p { max-width: 570px; margin: 0; color: #b4bac4; font-size: 11px; line-height: 1.5; }
.story-meta { display: flex; align-items: center; gap: 6px; margin-top: 17px; color: #858d99; font-size: 8px; }
.story-meta svg { width: 13px; }
.story-meta svg:not(:first-child) { margin-left: 7px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-card { min-width: 0; }
.story-image { position: relative; height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.story-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,10,.42), transparent 55%); }
.story-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-image > img { transform: scale(1.035); }
.story-image .story-tag { position: absolute; z-index: 2; top: 11px; left: 11px; }
.mini-play { position: absolute; z-index: 3; right: 11px; bottom: 11px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.44); backdrop-filter: blur(8px); cursor: pointer; }
.mini-play svg { width: 14px; }
.story-card h3 { margin: 12px 0 6px; font: 700 19px/1.03 var(--display); letter-spacing: -.01em; }
.story-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.story-card > .story-meta { margin-top: 9px; }

.highlights-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.highlight-card { position: relative; min-height: 315px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.highlight-card > img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.highlight-card:hover > img { transform: scale(1.035); }
.highlight-card::after { content: ""; position: absolute; inset: 0 0 94px; background: linear-gradient(0deg, rgba(4,6,9,.55), transparent 50%); pointer-events: none; }
.duration { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 4px 7px; border-radius: 5px; background: rgba(0,0,0,.75); font-size: 8px; font-weight: 700; }
.large-play { position: absolute; z-index: 2; top: 82px; left: 50%; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: rgba(0,0,0,.38); backdrop-filter: blur(8px); transform: translateX(-50%); transition: .2s ease; }
.highlight-card:hover .large-play { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); transform: translateX(-50%) scale(1.08); }
.large-play svg { width: 18px; }
.highlight-card > div { padding: 14px 16px; }
.highlight-card small { color: var(--accent-bright); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.highlight-card h3 { margin: 5px 0 0; font: 700 18px/1.05 var(--display); }

.shows-section { padding-bottom: 95px; }
.shows-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 54px; border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(circle at 12% 38%, rgba(var(--accent-rgb), .22), transparent 32%), linear-gradient(135deg, #151821, #0d1016 55%, #15131a); }
.shows-banner::before { content: "94.6"; position: absolute; top: -45px; left: 12px; color: rgba(255,255,255,.025); font: 900 220px/1 var(--display); letter-spacing: -.08em; pointer-events: none; }
.shows-copy { position: relative; align-self: center; }
.shows-copy h2 { margin: 12px 0 16px; font: 900 clamp(42px, 5vw, 67px)/.85 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.shows-copy p { max-width: 390px; margin: 0 0 26px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.show-list { position: relative; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.19); }
.show-list article { min-height: 108px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.show-list article:last-child { border-bottom: 0; }
.show-list article > span { color: var(--accent-bright); font: 800 22px/1 var(--display); }
.show-list article > div { min-width: 0; }
.show-list small { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.show-list h3 { margin: 4px 0 2px; font: 800 20px/1 var(--display); }
.show-list p { overflow: hidden; margin: 0; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

footer { border-top: 1px solid var(--line); background: #080a0f; }
.footer-shell { min-height: 210px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 26px; padding: 46px 0 55px; }
.footer-brand { padding-right: 24px; border-right: 1px solid var(--line); }
.footer-shell > p { color: var(--muted); font-size: 10px; }
.footer-links { display: flex; gap: 22px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-social { display: flex; gap: 7px; }
.footer-social button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.footer-social button:hover { border-color: var(--accent); color: var(--accent-bright); }
.footer-social svg { width: 15px; }
.footer-shell > small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 8px; }

.mobile-bottom-nav { display: none; }

.search-overlay { position: fixed; z-index: 100; inset: 0; padding: 95px 24px 24px; background: rgba(4,5,8,.88); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: .2s ease; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel { width: min(850px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #11141c; box-shadow: var(--shadow); transform: translateY(-12px); transition: .22s ease; }
.search-overlay.open .search-panel { transform: none; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.search-head > span { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.search-head svg { width: 22px; color: var(--accent-bright); }
.search-head input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 17px; }
.search-head input::placeholder { color: #6f7784; }
.search-head > button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 8px; cursor: pointer; }
.popular-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.popular-searches small { margin-right: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.popular-searches button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); color: #bec4ce; font-size: 9px; cursor: pointer; }
.popular-searches button:hover { border-color: var(--accent); color: #fff; }
.search-results { max-height: 420px; overflow-y: auto; padding: 10px; }
.search-results > p { margin: 25px; color: var(--muted); font-size: 11px; text-align: center; }
.search-result { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: rgba(255,255,255,.05); }
.search-result img { width: 58px; height: 42px; object-fit: cover; border-radius: 7px; }
.search-result > span { display: grid; gap: 3px; }
.search-result b { font-size: 11px; }
.search-result small { color: var(--muted); font-size: 8px; }
.search-result > svg { width: 16px; color: var(--muted); }

.modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: .2s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.88); backdrop-filter: blur(14px); }
.form-dialog { position: relative; width: min(430px, 100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #0e1118; box-shadow: 0 35px 120px rgba(0,0,0,.72); transform: scale(.98) translateY(8px); transition: .22s ease; }
.modal.open .form-dialog { transform: none; }

.form-dialog { padding: 38px; overflow: visible; }
.close-dialog { position: absolute; top: 13px; right: 13px; }
.dialog-mark { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 14px; background: rgba(var(--accent-rgb), .14); color: var(--accent-bright); }
.dialog-mark svg { width: 22px; }
.form-dialog h2 { margin: 0 0 8px; font: 800 32px/1 var(--display); }
.form-dialog > p { margin: 0 0 24px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.form-dialog label { display: grid; gap: 7px; margin-top: 14px; color: #c8cdd4; font-size: 9px; font-weight: 700; }
.form-dialog input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: rgba(255,255,255,.035); color: #fff; }
.form-dialog input:focus { border-color: var(--accent); }
.full-button { width: 100%; margin-top: 20px; }
.form-dialog > small { display: block; margin-top: 13px; color: var(--subtle); font-size: 8px; text-align: center; }
.settings-dialog { width: min(490px, 100%); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-row > span { display: grid; gap: 4px; }
.setting-row b { font-size: 11px; }
.setting-row small { color: var(--muted); font-size: 8px; }
.toggle { width: 39px; height: 23px; padding: 3px; border: 0; border-radius: 20px; background: #343944; cursor: pointer; }
.toggle i { display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s ease; }
.toggle.active { background: var(--accent); }
.toggle.active i { transform: translateX(16px); }
.setting-row select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #191d25; color: #fff; font-size: 9px; }

.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 11px; background: #171b24; box-shadow: var(--shadow); font-size: 10px; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; visibility: visible; transform: none; }
.toast svg { width: 17px; color: var(--success); }

@media (max-width: 1180px) {
  .page-shell, .header-shell, .broadcast-strip-inner, .footer-shell { width: min(100% - 40px, 1120px); }
  .header-shell { gap: 27px; }
  .desktop-nav { gap: 20px; }
  .live-radio-pill { display: none; }
  .hero-stage { min-height: 535px; }
  .hero-content { width: 64%; padding-left: 43px; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .category-rail { grid-template-columns: repeat(4, 1fr); }
  .fixture-grid { grid-template-columns: repeat(3, 1fr); }
  .fixture-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .fixture-card:nth-child(3n) { border-right: 0; }
  .fixture-card:nth-last-child(-n + 3) { border-bottom: 0; }
  .news-layout { grid-template-columns: 1fr; }
  .feature-story { min-height: 520px; }
  .story-image { height: 220px; }
}

@media (max-width: 860px) {
  body { padding-bottom: 70px; }
  .page-shell, .header-shell, .broadcast-strip-inner, .footer-shell { width: calc(100% - 28px); }
  .site-header { height: 66px; }
  .header-shell { justify-content: space-between; gap: 10px; }
  .mobile-only { display: inline-grid !important; }
  .desktop-nav, .header-actions .icon-button:first-of-type { display: none; }
  .header-actions { margin-left: 0; }
  .header-actions #searchButton { display: inline-grid; }
  .brand img { width: 61px; height: 46px; }
  .header-shell > .icon-button { border: 0; background: transparent; }
  .mobile-drawer { position: fixed; z-index: 75; top: 66px; right: 0; left: 0; display: grid; padding: 14px 21px 24px; border-bottom: 1px solid var(--line); background: rgba(10,12,17,.98); box-shadow: 0 25px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .mobile-drawer.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-drawer a { padding: 14px 3px; border-bottom: 1px solid var(--line); font: 700 18px/1 var(--display); }
  .mobile-drawer a:last-child { border-bottom: 0; }
  .theme-popover { top: 60px; right: 63px; }
  .account-popover { top: 60px; right: 12px; }
  .broadcast-strip-inner { grid-template-columns: auto 1fr; }
  .broadcast-strip time { display: none; }
  .ticker-track { gap: 38px; }
  .hero-section { padding-top: 18px; }
  .hero-tabs { max-width: none; }
  .hero-tabs button { justify-content: center; padding: 9px 4px; }
  .hero-tabs button > span:last-child { font-size: 10px; }
  .hero-stage { min-height: 600px; border-radius: 14px; }
  .hero-backdrop { inset: 0; width: 100%; height: 52%; }
  .hero-shade { background: linear-gradient(0deg, #080a0f 0%, #080a0f 40%, rgba(8,10,15,.78) 62%, rgba(8,10,15,.08) 100%); }
  .hero-grid-pattern { display: none; }
  .hero-content { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; padding: 28px 25px 31px; }
  .hero-eyebrow { gap: 9px; }
  .hero-kicker { margin-top: 14px; }
  .hero-content h1 { font-size: clamp(40px, 10vw, 58px); }
  .hero-matchup { margin-top: 22px; }
  .hero-actions { margin-top: 25px; }
  .hero-meta { top: 14px; right: 14px; bottom: auto; }
  .hero-meta > div:nth-child(2), .hero-meta > .icon-button { display: none; }
  .content-section { padding-top: 61px; }
  .section-heading { align-items: center; }
  .category-rail { display: flex; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .category-chip { min-width: 122px; }
  .fixture-grid { grid-template-columns: 1fr 1fr; }
  .fixture-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .fixture-card:nth-child(2n) { border-right: 0; }
  .fixture-card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .fixture-card:last-child { border-bottom: 0; }
  .highlights-rail { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .highlight-card { min-width: 72vw; scroll-snap-align: start; }
  .shows-banner { grid-template-columns: 1fr; gap: 35px; padding: 36px; }
  .footer-shell { grid-template-columns: 1fr auto; padding-bottom: 38px; }
  .footer-brand { border: 0; }
  .footer-shell > p { display: none; }
  .footer-links { grid-column: 1 / -1; }
  .mobile-bottom-nav { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(7px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(9,11,16,.96); backdrop-filter: blur(20px); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 7px; cursor: pointer; }
  .mobile-bottom-nav a.active { color: var(--accent-bright); }
  .mobile-bottom-nav svg { width: 20px; height: 20px; }
  .nav-live-dot { position: absolute; top: 0; left: calc(50% + 8px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
  .toast { right: 14px; bottom: 82px; left: 14px; justify-content: center; }
}

@media (max-width: 590px) {
  .header-shell { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .header-shell > .brand { justify-self: center; }
  .header-actions { width: 42px; justify-self: end; }
  .header-actions #themeButton { display: none !important; }
  .avatar-button { display: grid !important; }
  .header-actions #searchButton { display: none; }
  .broadcast-label { font-size: 8px; }
  .broadcast-strip-inner { gap: 12px; }
  .hero-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .hero-tabs button { min-width: 0; gap: 5px; overflow: hidden; }
  .hero-tabs button > span:last-child { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .hero-tabs small { display: none; }
  .hero-stage { min-height: 610px; }
  .hero-backdrop { height: 45%; }
  .hero-content { padding: 24px 20px 27px; }
  .hero-content h1 { font-size: clamp(36px, 10vw, 42px); }
  .hero-content h1 em { margin: 0 3px; }
  .hero-kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-matchup { justify-content: flex-start; gap: 10px; }
  .hero-team { width: 72px; }
  .hero-team img { width: 58px; height: 58px; padding: 1px; object-fit: contain; }
  .hero-score { min-width: 108px; }
  .hero-score strong { font-size: 38px; }
  .hero-actions { align-items: stretch; }
  .primary-button { flex: 1; padding: 0 13px; }
  .hero-actions .secondary-button { display: none; }
  .live-grid { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .live-card { min-width: 78vw; min-height: 245px; scroll-snap-align: start; }
  .section-heading h2 { font-size: 30px; }
  .text-button { font-size: 8px; }
  .schedule-actions > span { display: none; }
  .fixture-panel-head { align-items: flex-start; padding: 15px; }
  .official-note { max-width: 145px; align-items: flex-start; }
  .official-note small { display: none; }
  .fixture-grid { grid-template-columns: 1fr; }
  .fixture-card { min-height: 148px; border-right: 0 !important; }
  .fixture-card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .fixture-card:last-child { border-bottom: 0; }
  .fixture-teams { grid-template-columns: 1fr 1fr; gap: 15px; }
  .fixture-team:last-child { direction: rtl; text-align: right; }
  .fixture-team:last-child b { direction: ltr; }
  .story-grid { display: flex; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .story-card { min-width: 79vw; scroll-snap-align: start; }
  .feature-story { min-height: 485px; }
  .story-copy { padding: 24px; }
  .story-copy h3 { font-size: 34px; }
  .story-copy p { display: none; }
  .story-image { height: 205px; }
  .highlight-card { min-width: 84vw; }
  .shows-banner { padding: 27px 20px; }
  .shows-copy h2 { font-size: 45px; }
  .show-list article { grid-template-columns: 45px 1fr auto; gap: 10px; padding: 14px 12px; }
  .show-list article > span { font-size: 18px; }
  .footer-shell { gap: 18px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .footer-shell > small { line-height: 1.5; }
  .search-overlay { padding: 70px 10px 80px; }
  .popular-searches { overflow-x: auto; flex-wrap: nowrap; }
  .popular-searches button { white-space: nowrap; }
  .modal { padding: 10px; }
  .form-dialog { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
