:root {
  color-scheme: dark;
  --polar-void: #081018;
  --polar-ground: #0d1722;
  --polar-surface: #111e2a;
  --polar-surface-strong: #172737;
  --polar-line: rgba(207, 227, 236, .12);
  --polar-ink: #f7f8fc;
  --polar-muted: #93a8b9;
  --polar-signal: #76e6c3;
  --polar-signal-deep: #2eaa91;
  --polar-focus: #ffd078;
  --polar-danger: #f57d83;
  font: 15px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--polar-void);
  color: var(--polar-ink);
}

* { box-sizing: border-box; }
html, body, #app { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: radial-gradient(90rem 42rem at 80% -15%, rgba(50, 129, 127, .22), transparent 59%), var(--polar-void); }
button, input, select { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--polar-focus); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.global-header {
  display: flex; align-items: center; gap: 2rem; min-height: 74px; padding: 0 clamp(1rem, 3vw, 3.3rem);
  border-bottom: 1px solid var(--polar-line); background: rgba(8, 16, 24, .86); backdrop-filter: blur(16px);
}
.wordmark { display: block; width: 142px; height: auto; flex: 0 0 auto; }
.global-nav { display: flex; align-items: stretch; gap: .25rem; height: 74px; }
.top-nav, .header-icon, .back-action, .text-action { background: transparent; color: var(--polar-muted); }
.top-nav { position: relative; min-width: 5.7rem; padding: 0 .75rem; font-size: .88rem; font-weight: 700; }
.top-nav:hover, .top-nav.is-active { color: var(--polar-ink); }
.top-nav.is-active::after { content: ""; position: absolute; right: .75rem; bottom: 0; left: .75rem; height: 3px; border-radius: 3px 3px 0 0; background: var(--polar-signal); }
.header-icon { display: grid; width: 2.4rem; height: 2.4rem; margin-left: auto; place-items: center; border-radius: 50%; font-size: 1.75rem; line-height: 1; }
.header-icon:hover, .back-action:hover, .text-action:hover { color: var(--polar-signal); background: rgba(118,230,195,.08); }
.header-clock { min-width: 3.35rem; text-align: right; color: var(--polar-ink); font-variant-numeric: tabular-nums; font-size: .88rem; }

.live-page { width: min(100% - 2rem, 1480px); margin: 0 auto; padding: 1.25rem 0 2rem; }
.live-navigator { display: grid; grid-template-columns: minmax(150px, .72fr) minmax(250px, 1.22fr) minmax(400px, 2.1fr); height: calc(100dvh - 116px); min-height: 0; overflow: hidden; border: 1px solid var(--polar-line); border-radius: 18px; background: rgba(13, 23, 34, .84); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.categories-panel, .channels-panel, .detail-panel { min-width: 0; }
.categories-panel, .channels-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; padding: 1.2rem .8rem; border-right: 1px solid var(--polar-line); }
.channels-panel { grid-template-rows: auto auto minmax(0, 1fr); }
.categories-panel h2, .channels-panel h2, .schedule-panel h3 { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--polar-muted); }
.category-list, .channel-list { display: grid; min-height: 0; gap: .35rem; margin-top: .85rem; overflow: auto; }
.channel-list { align-content: start; grid-auto-rows: max-content; }
.category-row { min-height: 2.65rem; padding: .45rem .7rem; border-radius: 8px; text-align: left; background: transparent; color: var(--polar-muted); font-size: .88rem; font-weight: 650; }
.category-row:hover, .category-row.is-selected { background: rgba(118,230,195,.10); color: var(--polar-ink); }
.category-row.is-selected { box-shadow: inset 3px 0 0 var(--polar-signal); }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 0 .25rem; }
.panel-heading span { color: var(--polar-muted); font-size: .77rem; white-space: nowrap; }
.channel-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .38rem; margin-top: .75rem; }
.channel-search-input { min-height: 2.55rem; padding-right: .6rem; font-size: .78rem; }
.channel-search-clear { width: 2.55rem; min-height: 2.55rem; border: 1px solid rgba(207,227,236,.18); border-radius: 8px; background: rgba(3,7,11,.53); color: var(--polar-muted); font-size: 1.25rem; }
.channel-search-clear:hover { border-color: rgba(118,230,195,.5); color: var(--polar-signal); }
.channel-search-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .5rem; min-height: 1rem; color: var(--polar-muted); font-size: .67rem; }
.channel-search-meta span:first-child { color: var(--polar-signal); }
.channel-row { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); align-items: center; gap: .7rem; width: 100%; min-height: 3.65rem; padding: .45rem .5rem; border-radius: 9px; background: transparent; color: var(--polar-ink); text-align: left; }
.channel-row:hover, .channel-row.is-selected { background: rgba(118,230,195,.09); }
.channel-row.is-selected { box-shadow: inset 3px 0 0 var(--polar-signal); }
.channel-logo { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid rgba(118,230,195,.34); border-radius: 6px; background: linear-gradient(135deg, #203846, #172630); color: var(--polar-signal); font-size: .63rem; font-weight: 850; letter-spacing: .04em; }
.channel-logo-image { object-fit: contain; background: #fff; }
.channel-copy { min-width: 0; display: grid; gap: .08rem; }
.channel-copy strong, .channel-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-copy strong { font-size: .84rem; }
.channel-copy span { color: var(--polar-muted); font-size: .73rem; }
.channel-copy .channel-category { overflow: hidden; color: var(--polar-signal); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.panel-empty, .schedule-empty, .search-empty { color: var(--polar-muted); font-size: .86rem; }

.detail-panel { align-self: start; display: grid; grid-template-rows: minmax(300px, 52%) minmax(260px, 48%); height: 100%; min-height: 0; background: rgba(5, 11, 17, .47); }
.preview-frame { position: relative; min-height: 0; overflow: hidden; background: #03070b; cursor: pointer; }
.video-host, .fullscreen-video-host { width: 100%; height: 100%; }
.channel-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #03070b; }
.video-placeholder { display: grid; width: 100%; height: 100%; min-height: 210px; place-items: center; color: var(--polar-muted); background: linear-gradient(135deg, #0f1d29, #060a0e); font-size: .88rem; }
.video-loading { background: linear-gradient(135deg, #0b1721, #05080c); }
.loading-spinner { width: 2.4rem; height: 2.4rem; border: 3px solid rgba(118, 230, 195, .24); border-top-color: var(--polar-signal); border-radius: 50%; animation: channel-spinner .8s linear infinite; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes channel-spinner { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 1.6s; } }
.preview-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 2.5rem 1.1rem 1rem; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.preview-copy h2 { margin: 0; font-size: 1.1rem; }
.preview-copy p { margin: .18rem 0 0; color: #d5e0e4; font-size: .82rem; }
.schedule-panel { min-height: 0; padding: 1.2rem 1.25rem; overflow: auto; border-top: 1px solid var(--polar-line); background: rgba(17,30,42,.68); }
.schedule-day-navigation { display: flex; align-items: stretch; gap: .42rem; margin-top: .65rem; padding: .08rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: rgba(118,230,195,.5) transparent; scroll-snap-type: x proximity; }
.schedule-day-control { flex: 0 0 auto; min-width: 5.9rem; min-height: 2.25rem; padding: .38rem .62rem; border: 1px solid rgba(207,227,236,.18); border-radius: 7px; background: rgba(3,7,11,.24); color: var(--polar-ink); font-size: .73rem; font-weight: 750; scroll-snap-align: start; }
.schedule-day-control:hover:not(:disabled) { border-color: rgba(118,230,195,.56); background: rgba(118,230,195,.1); }
.schedule-day-control.is-selected { border-color: rgba(118,230,195,.72); background: rgba(118,230,195,.16); color: var(--polar-signal); }
.schedule-date { align-self: center; min-width: 0; overflow: hidden; color: var(--polar-ink); font-size: .75rem; font-weight: 750; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.schedule-empty, .schedule-notice, .schedule-freshness { margin: .72rem 0 0; color: var(--polar-muted); font-size: .82rem; }
.schedule-notice { padding: .52rem .62rem; border-left: 3px solid var(--polar-signal); border-radius: 0 6px 6px 0; background: rgba(118,230,195,.08); color: #d0eee5; }
.schedule-notice-warning { border-left-color: var(--polar-focus); background: rgba(255,208,120,.08); color: #ffe3a9; }
.schedule-freshness { font-size: .73rem; }
.programme-list { display: grid; gap: .1rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.programme-row { display: grid; grid-template-columns: 5.15rem minmax(0,1fr); gap: .55rem; padding: .66rem 0; border-bottom: 1px solid rgba(207,227,236,.07); color: var(--polar-muted); }
.programme-row time { font-size: .75rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
.programme-detail { min-width: 0; display: grid; gap: .22rem; }
.programme-detail strong { color: var(--polar-ink); font-size: .84rem; }
.programme-subtitle { color: var(--polar-muted); font-size: .76rem; }
.programme-current-label { justify-self: start; padding: .08rem .35rem; border-radius: 99px; background: rgba(118,230,195,.16); color: var(--polar-signal); font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.programme-row.is-current { box-shadow: inset 2px 0 0 var(--polar-signal); }
.programme-row[data-current-programme="true"] { scroll-margin-block: 0; }
.programme-metadata { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: .05rem 0 0; list-style: none; }
.programme-metadata li { padding: .11rem .34rem; border: 1px solid rgba(207,227,236,.15); border-radius: 99px; color: var(--polar-muted); font-size: .67rem; }
.programme-more { color: var(--polar-muted); font-size: .75rem; }
.programme-more summary { width: fit-content; color: var(--polar-signal); cursor: pointer; }
.programme-more p { margin: .38rem 0 0; }
.programme-progress { display: block; width: 100%; height: 3px; margin-top: .22rem; overflow: hidden; border-radius: 3px; background: rgba(118,230,195,.18); }
.programme-progress::after { content: ""; display: block; width: var(--programme-progress); height: 100%; background: var(--polar-signal); }
.programme-list-skeleton { gap: .5rem; }
.programme-skeleton { height: 3.7rem; border-radius: 7px; background: linear-gradient(90deg, rgba(207,227,236,.05), rgba(207,227,236,.13), rgba(207,227,236,.05)); background-size: 220% 100%; animation: schedule-skeleton 1.35s ease-in-out infinite; }
.partner-schedule-panel .programme-row { grid-template-columns: 3.6rem minmax(0,1fr); padding: .62rem 0; }
.partner-schedule-panel .programme-detail > span:not(.programme-progress) { color: var(--polar-muted); font-size: .75rem; }
.partner-schedule-panel .programme-row.is-current { box-shadow: none; color: var(--polar-signal); }
@keyframes schedule-skeleton { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .programme-skeleton { animation-duration: 2.7s; } }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 1.25rem; background: radial-gradient(40rem 32rem at 50% 20%, rgba(53, 128, 121, .24), transparent 66%), var(--polar-void); }
.login-card, .settings-card { width: min(100%, 460px); padding: clamp(1.5rem, 4vw, 2.8rem); border: 1px solid var(--polar-line); border-radius: 18px; background: rgba(17,30,42,.88); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.login-wordmark { width: 160px; }
.login-card h1, .settings-page h1 { margin: 1.55rem 0 1.1rem; font-size: 1.42rem; letter-spacing: -.025em; }
.login-form, .settings-panel { display: grid; gap: 1rem; }
.field-label { display: grid; gap: .4rem; color: var(--polar-muted); font-size: .78rem; font-weight: 700; }
input, select { width: 100%; min-height: 2.85rem; padding: .58rem .72rem; border: 1px solid rgba(207,227,236,.18); border-radius: 8px; background: rgba(3,7,11,.53); color: var(--polar-ink); }
.primary-action, .secondary-action, .danger-action { min-height: 2.75rem; padding: .55rem 1rem; border-radius: 8px; font-size: .84rem; font-weight: 800; }
.primary-action { background: var(--polar-signal); color: #082019; }
.primary-action:hover { background: #95efcf; }
.secondary-action { border: 1px solid rgba(207,227,236,.21); background: transparent; color: var(--polar-ink); }
.danger-action { background: rgba(245,125,131,.12); color: #ffc6ca; }
.text-action { justify-self: start; padding: .2rem; font-size: .82rem; }
.form-feedback { min-height: 1.2em; margin: 0; color: #ffc6ca; font-size: .81rem; }
.field-help, .login-intro { margin: -.45rem 0 .1rem; color: var(--polar-muted); font-size: .78rem; }
.login-intro { margin: 0 0 1.1rem; }
.activation-page { display: grid; min-height: 100vh; place-items: center; padding: 1.25rem; }
.activation-card { display: grid; justify-items: start; width: min(100%, 520px); gap: 1rem; padding: clamp(1.5rem, 4vw, 2.8rem); border: 1px solid var(--polar-line); border-radius: 18px; background: rgba(17,30,42,.9); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.activation-card h1 { margin: .5rem 0 0; font-size: 1.45rem; }
.activation-copy, .activation-feedback { margin: 0; color: var(--polar-muted); }
.support-label { color: var(--polar-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.support-code { display: block; padding: .65rem .9rem; border: 1px solid rgba(118,230,195,.35); border-radius: 10px; color: var(--polar-signal); font-size: clamp(1.7rem, 7vw, 2.5rem); letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.activation-feedback { min-height: 1.4em; font-size: .82rem; }


.status-surface, .search-page, .settings-page { width: min(100% - 2rem, 1180px); margin: 0 auto; padding: 2rem 0; }
.status-surface { display: grid; gap: 1rem; max-width: 680px; }
.search-page { max-width: 920px; }
.back-action { padding: .35rem 0; font-size: .84rem; font-weight: 700; }
.search-page h1 { margin: 1.2rem 0 .75rem; font-size: 1.35rem; }
.global-search { min-height: 3.3rem; font-size: 1rem; }
.search-results { display: grid; gap: .25rem; margin-top: 1rem; }
.search-result { min-height: 4.1rem; border: 1px solid transparent; background: rgba(17,30,42,.63); }
.search-result:hover { border-color: rgba(118,230,195,.3); }
.result-count { margin: 0 0 .35rem; color: var(--polar-muted); font-size: .8rem; }

.settings-page { max-width: 1000px; }
.sports-page { width: min(100% - 2rem, 1480px); margin: 1.4rem auto 0; display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr); height: calc(100dvh - 112px); overflow: hidden; border: 1px solid var(--polar-line); border-radius: 18px; background: linear-gradient(145deg, rgba(13, 23, 34, .96), rgba(8, 18, 28, .93)); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.sports-list { min-width: 0; overflow: auto; border-right: 1px solid var(--polar-line); padding: 1rem .8rem 1.4rem; background: rgba(7, 17, 26, .38); }
.sports-list-heading { position: sticky; z-index: 2; top: -1rem; display: flex; align-items: center; justify-content: space-between; margin: -1rem -.8rem .65rem; padding: 1.35rem 1.25rem 1rem; background: rgba(9, 20, 30, .96); backdrop-filter: blur(14px); }
.sports-list-heading h1, .sports-timeline-heading h2 { margin: .18rem 0 0; font-size: 1.12rem; letter-spacing: -.015em; }
.sports-eyebrow { color: #76e6c3; font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sports-match-count, .sports-event-count { display: grid; min-width: 2rem; height: 2rem; place-items: center; padding: 0 .55rem; border: 1px solid rgba(118,230,195,.22); border-radius: 999px; color: var(--polar-muted); background: rgba(118,230,195,.06); font-size: .73rem; font-weight: 800; }
.sports-data-status { margin: 0 0 .75rem; padding: .7rem .8rem; border: 1px solid rgba(244, 194, 72, .28); border-radius: .7rem; color: #f3d78a; background: rgba(244, 194, 72, .08); font-size: .78rem; line-height: 1.35; }
.sports-data-status.is-unavailable { border-color: rgba(255, 120, 120, .28); color: #ffb4b4; background: rgba(255, 120, 120, .08); }
.sports-match-row { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem .85rem; margin-bottom: .55rem; padding: .95rem 1rem; text-align: left; color: var(--polar-ink); border: 1px solid rgba(207,227,236,.08); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.sports-match-row::before { position: absolute; top: .75rem; bottom: .75rem; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: transparent; content: ""; }
.sports-match-row:hover, .sports-match-row:focus-visible, .sports-match-row.is-selected { border-color: rgba(118,230,195,.42); background: rgba(118,230,195,.08); outline: none; }
.sports-match-row:hover { transform: translateY(-1px); }
.sports-match-row.is-selected::before { background: var(--polar-signal); }
.sports-card-meta { min-width: 0; display: flex; align-items: center; gap: .45rem; }
.sports-competition { overflow: hidden; color: #a9bac2; font-size: .7rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.sports-stage, .sports-round-badge { flex: 0 0 auto; padding: .18rem .42rem; border: 1px solid rgba(75,210,255,.22); border-radius: 999px; color: #8addf6; background: rgba(75,210,255,.07); font-size: .61rem; font-weight: 800; letter-spacing: .025em; }
.sports-card-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .28rem .65rem; }
.sports-card-teams > span { overflow: hidden; font-size: .84rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.sports-card-teams > strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.sports-card-team { display: flex; align-items: center; gap: .42rem; }
.sports-card-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sports-card-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; gap: .3rem; justify-items: end; }
.sports-time, .sports-live, .sports-list-status { font-size: .7rem; font-weight: 900; letter-spacing: .035em; font-variant-numeric: tabular-nums; }
.sports-time { color: #d9e8ed; font-size: .78rem; }
.sports-live { color: #ff7184; }
.sports-list-status { color: var(--polar-muted); font-size: .58rem; }
.sports-detail { min-width: 0; display: grid; grid-template-rows: auto minmax(250px, .9fr) minmax(260px, .78fr); overflow: hidden; }
.sports-match-summary { display: grid; gap: .9rem; padding: 1.25rem 1.45rem 1.15rem; border-bottom: 1px solid rgba(207,227,236,.09); background: rgba(16,29,41,.74); }
.sports-match-meta { display: flex; align-items: center; gap: .65rem; }
.sports-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.sports-team { min-width: 0; display: grid; grid-template-columns: 2.65rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; }
.sports-team-away { grid-template-columns: auto minmax(0, 1fr) 2.65rem; text-align: right; }
.sports-team-away .sports-team-mark { grid-column: 3; grid-row: 1; }
.sports-team-away .sports-team-name { grid-column: 2; grid-row: 1; }
.sports-team-away .sports-team-score { grid-column: 1; grid-row: 1; }
.sports-team-mark { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid rgba(118,230,195,.28); border-radius: 50%; color: #baf5e3; background: radial-gradient(circle at 35% 30%, rgba(118,230,195,.2), rgba(20,57,62,.32)); font-size: .73rem; font-weight: 900; letter-spacing: .04em; }
.sports-team-mark.is-compact { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; border: 0; font-size: .48rem; }
.sports-team-badge { display: block; width: 78%; height: 78%; object-fit: contain; }
.sports-team-name { overflow: hidden; font-size: clamp(.9rem, 1.25vw, 1.12rem); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sports-team-score { font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sports-score-divider { color: #60727d; font-size: 1rem; font-weight: 800; }
.sports-match-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--polar-muted); font-size: .72rem; }
.sports-match-status strong { color: var(--polar-ink); letter-spacing: .06em; }
.sports-match-status strong.is-live { color: #ff7184; }
.sports-venue { min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.sports-match-status > span { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sports-match-status > span:last-child { text-align: right; }
.sports-preview { min-height: 250px; border-radius: 0; border: 0; border-bottom: 1px solid var(--polar-line); }
.sports-preview::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(3,9,14,.83)); content: ""; pointer-events: none; }
.sports-preview-copy { z-index: 1; }
.sports-preview-copy h2 { margin-top: .25rem; }
.sports-preview-label { color: #76e6c3; font-size: .63rem; font-weight: 900; letter-spacing: .13em; }
.sports-timeline { min-width: 0; display: grid; grid-template-rows: auto 66px minmax(0, 1fr); overflow: hidden; border-top: 1px solid var(--polar-line); background: rgba(8,18,28,.42); }
.sports-timeline-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.45rem .72rem; }
.sports-timeline-ruler { min-width: 0; overflow-x: auto; overflow-y: hidden; border-top: 1px solid rgba(207,227,236,.07); border-bottom: 1px solid rgba(207,227,236,.1); scrollbar-color: rgba(118,230,195,.5) transparent; }
.sports-timeline-ruler-track { position: relative; min-width: 530px; height: 100%; margin: 0 1.45rem; }
.sports-timeline-ruler-track::before { position: absolute; top: 37px; right: 0; left: 0; height: 2px; background: rgba(207,227,236,.18); content: ""; }
.sports-timeline-tick { position: absolute; z-index: 1; top: 28px; width: 1px; height: 19px; background: #82949c; }
.sports-timeline-tick > span { position: absolute; top: -18px; translate: -50% 0; color: var(--polar-muted); font-size: .62rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.sports-timeline-marker { position: absolute; z-index: 2; top: calc(20px - var(--marker-offset, 0px)); display: grid; width: 34px; height: 34px; place-items: center; translate: -50% 0; border-radius: 50%; background: #101f2b; box-shadow: 0 0 0 3px rgba(8,18,28,.96); }
.sports-timeline-marker-card { border-radius: 7px; }
.sports-timeline-marker-period { width: 24px; height: 24px; }
.sports-incident-list { min-height: 0; overflow: auto; padding: .15rem 1.45rem 1rem; scrollbar-color: rgba(118,230,195,.5) transparent; }
.sports-incident { display: grid; grid-template-columns: 3rem 34px minmax(0, 1fr); gap: .65rem; align-items: center; padding: .68rem 0; border-bottom: 1px solid rgba(207,227,236,.08); }
.sports-incident time { color: #b8cbd2; font-size: .74rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sports-event-icon { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(207,227,236,.16); border-radius: 50%; color: #b7c9d1; background: #101f2b; font-size: .72rem; font-weight: 900; }
.sports-event-icon.is-compact { width: 24px; height: 24px; border-width: 0; background: transparent; font-size: .62rem; }
.sports-event-icon-goal { color: #76e6c3; border-color: rgba(118,230,195,.3); }
.sports-event-icon-var { font-size: .48rem; }
.sports-card-symbol { width: 9px; height: 14px; border-radius: 1.5px; background: #f7cf52; box-shadow: 0 2px 4px rgba(0,0,0,.3); transform: rotate(-8deg); }
.sports-event-icon.is-compact .sports-card-symbol { width: 7px; height: 11px; }
.sports-event-icon-card.is-red .sports-card-symbol { background: #ee5d68; }
.sports-event-copy { min-width: 0; display: grid; gap: .14rem; }
.sports-event-copy strong { color: #e9f3f6; font-size: .8rem; }
.sports-event-copy > span { overflow: hidden; color: var(--polar-muted); font-size: .75rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sports-incident-goal .sports-event-copy strong { color: #76e6c3; }
.sports-incident-card .sports-event-copy strong { color: #f6d675; }
.sports-timeline-empty { grid-row: 2 / -1; display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1.45rem; color: var(--polar-muted); }
.sports-timeline-empty p { margin: 0; font-size: .8rem; }
.sports-empty { display: grid; place-items: center; height: 100%; color: var(--polar-muted); }
.settings-toggle { display: flex; gap: .75rem; align-items: center; padding: .85rem 0; font-weight: 700; cursor: pointer; }
.settings-toggle input { width: 1.15rem; height: 1.15rem; accent-color: #36bfe8; }
.sports-alert-notification { position: fixed; z-index: 10000; top: 1rem; right: 1rem; width: min(360px, calc(100vw - 2rem)); display: grid; gap: .25rem; padding: 1rem 1.1rem; color: #effcff; border: 1px solid rgba(84,228,180,.65); border-radius: 14px; background: rgba(6,31,35,.96); box-shadow: 0 18px 60px rgba(0,0,0,.48); animation: goal-toast-in .22s ease-out; }
.sports-alert-notification strong { color: #54e4b4; letter-spacing: .08em; }
.sports-alert-notification.is-red-card { border-color: rgba(255,105,105,.75); background: rgba(46,12,18,.97); }
.sports-alert-notification.is-red-card strong { color: #ff8a8a; }
.sports-alert-notification small { color: var(--polar-muted); }
@keyframes goal-toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.settings-panel { padding: 1.3rem; border: 1px solid var(--polar-line); border-radius: 12px; background: rgba(17,30,42,.65); }
.settings-panel h2 { margin: 0; font-size: 1.1rem; }
.settings-panel p { margin: 0; color: var(--polar-muted); }
.public-settings .settings-page { width: 100%; padding: 0; }

.fullscreen-player { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: #000; }
.fullscreen-frame { width: 100%; height: 100%; outline: none; }
.fullscreen-video-host { position: absolute; inset: 0; }
.fullscreen-video-host .channel-video { object-fit: contain; }
.fullscreen-metadata { position: absolute; right: 0; bottom: 0; left: 0; padding: 4rem 2rem 1.4rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.fullscreen-metadata h1 { margin: 0; font-size: 1.35rem; }
.fullscreen-metadata p { margin: .2rem 0 0; color: #d4e0e4; font-size: .88rem; }
.channel-drawer { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(170px, .7fr) minmax(270px, 1fr); width: min(60vw, 650px); padding: 1rem; gap: .6rem; border-right: 1px solid rgba(207,227,236,.2); background: rgba(8,16,24,.94); backdrop-filter: blur(16px); box-shadow: 22px 0 50px rgba(0,0,0,.35); }
.drawer-categories, .drawer-channels { display: grid; align-content: start; gap: .3rem; overflow: auto; }
.drawer-categories { padding-right: .6rem; border-right: 1px solid var(--polar-line); }
.drawer-channel-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.drawer-search { margin: 0 0 .7rem; }
.drawer-category { min-height: 2.55rem; padding: .45rem .65rem; border-radius: 7px; background: transparent; color: var(--polar-muted); text-align: left; font-size: .84rem; font-weight: 700; }
.drawer-category.is-selected { background: rgba(118,230,195,.12); color: var(--polar-ink); }
.favorite-control { position: absolute; z-index: 3; right: 1.35rem; bottom: 1.35rem; display: grid; width: 3.05rem; height: 3.05rem; place-items: center; border: 1px solid rgba(247,248,252,.4); border-radius: 50%; background: rgba(8,16,24,.86); color: var(--polar-signal); font-size: 1.55rem; }
.quality-control { position: absolute; z-index: 4; right: 1.35rem; top: 1.35rem; min-height: 2.7rem; padding: .55rem .85rem; border: 1px solid rgba(247,248,252,.4); border-radius: .65rem; background: rgba(8,16,24,.9); color: var(--text); font-weight: 700; }
.quality-menu { position: absolute; z-index: 5; right: 1.35rem; top: 4.45rem; display: grid; min-width: 9rem; gap: .35rem; padding: .5rem; border: 1px solid rgba(247,248,252,.3); border-radius: .7rem; background: rgba(8,16,24,.96); box-shadow: 0 1rem 2rem rgba(0,0,0,.35); }
.quality-option { min-height: 2.5rem; padding: .45rem .75rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--text); text-align: left; }
.quality-option.is-selected { border-color: var(--polar-signal); color: var(--polar-signal); }
.quality-control:focus-visible, .quality-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fullscreen-schedule { position: absolute; z-index: 2; right: 1.35rem; bottom: 5.25rem; left: 1.35rem; padding: .42rem .58rem .5rem; border: 1px solid rgba(207,227,236,.2); border-radius: 9px; background: rgba(8,16,24,.9); backdrop-filter: blur(12px); }
.fullscreen-schedule-label, .fullscreen-schedule-status { margin: 0 0 .25rem; color: var(--polar-muted); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.fullscreen-schedule-status { margin: 0; text-transform: none; letter-spacing: normal; }
.fullscreen-programme-rail { position: relative; display: flex; gap: .24rem; padding: .05rem; margin: 0; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; scrollbar-color: rgba(118,230,195,.5) transparent; }
.fullscreen-programme-rail::before { position: absolute; z-index: -1; top: .46rem; right: 0; left: 0; height: 2px; background: rgba(118,230,195,.25); content: ""; }
.fullscreen-programme { display: grid; flex: 0 0 min(var(--timeline-width), 52vw); gap: .08rem; min-height: 3.45rem; padding: .42rem .5rem; border: 1px solid rgba(207,227,236,.16); border-top: 3px solid rgba(118,230,195,.45); border-radius: 6px; background: rgba(8,16,24,.78); color: var(--polar-muted); scroll-snap-align: start; }
.fullscreen-programme time { font-size: .67rem; font-variant-numeric: tabular-nums; }
.fullscreen-programme strong { overflow: hidden; color: var(--polar-ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.fullscreen-programme.is-selected { border-color: var(--polar-signal); border-top-color: var(--polar-focus); background: rgba(118,230,195,.13); box-shadow: inset 0 0 0 1px rgba(118,230,195,.18); }

@media (max-width: 920px) {
  .live-navigator { grid-template-columns: 132px minmax(210px, .92fr) minmax(340px, 1.5fr); }
  .global-header { gap: .7rem; }
  .global-nav { gap: 0; }
  .top-nav { min-width: auto; padding: 0 .55rem; }
}
@media (max-width: 720px) {
  .global-header { min-height: 62px; padding: 0 1rem; }
  .wordmark { width: 105px; }
  .global-nav { height: 62px; }
  .top-nav { font-size: .76rem; }
  .header-clock { display: none; }
  .live-page { width: 100%; padding: 0; }
  .live-navigator { grid-template-columns: 114px minmax(185px, 1fr); height: auto; min-height: calc(100dvh - 62px); overflow: visible; border: 0; border-radius: 0; }
  .detail-panel { grid-column: 1 / -1; height: auto; min-height: 560px; }
  .sports-page { grid-template-columns: 1fr; width: 100%; margin: 0; height: auto; min-height: calc(100dvh - 62px); overflow: visible; border: 0; border-radius: 0; }
  .sports-list { max-height: 45dvh; border-right: 0; border-bottom: 1px solid var(--polar-line); }
  .sports-detail { min-height: 720px; grid-template-rows: auto minmax(270px, auto) minmax(300px, auto); overflow: visible; }
  .sports-timeline-ruler-track { margin-inline: 1rem; }
  .sports-timeline-heading, .sports-incident-list { padding-inline: 1rem; }
  .sports-scoreboard { gap: .55rem; }
  .sports-team { grid-template-columns: 2.3rem minmax(0, 1fr) auto; gap: .45rem; }
  .sports-team-away { grid-template-columns: auto minmax(0, 1fr) 2.3rem; }
  .sports-team-mark { width: 2.3rem; height: 2.3rem; }
  .categories-panel, .channels-panel { padding: .8rem .5rem; }
  .channel-drawer { width: min(93vw, 620px); grid-template-columns: 122px minmax(170px, 1fr); }
}
