:root {
  --bg: #090a0c;
  --surface: #101114;
  --surface-2: #15171b;
  --surface-3: #1b1e23;
  --surface-raised: #202329;
  --text: #f5f6f7;
  --text-soft: #c4c8cf;
  --text-dim: #858b95;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff762b;
  --accent-soft: rgba(255, 118, 43, 0.14);
  --live: #ff4f5e;
  --success: #55d88a;
  --warning: #f7b955;
  --blue: #6ea8ff;
  --header-h: 64px;
  --mobile-nav-h: 0px;
  --page-pad: clamp(18px, 2.8vw, 46px);
  --content-max: 1780px;
  --radius: 8px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
::selection { background: rgba(255, 118, 43, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 0 var(--page-pad);
  background: rgba(9, 10, 12, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(255,118,43,.7); }
.primary-nav { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 3px; }
.nav-item {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 15px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-item.is-active { color: var(--text); background: var(--surface-3); }
.topbar-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 9px; }
.global-search {
  width: clamp(220px, 24vw, 360px);
  height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dim);
  transition: border-color .18s, background .18s;
}
.global-search:focus-within { border-color: var(--line-strong); background: var(--surface-2); }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 12px; letter-spacing: 0; }
.global-search input::placeholder { color: var(--text-dim); }
.global-search kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-dim); background: var(--surface-2); font-size: 10px; }
.icon-button, .profile-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.icon-button:hover, .profile-button:hover { background: var(--surface-3); border-color: var(--line-strong); }
.profile-button { border-radius: 50%; background: #e9e9eb; color: #111216; font-size: 12px; font-weight: 900; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); }

.app-view { min-height: calc(100vh - var(--header-h)); outline: 0; }
.page { width: min(100%, var(--content-max)); margin: 0 auto; padding: 30px var(--page-pad) 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-kicker { margin: 0 0 6px; color: var(--text-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.page-title { margin: 0; font-size: 52px; line-height: .98; letter-spacing: 0; font-weight: 790; }
.page-summary { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: 12px; }
.live-count { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.live-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255,79,94,.12); }
.section { margin-top: 32px; }
.section-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: 0; }
.section-meta { color: var(--text-dim); font-size: 11px; }
.section-actions { display: flex; align-items: center; gap: 7px; }
.text-button, .control-button, .pill, .date-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .18s var(--ease);
}
.text-button:hover, .control-button:hover, .pill:hover, .date-chip:hover { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }
.text-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; font-size: 11px; font-weight: 800; }
.control-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; }
.control-button svg { width: 16px; height: 16px; }
.control-button.is-active { border-color: rgba(255,118,43,.45); background: var(--accent-soft); color: var(--accent); }
.primary-button, .secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 0 15px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--text); background: var(--text); color: #0a0b0d; }
.primary-button.accent { border-color: var(--accent); background: var(--accent); color: #111; }
.secondary-button { border: 1px solid var(--line-strong); background: rgba(16,17,20,.8); color: var(--text); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button svg, .secondary-button svg { width: 16px; height: 16px; }

.date-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.date-rail::-webkit-scrollbar { display: none; }
.date-chip { min-width: 92px; height: 48px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0 14px; white-space: nowrap; }
.date-chip strong { color: inherit; font-size: 12px; }
.date-chip span { color: var(--text-dim); font-size: 10px; }
.date-chip.is-active { border-color: var(--text); background: var(--text); color: #111216; }
.date-chip.is-active span { color: rgba(17,18,22,.62); }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 18px 0 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.pill { min-height: 32px; padding: 0 13px; white-space: nowrap; font-size: 11px; font-weight: 780; }
.pill.is-active { border-color: var(--line-strong); background: var(--text); color: #111216; }

.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.event-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.event-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.event-visual {
  position: relative;
  aspect-ratio: 16 / 8.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--event-bg, #16191e);
  isolation: isolate;
}
.event-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, var(--home, #273647) 0 49.8%, var(--away, #3d2228) 50.2% 100%); opacity: .82; }
.event-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,6,8,.72), transparent 62%); }
.team-crest { width: clamp(58px, 6vw, 88px); height: clamp(58px, 6vw, 88px); object-fit: contain; justify-self: center; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.event-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-badge, .league-badge, .source-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 0 7px;
  background: rgba(8,9,11,.68);
  color: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.status-badge.live { background: rgba(167,30,45,.84); border-color: rgba(255,100,113,.3); color: #fff; }
.status-badge.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ff7985; }
.event-clock { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; font-weight: 900; text-shadow: 0 2px 8px #000; }
.event-body { padding: 13px; }
.event-title { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 850; }
.event-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 10px; }
.event-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.event-actions .text-button { width: 100%; flex: 1; line-height: 1; }
.event-actions .text-button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.event-actions .control-button { flex: 0 0 auto; }
.event-card.is-selected { border-color: rgba(85,216,138,.36); }
.event-card.is-selected .event-actions .control-button { border-color: rgba(85,216,138,.34); background: rgba(85,216,138,.1); color: var(--success); }
.event-card.is-featured { grid-column: span 2; }
.event-card.is-featured .event-visual { aspect-ratio: 16 / 7; }
.event-card.is-featured .team-crest { width: 104px; height: 104px; }
.event-card.is-featured .event-title { font-size: 15px; }

/* Native functional layer. These styles extend the approved vNext components. */
.playback-parking {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.provider-health { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.provider-health::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4a4e56; }
.provider-health.is-up::before { background: var(--success); box-shadow: 0 0 0 3px rgba(85,216,138,.1); }
.event-poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; z-index: -1; }
.event-visual.has-art { display: block; }
.event-visual.has-art::before { opacity: 0; }
.team-monogram { width: clamp(54px, 5vw, 82px); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(8,9,11,.62); color: #fff; font-size: 18px; font-weight: 900; backdrop-filter: blur(8px); }
.source-preview { margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.empty-state { grid-column: 1 / -1; min-height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-dim); font-size: 12px; }

.watch-tools { display: flex; align-items: center; gap: 8px; }
.native-grid { min-height: min(72vh, 820px); }
.native-grid[data-layout="focus-stack"] { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.native-grid[data-layout="focus-stack"] .feed-tile:first-child { grid-row: 1 / 4; }
.native-feed { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 28px; overflow: hidden; aspect-ratio: auto; border: 1px solid var(--line); background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.018); }
.native-feed .native-video-stage { position: relative; inset: auto; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.native-video-stage::after { content: none; }
.native-video-stage video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: auto; }
.native-video-stage video.is-candidate { z-index: 0; opacity: 0; pointer-events: none; }
.native-feed .feed-head { z-index: 4; }
.native-feed .feed-foot { position: relative; z-index: 3; inset: auto; min-height: 28px; align-items: center; padding: 0 10px; background: #0b0c0f; pointer-events: none; }
.native-feed .feed-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--text-dim); font-size: 11px; background: #08090b; transition: opacity .25s; }
.native-feed .feed-empty.is-hidden { opacity: 0; pointer-events: none; }
.feed-spinner { width: 23px; height: 23px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: native-spin .8s linear infinite; }
@keyframes native-spin { to { transform: rotate(360deg); } }
.feed-drag { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--text-dim); cursor: grab; }
.feed-drag:active { cursor: grabbing; }
.source-text { width: auto; min-width: 58px; padding: 0 9px; font-size: 10px; font-weight: 850; }
.native-feed[data-player-state="failed"] { outline: 1px solid rgba(255,79,94,.5); outline-offset: -1px; }
.native-feed[data-player-state="playable"] .feed-status { color: var(--success); }
.native-feed[data-player-state="buffering"] .feed-status, .native-feed[data-player-state="resolving"] .feed-status { color: var(--warning); }

.native-source-menu { position: fixed; z-index: 400; max-height: min(520px, 72dvh); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-gutter: stable; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(16,17,20,.98); box-shadow: 0 20px 54px rgba(0,0,0,.48); backdrop-filter: blur(18px); }
.native-source-menu button { width: 100%; min-height: 48px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-radius: 5px; padding: 8px 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.native-source-menu button:hover, .native-source-menu button.is-current { background: var(--surface-raised); }
.native-source-menu button > span:not(.provider-dot) { min-width: 0; display: grid; gap: 3px; }
.native-source-menu strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.native-source-menu small, .native-source-menu em { color: var(--text-dim); font-size: 9px; font-style: normal; text-transform: capitalize; }
.provider-dot { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.provider-dami { background: var(--accent); }.provider-dlhd { background: var(--blue); }.provider-timstreams { background: var(--success); }.provider-forest { background: #d0a7ff; }.provider-iptv { background: #67d5d0; }
.native-source-menu [data-health="playable"], .native-source-menu [data-health="ready"] { color: var(--success); }
.native-source-menu [data-health="failed"] { color: var(--live); }

.native-movie-mount { position: relative; z-index: 3; padding: 18px var(--page-pad) 0; background: var(--bg); }
.native-movie-player { width: min(100%, 140vh, 1600px); margin: 0 auto; scroll-margin-top: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.native-player-bar { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.native-player-bar > strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.native-player-bar > span { color: var(--text-dim); font-size: 9px; }
.anime-audio-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #090a0c; }
.anime-audio-toggle[hidden] { display: none; }
.anime-audio-toggle button { min-width: 38px; height: 26px; border: 0; border-radius: 3px; background: transparent; color: var(--text-dim); font-size: 9px; font-weight: 800; cursor: pointer; }
.anime-audio-toggle button.is-active { background: var(--text); color: #08090b; }
.anime-audio-toggle button:disabled { opacity: .4; cursor: default; }
.native-episode-picker { min-height: 52px; display: grid; grid-template-columns: 34px minmax(118px, auto) minmax(160px, auto) minmax(0, 1fr) 34px; align-items: center; gap: 7px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #0b0c0f; }
.native-episode-picker[hidden] { display: none; }
.episode-step { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text); cursor: pointer; }
.episode-step:hover:not(:disabled), .episode-choice:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.episode-step:disabled { opacity: .3; cursor: default; }
.episode-step svg { width: 15px; height: 15px; }
.episode-choice { min-width: 0; height: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.episode-choice > span { color: var(--text-dim); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.episode-choice > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.episode-choice svg { width: 13px; height: 13px; color: var(--text-dim); }
.episode-current-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 5px; color: var(--text-dim); font-size: 10px; }
.native-movie-video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; }
.native-movie-video video-player, .native-movie-video video-skin, .native-movie-video .movieVjsWrap { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; background: #000; }
.native-movie-video video { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center center; background: #000; margin: auto; }
.native-movie-video:fullscreen, .native-movie-video video-player:fullscreen, .native-movie-video video-skin:fullscreen { width: 100vw !important; height: 100dvh !important; display: grid !important; place-items: center !important; background: #000 !important; }
.native-movie-video:fullscreen video, .native-movie-video video-player:fullscreen video, .native-movie-video video-skin:fullscreen video { width: 100vw !important; height: 100dvh !important; max-height: none !important; object-fit: contain !important; object-position: center center !important; margin: auto !important; background: #000 !important; }
.media-library-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.library-search { width: min(340px, 40vw); min-height: 38px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-dim); }
.library-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.shelf-actions { display: flex; align-items: center; gap: 8px; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-raised); font-size: 28px; font-weight: 900; }
.cinema-loading { min-height: 56vh; display: grid; place-items: center; color: var(--text-dim); }

.season-strip { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.episode-list { display: grid; gap: 5px; max-height: 430px; overflow-y: auto; padding-right: 3px; }
.episode-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.episode-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.episode-row > span { color: var(--text-dim); font-size: 11px; text-align: center; }
.episode-row div { min-width: 0; display: grid; gap: 4px; }.episode-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.episode-row small { color: var(--text-dim); font-size: 9px; }
.episode-row.is-complete, .episode-row.is-watched { border-color: rgba(66, 194, 122, .34); }
.episode-row.is-complete > svg, .episode-row.is-watched > svg { color: var(--success); }
.episode-row.is-progress { border-color: rgba(255, 112, 32, .36); }
.episode-progress-meter { display: block; width: 100%; height: 2px; margin-top: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--episode-progress), rgba(255,255,255,.09) 0); }
.drawer-loading { min-height: 300px; display: grid; place-items: center; color: var(--text-dim); }

.native-tv-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.tv-discovery { margin-bottom: 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tv-discovery-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tv-discovery-row .library-search { width: min(560px, 64vw); }
.tv-filter-row { padding-top: 12px; }
.native-tv-player { width: min(100%, 140vh, 1600px); min-height: 0; margin: 0 auto 30px; scroll-margin-top: 76px; }
.native-tv-stage { position: relative; width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.native-tv-stage video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
.native-tv-stage .tv-player-head { z-index: 3; }
.native-channel-browser { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.native-channel-browser .library-search { width: 100%; }
.tv-source-summary { color: var(--text-dim); font-size: 10px; line-height: 1.5; }
.native-channel-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; }
.native-channel-card { min-width: 0; min-height: 104px; display: grid; justify-items: start; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.native-channel-card:hover, .native-channel-card.is-active { border-color: var(--line-strong); background: var(--surface-2); }
.native-channel-logo { width: 40px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: var(--surface-raised); font-size: 9px; font-weight: 900; }
.native-channel-logo img { width: 100%; height: 100%; object-fit: contain; }
.native-channel-card strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.native-channel-card small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 9px; }
.tv-more { display: flex; justify-content: center; padding: 22px 0 4px; }

.theatre-exit { display: none; }
.watch-page.is-theatre, .watch-page:fullscreen { width: 100%; height: 100%; padding: 0; background: #000; }
.watch-page.is-theatre .watch-toolbar, .watch-page:fullscreen .watch-toolbar { position: fixed; inset: 0 auto auto 0; z-index: 20; width: max-content; max-width: 100vw; min-height: 56px; justify-content: flex-start; padding: 8px 12px; border-radius: 0 0 var(--radius) 0; background: rgba(8,9,11,.86); transition: opacity .22s; }
.watch-page.is-theatre .watch-tools, .watch-page:fullscreen .watch-tools { margin: 0; flex-direction: row; align-items: center; }
.watch-page.is-theatre .watch-toolbar > div:first-child, .watch-page:fullscreen .watch-toolbar > div:first-child { display: none; }
.watch-page.is-theatre [data-theatre], .watch-page:fullscreen [data-theatre] { display: none; }
.watch-page.is-theatre .theatre-exit, .watch-page:fullscreen .theatre-exit { display: inline-flex; }
.watch-page.is-theatre .native-grid, .watch-page:fullscreen .native-grid { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; min-height: 0; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; }
.watch-page.is-theatre .native-feed, .watch-page:fullscreen .native-feed { grid-template-rows: minmax(0, 1fr) 28px; border: 0; border-radius: 0; box-shadow: none; }
.watch-page.is-theatre .native-video-stage, .watch-page:fullscreen .native-video-stage { position: relative; inset: auto; width: 100%; height: 100%; aspect-ratio: auto; }
.watch-page.is-theatre .native-feed .feed-foot, .watch-page:fullscreen .native-feed .feed-foot { position: relative; inset: auto; min-height: 28px; align-items: center; padding: 0 10px; background: #0b0c0f; }
.watch-page.is-theatre .feed-head, .watch-page:fullscreen .feed-head { top: 56px; }
.watch-page.is-theatre .watch-catalog, .watch-page:fullscreen .watch-catalog { display: none; }
.watch-page.controls-hidden .watch-toolbar, .watch-page.controls-hidden .feed-head, .watch-page.controls-hidden .feed-foot { opacity: 0; pointer-events: none; }
.watch-page.controls-hidden { cursor: none; }

@media (max-width: 1180px) {
  .native-channel-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .native-tv-shell { grid-template-columns: 1fr; }
  .native-channel-browser { order: -1; }
}
@media (max-width: 720px) {
  .page-summary .provider-health { display: none; }
  .watch-tools { align-items: flex-end; flex-direction: column-reverse; }
  .native-grid { min-height: auto; aspect-ratio: auto; }
  .native-grid[data-layout] { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .native-grid[data-layout] .feed-tile:first-child { grid-row: auto; grid-column: auto; }
  .native-feed { min-height: 52vw; }
  .source-text { min-width: 52px; }
  .native-player-bar { flex-wrap: wrap; }.native-player-bar > strong { flex-basis: calc(100% - 46px); }.native-player-bar > span { order: 5; flex: 1; }
  .native-episode-picker { grid-template-columns: 34px minmax(0, .75fr) minmax(0, 1fr) 34px; padding: 7px; }
  .episode-current-title { display: none; }
  .episode-choice { padding: 0 8px; gap: 5px; }
  .episode-choice > span { display: none; }
  .native-movie-video { height: 56vw; min-height: 230px; }
  .media-library-head { align-items: flex-start; flex-direction: column; }
  .media-library-head .media-tabs { width: auto; max-width: 100%; margin-bottom: 0; align-self: flex-start; }
  .media-library-head .library-search { width: 100%; align-self: stretch; }
  .media-tab { min-width: 0; padding-inline: 12px; }
  .native-channel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .native-tv-stage { min-height: 56vw; }.native-tv-stage video { min-height: 56vw; }
}

.watch-page { width: 100%; max-width: none; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.watch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.layout-picker { display: inline-flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.layout-button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--text-dim); cursor: pointer; }
.layout-button:hover, .layout-button.is-active { background: var(--surface-raised); color: var(--text); }
.layout-icon { width: 18px; height: 14px; display: grid; gap: 2px; }
.layout-icon i { display: block; border: 1px solid currentColor; border-radius: 1px; }
.layout-icon.split { grid-template-columns: 1fr 1fr; }
.layout-icon.focus-right { grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-icon.focus-right i:first-child { grid-row: 1 / 3; }
.layout-icon.focus-top { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.layout-icon.focus-top i:first-child { grid-column: 1 / 3; }
.layout-icon.quad { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-icon.stage { grid-template-columns: repeat(3,1fr); grid-template-rows: 1.3fr 1fr; }
.layout-icon.stage i:first-child { grid-column: 1 / 4; }
.watch-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.multiview-grid { min-height: min(68vh, 780px); display: grid; gap: 4px; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.multiview-grid[data-layout="single"] { grid-template-columns: 1fr; }
.multiview-grid[data-layout="split"] { grid-template-columns: 1fr 1fr; }
.multiview-grid[data-layout="focus-right"] { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.multiview-grid[data-layout="focus-right"] .feed-tile:first-child { grid-row: 1 / 3; }
.multiview-grid[data-layout="focus-top"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1.45fr 1fr; }
.multiview-grid[data-layout="focus-top"] .feed-tile:first-child { grid-column: 1 / 3; }
.multiview-grid[data-layout="quad"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.multiview-grid[data-layout="stage"] { grid-template-columns: repeat(3,1fr); grid-template-rows: 1.65fr 1fr; }
.multiview-grid[data-layout="stage"] .feed-tile:first-child { grid-column: 1 / 4; }
.feed-tile {
  position: relative;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  background: #08090b;
  cursor: pointer;
}
.feed-tile.is-audio { outline: 2px solid var(--accent); outline-offset: -2px; }
.feed-tile.is-dragging { opacity: .5; }
.feed-tile.is-drop-target { outline: 2px solid var(--accent); outline-offset: -2px; }
.feed-tile.is-swap-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.feed-stage { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(120deg, var(--home, #1c2a3a), var(--away, #341c22)); }
.feed-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 58%, transparent 0 24%, rgba(0,0,0,.38) 78%); }
.feed-matchup { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(22px,4vw,70px); }
.feed-matchup img { width: clamp(62px,8vw,130px); height: clamp(62px,8vw,130px); object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)); }
.feed-matchup b { font-size: 26px; color: rgba(255,255,255,.3); }
.feed-head { position: absolute; z-index: 3; inset: 0 0 auto; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(to bottom, rgba(0,0,0,.82), transparent); opacity: 0; transition: opacity .18s; }
.feed-tile:hover .feed-head, .feed-tile.is-audio .feed-head { opacity: 1; }
.feed-drag { width: 18px; height: 28px; display: grid; place-items: center; color: var(--text-dim); cursor: grab; touch-action: none; }
.feed-drag:active { cursor: grabbing; }
.feed-drag svg { width: 14px; height: 14px; }
.feed-number { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.12); font-size: 10px; font-weight: 900; }
.feed-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.feed-control { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(12,13,15,.78); cursor: pointer; }
.feed-control svg { width: 14px; height: 14px; }
.feed-foot { position: absolute; z-index: 3; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 24px 10px 9px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
.feed-status { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 750; }
.feed-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.feed-league { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.empty-feed { display: grid; place-items: center; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-dim); }
.empty-feed button { display: grid; place-items: center; gap: 8px; border: 0; background: none; color: inherit; cursor: pointer; font-size: 11px; font-weight: 800; }
.empty-feed svg { width: 24px; height: 24px; }
.watch-browser { position: sticky; top: calc(var(--header-h) + 14px); max-height: min(68vh,780px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.watch-browser-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.watch-browser-head strong { font-size: 12px; }
.watch-list { max-height: calc(min(68vh,780px) - 50px); overflow-y: auto; padding: 6px; }
.watch-list-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-radius: var(--radius-sm); padding: 9px; background: transparent; text-align: left; cursor: pointer; }
.watch-list-item:hover { background: var(--surface-3); }
.watch-list-logos { width: 44px; height: 34px; position: relative; }
.watch-list-logos img { position: absolute; width: 30px; height: 30px; object-fit: contain; top: 2px; }
.watch-list-logos img:last-child { right: 0; }
.watch-list-copy { min-width: 0; }
.watch-list-copy strong, .watch-list-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-list-copy strong { font-size: 11px; }
.watch-list-copy span { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.watch-list-item > svg { width: 16px; height: 16px; color: var(--text-dim); }
.watch-catalog { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.watch-catalog .filter-row { margin-bottom: 16px; padding-top: 0; }
.watch-catalog .section-head { align-items: end; }
.watch-catalog .page-kicker { margin-bottom: 5px; }
.watch-event-grid .event-card.is-featured { grid-column: auto; }
.watch-event-grid .event-card.is-featured .event-visual { aspect-ratio: 16 / 8.6; }
.watch-event-grid .event-card.is-featured .team-crest { width: clamp(58px, 6vw, 88px); height: clamp(58px, 6vw, 88px); }
.watch-event-grid .event-card.is-featured .event-title { font-size: 13px; }

.cinema-page { width: 100%; max-width: none; padding: 0 0 80px; overflow: hidden; }
.cinema-hero { position: relative; min-height: min(62vh, 650px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.cinema-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.cinema-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,7,9,.97) 0%, rgba(6,7,9,.78) 37%, rgba(6,7,9,.15) 72%), linear-gradient(to top, var(--bg) 0%, transparent 44%); }
.cinema-copy { width: min(720px, 86vw); padding: 80px var(--page-pad) 76px; }
.cinema-eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.cinema-title { margin: 0 0 13px; font-size: 74px; line-height: .94; font-weight: 850; letter-spacing: 0; }
.cinema-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.rating-chip { display: inline-flex; align-items: center; gap: 5px; color: #ffd86d; }
.cinema-description { max-width: 620px; margin: 0 0 22px; color: #d4d7dd; font-size: 14px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cinema-content { position: relative; z-index: 2; margin-top: -42px; padding: 0 var(--page-pad); }
.media-tabs { width: max-content; max-width: 100%; align-self: flex-start; display: inline-flex; gap: 4px; margin-bottom: 23px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,15,18,.88); backdrop-filter: blur(12px); }
.media-tab { min-height: 32px; border: 0; border-radius: 5px; padding: 0 13px; background: none; color: var(--text-dim); cursor: pointer; font-size: 11px; font-weight: 820; }
.media-tab.is-active { background: var(--text); color: #111216; }
.shelf { margin-top: 27px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.shelf-head h2 { margin: 0; font-size: 18px; }
.shelf-controls { display: flex; gap: 6px; }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 12.5vw); gap: 11px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; }
.media-row::-webkit-scrollbar { display: none; }
.media-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-snap-align: start; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.media-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.media-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface-2); }
.media-card-overlay { position: absolute; inset: auto 0 0; padding: 42px 10px 10px; background: linear-gradient(to top, rgba(4,5,7,.94), transparent); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.media-card:hover .media-card-overlay { opacity: 1; transform: none; }
.media-card-overlay strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.media-card-overlay span { display: block; margin-top: 4px; color: rgba(255,255,255,.65); font-size: 9px; }
.media-badge { position: absolute; top: 8px; left: 8px; min-height: 22px; display: inline-flex; align-items: center; border-radius: 5px; padding: 0 7px; background: rgba(8,9,11,.75); backdrop-filter: blur(8px); font-size: 9px; font-weight: 850; }
.continue-row { grid-auto-columns: minmax(260px, 22vw); }
.continue-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; scroll-snap-align: start; }
.continue-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .78; }
.continue-copy { position: absolute; inset: auto 0 0; padding: 30px 11px 12px; background: linear-gradient(to top, rgba(4,5,7,.96), transparent); }
.continue-copy strong { display: block; font-size: 12px; }
.continue-copy span { display: block; margin-top: 3px; color: rgba(255,255,255,.65); font-size: 9px; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.progress i { display: block; width: var(--progress); height: 100%; background: var(--accent); }

.tv-page { width: 100%; max-width: none; }
.tv-tabs { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tv-tabs button { min-height: 30px; border: 0; border-radius: 5px; padding: 0 12px; background: none; color: var(--text-dim); font-size: 11px; font-weight: 820; cursor: pointer; }
.tv-tabs button.is-active { background: var(--surface-raised); color: var(--text); }
.tv-shell { display: grid; grid-template-columns: 230px minmax(0,1fr) 330px; gap: 12px; min-height: 590px; }
.tv-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tv-sidebar { padding: 8px; }
.tv-side-title { padding: 9px 9px 7px; color: var(--text-dim); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.tv-category { width: 100%; min-height: 39px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; border: 0; border-radius: var(--radius-sm); padding: 0 9px; background: none; color: var(--text-soft); text-align: left; cursor: pointer; }
.tv-category:hover, .tv-category.is-active { background: var(--surface-3); color: var(--text); }
.tv-category svg { width: 15px; height: 15px; }
.tv-category span { font-size: 11px; font-weight: 760; }
.tv-category small { color: var(--text-dim); font-size: 9px; }
.tv-center { display: flex; flex-direction: column; min-width: 0; }
.tv-player { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(118deg,var(--tv-home),var(--tv-away)); }
.tv-player > img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.tv-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent 48%); pointer-events: none; }
.tv-matchup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9%; padding: 12%; }
.tv-matchup::before { content: ""; position: absolute; inset: 0; background: linear-gradient(126deg,transparent 48%,rgba(255,255,255,.08) 48.2%,transparent 48.8%); }
.tv-matchup img { position: relative; z-index: 1; width: 22%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 50%; padding: 3%; background: rgba(255,255,255,.9); filter: drop-shadow(0 8px 18px rgba(0,0,0,.36)); }
.tv-matchup span { position: relative; z-index: 1; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tv-player-head { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 9px; padding: 12px; background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent); }
.channel-logo { min-width: 50px; height: 27px; display: grid; place-items: center; border-radius: 4px; padding: 0 7px; background: #fff; color: #111; font-size: 10px; font-weight: 950; }
.tv-player-title { min-width: 0; flex: 1; }
.tv-player-title strong, .tv-player-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-player-title strong { font-size: 12px; }
.tv-player-title span { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 9px; }
.tv-player-foot { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tv-program strong { display: block; font-size: 22px; }
.tv-program span { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: 10px; }
.tv-controls { display: flex; gap: 6px; }
.tv-controls button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(8,9,11,.72); cursor: pointer; }
.tv-controls svg { width: 15px; height: 15px; }
.tv-channel-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; padding: 10px; border-top: 1px solid var(--line); }
.channel-tile { min-width: 0; min-height: 70px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.channel-tile:hover, .channel-tile.is-active { border-color: var(--line-strong); background: var(--surface-raised); }
.channel-tile strong { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.channel-tile span { color: var(--text-dim); font-size: 8px; }
.guide-panel { display: flex; flex-direction: column; }
.guide-head { min-height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--line); }
.guide-head strong { font-size: 12px; }
.guide-head span { color: var(--text-dim); font-size: 9px; }
.guide-list { overflow-y: auto; }
.guide-item { display: grid; grid-template-columns: 49px 1fr; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line); cursor: pointer; }
.guide-item:hover { background: var(--surface-2); }
.guide-time { color: var(--text-dim); font-size: 9px; font-weight: 800; }
.guide-copy { min-width: 0; }
.guide-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.guide-copy span { display: block; margin-top: 4px; color: var(--text-dim); font-size: 9px; }
.guide-progress { height: 2px; margin-top: 8px; overflow: hidden; background: var(--line); }
.guide-progress i { display: block; height: 100%; background: var(--accent); }
.tv-page.mode-guide .tv-shell { display: none; }
.epg-grid { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: auto; }
.epg-grid.is-visible { display: block; }
.epg-toolbar { min-width: 920px; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.epg-toolbar strong, .epg-toolbar span { display: block; }
.epg-toolbar strong { font-size: 13px; }
.epg-toolbar > div > span { margin-top: 4px; color: var(--text-dim); font-size: 9px; }
.epg-row { min-width: 920px; display: grid; grid-template-columns: 170px repeat(4, minmax(180px,1fr)); border-bottom: 1px solid var(--line); }
.epg-row:last-child { border-bottom: 0; }
.epg-row.epg-times { position: sticky; top: 0; z-index: 4; background: var(--surface-raised); color: var(--text-dim); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.epg-row.epg-times .epg-cell { min-height: 35px; }
.epg-cell { min-height: 68px; display: flex; align-items: center; padding: 10px 12px; border-right: 1px solid var(--line); }
.epg-cell:last-child { border-right: 0; }
.epg-cell.channel { position: sticky; left: 0; z-index: 2; gap: 9px; background: var(--surface); font-size: 11px; font-weight: 850; }
.epg-channel-logo { min-width: 37px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: #fff; color: #111; font-size: 8px; font-weight: 950; }
.epg-cell.program { align-items: flex-start; flex-direction: column; justify-content: center; border: 0; border-right: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; }
.epg-cell.program:last-child { border-right: 0; }
.epg-cell.program.is-now { box-shadow: inset 2px 0 var(--accent); background: rgba(255,106,30,.05); }
.epg-cell.program:hover { background: var(--surface-3); }
.epg-cell.program strong { font-size: 10px; }
.epg-cell.program span { margin-top: 4px; color: var(--text-dim); font-size: 8px; }

.detail-drawer { position: fixed; z-index: 300; inset: 0; display: grid; grid-template-columns: 1fr minmax(340px, 560px); pointer-events: none; visibility: hidden; }
.detail-drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-scrim { border: 0; background: rgba(0,0,0,.64); opacity: 0; transition: opacity .24s; }
.detail-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { min-width: 0; height: 100%; overflow-y: auto; background: #0d0e11; border-left: 1px solid var(--line-strong); transform: translateX(100%); transition: transform .25s var(--ease); }
.detail-drawer.is-open .drawer-panel { transform: none; }
.drawer-hero { position: relative; min-height: 310px; display: flex; align-items: flex-end; overflow: hidden; }
.drawer-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.drawer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #0d0e11 0%, rgba(13,14,17,.35) 68%); }
.drawer-close { position: absolute; z-index: 3; top: 14px; right: 14px; }
.drawer-hero-copy { position: relative; z-index: 2; width: 100%; padding: 24px; }
.drawer-hero-copy h2 { margin: 7px 0 0; font-size: 42px; line-height: 1; }
.drawer-body { padding: 0 24px 36px; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 13px 0 18px; color: var(--text-soft); font-size: 11px; }
.drawer-body p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.drawer-actions { display: flex; gap: 8px; margin-top: 20px; }
.drawer-section { margin-top: 28px; }
.drawer-section h3 { margin: 0 0 12px; font-size: 13px; }
.source-list { display: grid; gap: 6px; }
.source-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; min-height: 50px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.source-row .source-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: var(--surface-3); color: var(--text-soft); font-size: 9px; font-weight: 900; }
.source-row strong, .source-row span { display: block; }
.source-row strong { font-size: 11px; }
.source-row span { margin-top: 3px; color: var(--text-dim); font-size: 9px; }
.health { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 9px; font-weight: 800; }
.health::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cast-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.cast-person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.cast-person strong { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.cast-person span { display: block; margin-top: 2px; color: var(--text-dim); font-size: 8px; }

.toast-region { position: fixed; z-index: 500; left: 50%; bottom: calc(20px + var(--mobile-nav-h)); transform: translateX(-50%); display: grid; gap: 7px; pointer-events: none; }
.toast { min-width: 220px; max-width: min(420px,calc(100vw - 28px)); padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(24,26,30,.96); box-shadow: 0 12px 36px rgba(0,0,0,.36); font-size: 11px; font-weight: 750; animation: toast-in .2s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
.mobile-nav { display: none; }

@media (max-width: 1280px) {
  .event-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tv-shell { grid-template-columns: 205px minmax(0,1fr) 290px; }
  .watch-shell { grid-template-columns: minmax(0,1fr) 290px; }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 14px; }
  .primary-nav { justify-self: start; }
  .global-search { width: 40px; grid-template-columns: 1fr; place-items: center; padding: 0; }
  .global-search input, .global-search kbd { display: none; }
  .global-search.is-open { position: absolute; z-index: 4; left: var(--page-pad); right: calc(var(--page-pad) + 96px); width: auto; grid-template-columns: auto 1fr; place-items: center stretch; padding: 0 12px; box-shadow: 0 10px 30px rgba(0,0,0,.42); }
  .global-search.is-open input { display: block; }
  .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .watch-shell { grid-template-columns: 1fr; }
  .watch-browser { position: static; max-height: none; }
  .watch-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .tv-shell { grid-template-columns: 190px minmax(0,1fr); }
  .guide-panel { display: none; }
  .tv-channel-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .page-title { font-size: 44px; }
  .cinema-title { font-size: 60px; }
  .drawer-hero-copy h2 { font-size: 36px; }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; --mobile-nav-h: 66px; --page-pad: 14px; }
  body { padding-bottom: var(--mobile-nav-h); }
  .topbar { height: var(--header-h); grid-template-columns: 1fr auto; padding: 0 14px; }
  .primary-nav { display: none; }
  .topbar-actions { grid-column: 2; gap: 7px; }
  .topbar-actions .icon-button { display: none; }
  .global-search { width: 36px; height: 36px; }
  .global-search.is-open { left: 14px; right: 58px; width: auto; }
  .profile-button { width: 36px; height: 36px; }
  .mobile-nav { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; height: var(--mobile-nav-h); display: grid; grid-template-columns: repeat(4,1fr); padding: 6px 8px max(6px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(10,11,13,.96); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-dim); cursor: pointer; }
  .mobile-nav button.is-active { color: var(--text); background: var(--surface-3); }
  .mobile-nav svg { width: 18px; height: 18px; }
  .mobile-nav span { font-size: 9px; font-weight: 800; }
  .page { padding-top: 22px; padding-bottom: 36px; }
  .page-head { align-items: flex-start; margin-bottom: 19px; }
  .page-title { font-size: 36px; }
  .page-summary .section-meta { display: none; }
  .date-chip { min-width: 82px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card.is-featured { grid-column: auto; }
  .event-card.is-featured .event-visual, .event-visual { aspect-ratio: 16/8.8; }
  .event-card.is-featured .team-crest, .team-crest { width: 78px; height: 78px; }
  .watch-toolbar { align-items: flex-start; flex-direction: column; }
  .watch-toolbar > div:last-child { width: 100%; display: flex; justify-content: space-between; }
  .watch-shell { gap: 10px; }
  .watch-catalog { margin-top: 30px; padding-top: 24px; }
  .multiview-grid { min-height: 0; aspect-ratio: auto; grid-auto-flow: row; }
  .multiview-grid[data-layout="single"], .multiview-grid[data-layout="split"] { grid-template-columns: 1fr; grid-template-rows: none; }
  .multiview-grid[data-layout="focus-right"], .multiview-grid[data-layout="focus-top"], .multiview-grid[data-layout="quad"], .multiview-grid[data-layout="stage"] { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  .multiview-grid[data-layout="focus-right"] .feed-tile:first-child, .multiview-grid[data-layout="focus-top"] .feed-tile:first-child, .multiview-grid[data-layout="stage"] .feed-tile:first-child { grid-column: 1 / 3; grid-row: auto; }
  .multiview-grid[data-layout="stage"] .feed-tile:nth-child(4) { grid-column: 1 / 3; }
  .feed-tile { min-height: 0; aspect-ratio: 16/9; }
  .multiview-grid[data-layout="single"] .feed-tile, .multiview-grid[data-layout="split"] .feed-tile, .multiview-grid[data-layout="focus-right"] .feed-tile:first-child, .multiview-grid[data-layout="focus-top"] .feed-tile:first-child, .multiview-grid[data-layout="stage"] .feed-tile:first-child { min-height: 210px; }
  .multiview-grid[data-layout="quad"] .feed-name, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-name, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-name { display: none; }
  .multiview-grid[data-layout="quad"] .feed-head, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-head, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-head { gap: 3px; padding: 4px 5px; }
  .multiview-grid[data-layout="quad"] .feed-drag, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-drag, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-drag { width: 14px; height: 22px; }
  .multiview-grid[data-layout="quad"] .feed-number, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-number, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-number { width: 19px; height: 22px; }
  .multiview-grid[data-layout="quad"] .feed-control, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-control, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-control { width: 22px; height: 22px; }
  .multiview-grid[data-layout="quad"] .feed-status, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-status, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-status { font-size: 0; }
  .multiview-grid[data-layout="quad"] .feed-status::after, .multiview-grid[data-layout="stage"] .feed-tile:not(:first-child) .feed-status::after, .multiview-grid[data-layout^="focus-"] .feed-tile:not(:first-child) .feed-status::after { content: "Live"; font-size: 8px; }
  .feed-head { opacity: 1; }
  .watch-list { grid-template-columns: 1fr; }
  .cinema-hero { min-height: 520px; }
  .cinema-backdrop { object-position: 62% center; }
  .cinema-hero::before { background: linear-gradient(to top, var(--bg) 0%, rgba(6,7,9,.68) 54%, rgba(6,7,9,.15)), linear-gradient(90deg, rgba(6,7,9,.75), transparent); }
  .cinema-copy { align-self: flex-end; width: 100%; padding: 80px 18px 72px; }
  .cinema-title { font-size: 48px; }
  .cinema-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cinema-content { margin-top: -36px; }
  .media-row { grid-auto-columns: minmax(142px,43vw); }
  .continue-row { grid-auto-columns: minmax(250px,78vw); }
  .media-card-overlay { opacity: 1; transform: none; }
  .tv-shell { grid-template-columns: 1fr; }
  .tv-sidebar { display: flex; gap: 6px; overflow-x: auto; }
  .tv-sidebar, .date-rail, .filter-row { scrollbar-width: none; }
  .tv-sidebar::-webkit-scrollbar, .date-rail::-webkit-scrollbar, .filter-row::-webkit-scrollbar { display: none; }
  .tv-side-title { display: none; }
  .tv-category { min-width: max-content; grid-template-columns: 18px auto; padding: 0 11px; }
  .tv-category small { display: none; }
  .tv-player-title span { display: none; }
  .tv-player-foot { align-items: center; }
  .tv-program strong { font-size: 14px; }
  .tv-channel-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .epg-grid { border: 0; background: transparent; overflow: visible; }
  .epg-toolbar { min-width: 0; margin-bottom: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .epg-row.epg-times { display: none; }
  .epg-row { min-width: 0; grid-template-columns: 1fr; margin-bottom: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .epg-cell { min-height: 55px; border-right: 0; border-bottom: 1px solid var(--line); }
  .epg-cell.program { border-right: 0; border-bottom: 1px solid var(--line); }
  .epg-cell.program:last-child { border-bottom: 0; }
  .epg-cell:last-child { border-bottom: 0; }
  .epg-cell.channel { position: static; min-height: 45px; background: var(--surface-raised); }
  .epg-cell.program:nth-child(n+4) { display: none; }
  .detail-drawer { grid-template-columns: 1fr; padding-top: 8vh; }
  .drawer-scrim { position: absolute; inset: 0; }
  .drawer-panel { position: relative; z-index: 1; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 12px 12px 0 0; }
  .drawer-hero { min-height: 260px; }
  .drawer-hero-copy h2 { font-size: 30px; }
}

.native-grid[data-layout="single"] { width: min(100%, 140vh, 1600px); min-height: 0; aspect-ratio: auto; margin-inline: auto; isolation: isolate; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.native-grid[data-layout="single"] .native-feed { min-height: 0; grid-template-rows: minmax(0, auto) 28px; border-color: var(--line-strong); border-radius: var(--radius); box-shadow: 0 22px 64px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.025); }
.native-grid[data-layout="single"] .native-video-stage { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }

.watch-page.is-theatre .native-grid[data-layout="single"] .native-feed, .watch-page:fullscreen .native-grid[data-layout="single"] .native-feed { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.watch-page.is-theatre .native-grid[data-layout="single"] .native-video-stage, .watch-page:fullscreen .native-grid[data-layout="single"] .native-video-stage { width: 100%; aspect-ratio: auto; }

@media (max-width: 720px) {
  .native-grid[data-layout="single"] { width: 100%; aspect-ratio: auto; }
  .native-grid[data-layout="single"] .feed-tile { min-height: 0; }
  .native-movie-mount { padding: 10px 0 0; }
  .native-movie-player { width: 100%; border-left: 0; border-right: 0; border-radius: 0; }
  .native-movie-video { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .tv-discovery { margin-left: -4px; margin-right: -4px; padding: 11px; }
  .tv-discovery-row { align-items: stretch; flex-direction: column; }
  .tv-discovery-row .library-search { width: 100%; }
  .native-tv-player { width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; }
  .native-tv-stage { border-left: 0; border-right: 0; border-radius: 0; }
  .watch-page.is-theatre .watch-toolbar, .watch-page:fullscreen .watch-toolbar { min-height: 52px; }
  .watch-page.is-theatre .feed-head, .watch-page:fullscreen .feed-head { top: 52px; }
}

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