/* Appearance is shared by the TV shell, account, sign-in and companion pages. */
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]){color-scheme:dark;--bg:#0b141e;--panel:#152330;--panel2:#1d3040;--line:#344a5a;--text:#edf3f7;--muted:#b3c4d1;--amber:#c7b9f1;--amber-dim:#a89ac7;--green:#97d7c7;--mint:#173e3b;--peach:#48332b;--lilac:#302b49;--shadow:0 14px 35px #0003}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) body,:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) .login-body{background:radial-gradient(ellipse at 90% 0,#23344766,transparent 45%),var(--bg);color:var(--text)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.topbar,.sidebar){background:#101d29f5;border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.account-panel,.account-row,.login-card,.channel-card,.continue-card,.share-card,.team-card,.team-search-row,.record-row,.record-form,.search-wrap,.filter,.score-card,.game-overview,.game-stats-panel,.hidden-row,.channel-choice,.playback-activity,.user-create-panel,.admin-audit-panel,.engine-card,.catalog-field,.device-signout-selector,dialog,#share-dialog){background:var(--panel);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#0c1925;color:var(--text);border-color:#4c6273}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(input,textarea)::placeholder{color:#9aafbe}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(h1,h2,h3,h4,.brand,.now-playing h1,.browse-heading h2,.score-team-name,.score-card-main,.channel-name,.poster-card strong,.settings-nav a,.account-row strong,.temporary-password){color:var(--text)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(p,small,label,.nav-item,.connection,.topbar .text-button,.topbar .icon-button,.brand small,.poster-card small,.poster-reason,.program-time,.program-next,.guide-note,.now-playing p,.settings-note,.account-intro,.engine-note,.catalog-status,.score-card-facts,.score-card-foot,.stats-rows){color:var(--muted)!important}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.eyebrow,.rail-label,.program-kicker,.channel-arrow,.schedule-details summary,a:not([class]),.text-button:hover){color:var(--amber)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.secondary-button,.episode-button,.share-items button,.sport-tab,.sport-group,.layout-switch,.score-card-facts span,.device-tag,.guide-jump){background:var(--panel2);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.primary-button,.filter.active,.layout-switch button[aria-pressed=true]){background:#a4ded1;color:#10282b;border-color:#a4ded1}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.nav-item.active,.settings-nav a[aria-current=page]){background:linear-gradient(110deg,#3c3457,#244643);color:#fff!important;border-color:#6e8a9b}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.nav-item:hover,.secondary-button:hover,.filter:hover,.channel-tune:hover,.playback-row:hover,.playback-row:focus-visible){background:#294354;color:#fff!important}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.epg-scroll,.epg-track,.epg-program){background:#152634;color:var(--text);border-color:#3c5263}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.epg-channel,.epg-header,.epg-ruler,.epg-corner){background:#203443;color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.epg-tune,.epg-tune small,.epg-program small,.epg-tick){color:var(--muted)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) .epg-program.current{background:#21483f;border-color:#78b5a5}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.epg-program:hover,.epg-tune:hover,.epg-tune.active){background:#3c3457;color:#fff}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.score-card.is-live,.score-intro,.nascar-heading,.nascar-track,.nascar-standings,.nascar-channels){background:var(--panel2);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) .toast{background:#203746;color:#fff;border-color:#557585}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(button,input,select,textarea,a,summary):focus-visible{outline-color:#a4ded1}
:root[data-theme=light]{color-scheme:light;--bg:#f5f7f8;--panel:#fff;--panel2:#eaf0f1;--line:#c7d4d8;--text:#213743;--muted:#4e6672;--shadow:0 14px 35px #18344412}
:root[data-theme=light] body{background:var(--bg)}
/* Keep the complete bouncing mark within its layout box on web players. */
.player-loading{padding-top:44px;overflow:visible}
.player-loading-mark{overflow:visible;flex-shrink:0;margin-top:14px}
@media(prefers-reduced-motion:reduce){.player-loading-mark{animation:none!important}}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) .settings-nav{background:#122331;border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) .settings-nav a:hover{background:var(--panel2);color:#fff}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.profile-picker,.login-shell .login-card,.profile-option,.activate-card,.activate-feedback,.resume-shortcut,.game-center,.game-center-section,.game-center-tabs,.game-center-totals,.game-center-play,.sports-rankings,.user-card,.user-settings-block,.user-metric,.user-account-actions,.watch-time-panel,.watch-time-today,.admin-audit-table th,.watch-time-table th,.channel-info-now,.channel-info-program,.search-result-filters){background:var(--panel);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.game-center-play:nth-child(even),.game-center-drive-result,.stats-situation,.record-storage,.account-message,.game-center-tab[aria-selected=true],.continue-tabs button[aria-pressed=true]){background:var(--panel2);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.game-center,.sports-rankings,.profile-picker,.activate-card,.user-card) :is(strong,h2,h3){color:var(--text)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) :is(.account-message.error,.activate-feedback.error){background:#492b35;color:#ffc3c3!important;border-color:#966375}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) #more-menu .more-grid .nav-item[data-view]{background:var(--panel2);color:var(--text)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) #detail .episode-button{background:var(--panel2);color:var(--text);border-color:var(--line)}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) #detail .episode-button:hover,:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]) #detail .episode-button:focus-visible{background:#354e5f;color:#fff}

/* Shared surfaces and readable semantic colors, including nested admin cards. */
:root{--accent:var(--amber);--positive:#28765f;--danger:#ad3855}
:root:is([data-theme=dark],[data-theme=midnight],[data-theme=ctsv]){--positive:#93ddc8;--danger:#ffb0bf}
:root[data-theme] :is(.watch-time-card,.engine-header,.account-streams,.account-stream-row,.live-channel-card,.profile-choice,.continue-options){background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:none}
:root[data-theme] :is(.watch-time-card strong,.watch-time-card span,.score-value,.score-team-name,.score-card-main,.continue-copy strong){color:var(--text)}
:root[data-theme] :is(.watch-time-card small,.watch-time-card p,.engine-header p,.live-channel-tune small){color:var(--muted)}
:root[data-theme] .engine-overview{--engine-ink:var(--amber);--engine-mint:var(--positive);--engine-rose:var(--danger);--engine-soft:var(--panel2)}
:root[data-theme] .engine-header{background:var(--panel2)}
:root[data-theme] .watch-time-today{border-color:var(--amber)}
:root[data-theme] :is(.watch-time-today strong,.live-channel-action,.tv-shelf-more){color:var(--amber)}
:root[data-theme] .live-channel-favorite{background:var(--panel2);color:var(--amber);border-color:var(--line)}
:root[data-theme] .score-state.in{color:var(--positive)}
:root[data-theme] .score-card-foot strong{color:var(--amber)}
:root[data-theme] :is(.sport-tab,.sport-group)[aria-pressed=true]{background:var(--amber);border-color:var(--amber);color:#192432}
:root[data-theme=light]{--amber:#65508d;--amber-dim:#74628f;--green:#276e60;--mint:#dcefe8;--peach:#f3e4d7;--lilac:#e9e2f3}
:root[data-theme=light] :is(.sport-tab,.sport-group)[aria-pressed=true]{color:#fff}
:root[data-theme=light] :is(.secondary-button,.filter,.sport-tab,.sport-group,.settings-nav,.nav-item,.device-tag,.continue-tabs button){background:var(--panel2);color:var(--text);border-color:var(--line)}
:root[data-theme=light] :is(.topbar,.sidebar,.epg-channel,.epg-header,.epg-corner,.epg-ruler){background:var(--panel);color:var(--text);border-color:var(--line)}
:root[data-theme=light] :is(input,select,textarea,.episode-button,.engine-card,.account-panel,.user-card,.user-settings-block,.watch-time-panel,.resume-shortcut,.score-card,.score-intro,.game-center,.sports-rankings,.search-wrap,.local-dialog){background:var(--panel);color:var(--text);border-color:var(--line)}
:root[data-theme=light] :is(.epg-scroll,.epg-track,.epg-program){background:var(--panel2);color:var(--text);border-color:var(--line)}
:root[data-theme] .episode-button :is(.episode-name,.episode-summary){color:inherit}
/* Content shelves work on phones, tablets and TVs. */
body:not(.tv-mode) .tv-home-nav{display:flex}
body:not(.tv-mode) .tv-home{display:grid;gap:28px;min-width:0}
body:not(.tv-mode).tv-home-view .browse-heading{display:none}
body:not(.tv-mode) .tv-featured{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 22%;align-items:center;gap:24px;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:28px}
body:not(.tv-mode) .tv-featured-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.12;filter:blur(25px);z-index:-1}
body:not(.tv-mode) .tv-featured-copy{min-width:0}
body:not(.tv-mode) .tv-featured h3{font:750 clamp(28px,4vw,46px)/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:12px 0}
body:not(.tv-mode) .tv-featured p{font-size:14px;line-height:1.5}
body:not(.tv-mode) .tv-featured-meta{font-size:12px;display:flex;gap:12px;color:var(--muted)}
body:not(.tv-mode) .tv-featured-art{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:8px}
body:not(.tv-mode) .tv-featured-art img{width:100%;height:100%;object-fit:cover}
body:not(.tv-mode) .tv-featured-actions{display:flex;gap:8px;flex-wrap:wrap}
body:not(.tv-mode) .tv-featured-actions button{min-height:44px;padding:10px 14px}
body:not(.tv-mode) .tv-shelf{min-width:0}
body:not(.tv-mode) .tv-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
body:not(.tv-mode) .tv-shelf-heading h3{margin:0;font:700 21px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em}
body:not(.tv-mode) .tv-shelf-more{border:0;background:transparent;font-size:13px;min-height:44px;white-space:nowrap}
body:not(.tv-mode) .tv-shelf-cards{display:grid;grid-auto-flow:column;grid-auto-columns:160px;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 3px 14px;scrollbar-width:thin}
body:not(.tv-mode) .tv-shelf-cards>*{scroll-snap-align:start;min-width:0}
body:not(.tv-mode) .tv-shelf-cards>.continue-item{width:280px}
body:not(.tv-mode) .tv-shelf-cards:has(>.continue-item){grid-auto-columns:280px}
/* A channel is a compact tune target, not an oversized poster substitute. */
body:not(.tv-mode) .tv-shelf-cards:has(>.live-channel-card){grid-auto-columns:260px}
body:not(.tv-mode) .live-channel-tune{display:grid;grid-template-columns:36px minmax(0,1fr);align-content:center;column-gap:12px;row-gap:3px;min-height:100px;padding:15px 50px 15px 14px}
body:not(.tv-mode) .live-channel-mark{grid-row:1/4;align-self:center;width:36px;height:36px;background:var(--panel2);color:var(--amber)}
.live-channel-logo{grid-row:1/4;align-self:center;width:36px;height:36px;object-fit:contain;background:var(--panel2);border:1px solid var(--line);border-radius:9px}
body:not(.tv-mode) .live-channel-tune strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.tv-mode) .live-channel-tune small{font-size:11px}
body:not(.tv-mode) .live-channel-action{font-size:11px;margin:3px 0 0}
body:not(.tv-mode) .live-channel-favorite{width:36px;height:44px;top:8px;right:8px;border:0}
.recommendations-grid{align-items:start}
.recommendations-grid .recommendation-channels{margin-bottom:12px}
body:not(.tv-mode) .poster-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
/* Continue Watching uses comfortable, consistent landscape rows. */
body:not(.tv-mode) .my-library .poster-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px}
body:not(.tv-mode) .continue-item .continue-card{height:100%;min-height:140px;padding:14px 52px 14px 14px;gap:16px}
body:not(.tv-mode) .continue-art{width:68px;height:102px}
body:not(.tv-mode) .continue-copy{gap:9px;overflow:hidden}
body:not(.tv-mode) .continue-copy strong{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.tv-mode) .continue-copy small{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
body:not(.tv-mode) .continue-options{width:40px;height:44px;right:7px;top:7px;border:0;background:transparent}
body:not(.tv-mode) .continue-track{width:100%;height:4px;background:var(--line)}
body:not(.tv-mode) .continue-fill{background:var(--green)}
/* Sports: consistent scorecards, clear scores, no duplicate featured games. */
.scoreboard-page .score-intro{padding:10px 16px;margin:8px 0 12px;border-radius:12px;border:1px solid var(--line);display:flex;align-items:center;gap:6px 12px;flex-wrap:nowrap;overflow:hidden}
.scoreboard-page .score-intro h3{font:750 18px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.02em;margin:0;white-space:nowrap}
.scoreboard-page .score-intro p{font-size:12px;margin:0;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scoreboard-page .score-card{padding:12px 14px;border-radius:12px;box-shadow:none}
.scoreboard-page .score-value{font-size:20px;font-weight:750;font-variant-numeric:tabular-nums}
.scoreboard-page .score-card-play{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.scoreboard-page .score-card-foot{padding-top:8px;margin-top:8px;font-size:11px}
.scoreboard-page .score-section-head h3{font:700 18px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.score-more-finals{display:block;margin:16px auto 24px;min-height:44px}
.ticket-history{margin-top:18px}.ticket-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--amber)}
.ticket-history button{margin:12px 0}.ticket-row{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.ticket-row strong{display:block}.ticket-row p{margin:6px 0;line-height:1.5}
@media(max-width:730px){
 body:not(.tv-mode) .topbar{padding:12px 16px;gap:10px;flex-wrap:nowrap}
 body:not(.tv-mode) .brand-logo{width:40px;height:46px}
 body:not(.tv-mode) .brand small{display:none}
 body:not(.tv-mode) .top-actions{gap:8px;justify-content:flex-end;flex-wrap:nowrap;min-width:0}
 body:not(.tv-mode) .top-actions :is(.connection,#refresh,.remote-link,.install-link,#logout){display:none}
 body:not(.tv-mode) .top-actions :is(.account-link,.icon-button){font-size:12px;min-height:44px;min-width:36px}
 body:not(.tv-mode) #switch-profile{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body:not(.tv-mode) .sidebar{gap:4px;padding:8px 12px;overflow-x:auto;flex-wrap:nowrap}
 body:not(.tv-mode) .sidebar .nav-item{font-size:12px;min-height:42px;padding:9px 12px;white-space:nowrap;flex:none}
 body:not(.tv-mode) .sidebar .nav-top-ten{display:none}
 body:not(.tv-mode) main{padding:20px 16px 40px}
 body:not(.tv-mode) .browse{padding-top:0}
 body:not(.tv-mode) .browse-heading{gap:12px;margin-bottom:20px}
 body:not(.tv-mode) .browse-heading h2{font:750 28px/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em;margin:8px 0}
 body:not(.tv-mode) .guide-note{font-size:12px;line-height:1.5}
 body:not(.tv-mode) .browse-heading .eyebrow{font-size:10px}
 body:not(.tv-mode) .tv-featured{padding:20px;grid-template-columns:minmax(0,1fr) 72px;gap:12px}
 body:not(.tv-mode) .tv-featured .eyebrow{font-size:9px;letter-spacing:.12em}
 body:not(.tv-mode) .tv-featured p{font-size:12px;margin:10px 0 16px}
 body:not(.tv-mode) .tv-featured h3{font-size:29px}
 body:not(.tv-mode) .tv-featured-actions .secondary-button{display:none}
 body:not(.tv-mode) .tv-featured-actions .primary-button{font-size:12px;padding:10px 12px}
 body:not(.tv-mode) .tv-featured-art{align-self:start;margin-top:20px}
 body:not(.tv-mode) .tv-home{gap:24px}
 body:not(.tv-mode) .tv-home>.tv-shelf:nth-of-type(n+7){display:none}
 body:not(.tv-mode) .poster-grid:not(.my-library .poster-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
 body:not(.tv-mode) .poster-card strong{font-size:13px;line-height:1.35}
 body:not(.tv-mode) .poster-card small{font-size:11px}
 body:not(.tv-mode) .account-streams:not([hidden]){display:block;padding:12px 14px;margin-bottom:18px;background:var(--panel);border-color:var(--line);border-radius:12px}
 .account-streams-head{cursor:pointer;list-style:none;min-height:36px}
 .account-streams-head::-webkit-details-marker{display:none}
 .account-streams-head .eyebrow{display:none}
 .account-streams-head h2{font:650 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
 .account-streams-head h2:after{content:' ▾';color:var(--muted)}
 .account-streams[open] .account-streams-list{margin-top:12px}
 .account-streams:not([open])>.account-streams-list{display:none}
 .scoreboard-page .sports-tabs,.scoreboard-page .sports-groups{gap:6px;padding-bottom:8px;margin-bottom:8px}
 .scoreboard-page :is(.sport-tab,.sport-group){font-size:12px;min-height:40px;padding:8px 13px;white-space:nowrap}
 .scoreboard-page .score-grid{grid-template-columns:1fr;gap:10px}
 .scoreboard-page .score-card{padding:15px}
 .scoreboard-page .score-team-name{font-size:14px}
 .scoreboard-page .score-intro{padding:16px}
 .scoreboard-page .score-intro h3{font-size:22px}
 .scoreboard-page .score-alert-toggle{min-height:36px;font-size:11px;padding:6px 10px}
 .account-shell .engine-layout{padding:16px;gap:14px}
 .account-shell .engine-card{padding:18px}
 .account-shell .engine-header{padding:22px 18px}
 .account-shell .engine-header h2{font-size:30px}
 .account-shell .account-panel{border-radius:16px}
}
@media(prefers-reduced-motion:reduce){.tv-shelf-cards{scroll-behavior:auto!important}}

.account-streams:not([open])>.account-streams-list{display:none}
.account-streams-head{list-style:none;cursor:pointer}
.account-streams-head h2:after{content:' ▾';color:var(--muted)}
@media(max-width:730px){body:not(.tv-mode) .top-actions #open-search{font-size:26px;min-width:40px}.account-streams-head h2:after{content:' ▾'}}
body[data-view=continue] .library-section:first-of-type{margin-top:0;padding-top:0;border-top:0}
body[data-view=continue] .library-section:first-of-type>h3{display:none}
.local-dialog>.text-button{display:inline-flex;align-items:center;justify-content:center;color:var(--text);padding:8px 18px;border:1px solid var(--line);border-radius:8px}
:root[data-theme] .score-value{color:var(--text)}
@media(max-width:730px){
 body.account-page .topbar{height:auto;min-height:82px;flex-wrap:wrap;padding:14px 16px 10px;row-gap:10px}
 body.account-page .top-actions{flex:1 0 100%;display:flex;justify-content:space-between;gap:10px}
 body.account-page .top-actions .account-link{display:inline-flex;align-items:center;font-size:11px;min-width:0;min-height:36px;white-space:nowrap}
 body.account-page .top-actions>a[href='/install']{display:none}
 .account-page .account-main{padding:24px 16px 40px}
 .account-page .settings-nav{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;padding:6px}
 .account-page .settings-nav a{flex:none;white-space:nowrap;font-size:12px;padding:10px}
 .account-page .engine-layout{padding:16px;gap:14px}
 .account-page .engine-card{padding:18px}
 .account-page .engine-header{padding:22px 18px}
 .account-page .engine-header h2{font-size:30px}
 .account-page .account-panel{border-radius:16px}
}
:root[data-theme=light] .topbar :is(.brand strong,.text-button,.icon-button){color:var(--text)}
:root[data-theme=light] .topbar .brand strong span{color:var(--amber)}
:root[data-theme=light] .topbar .brand small{color:var(--muted)}
:root[data-theme=light] body:not(.tv-mode) .sidebar .nav-item{color:var(--text);background:var(--panel2);border-color:var(--line)}
:root[data-theme=light] body:not(.tv-mode) .sidebar .nav-item.active{background:#65508d;color:#fff}
:root[data-theme=light] .tv-mode .sidebar .nav-item{color:var(--text)}
:root[data-theme=light] .tv-mode .sidebar .nav-item.active{color:#fff}

/* Team page shares the scoreboard page shell. */
.scoreboard-page .team-logo,.team-logo{filter:none}
/* Deliberate choices for TV updates, recommendations and friends. */
.web-update-dialog{width:min(640px,calc(100vw - 40px));padding:36px;border:1px solid var(--line);border-radius:24px;background:var(--panel);color:var(--text);box-shadow:0 28px 100px #0008;text-align:left}
.web-update-dialog::backdrop{background:#040a12c9;backdrop-filter:blur(8px)}
.web-update-dialog[hidden]{display:none}.web-update-dialog img{display:block;margin-bottom:20px;object-fit:contain}
.web-update-dialog h2{font:750 34px/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:10px 0 16px}
.web-update-dialog p{color:var(--muted);line-height:1.6;margin:0 0 24px}.web-update-dialog small{display:block;margin-top:24px;color:var(--muted)}
.update-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.update-dialog-actions button{min-height:64px;font-size:19px;font-weight:750;border-radius:12px}
.web-update-dialog button:focus-visible{outline:4px solid var(--amber);outline-offset:5px;box-shadow:0 0 0 9px var(--panel)}
.tv-mode .web-update-dialog{width:720px;padding:48px}.tv-mode .web-update-dialog h2{font-size:44px}.tv-mode .update-dialog-actions button{min-height:76px;font-size:24px}
.recommendation-card{min-width:0;display:flex;flex-direction:column;gap:10px}.recommendation-card>.poster-card{width:100%}
.recommendation-feedback{display:flex;align-items:stretch;gap:6px;min-width:0}.feedback-choice{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 6px;background:var(--panel);color:var(--text);font-size:11px;font-weight:650;line-height:1.3}
.feedback-choice[aria-pressed=true]{background:var(--panel2);border-color:var(--amber);color:var(--amber)}
.feedback-choice:focus-visible{outline:3px solid var(--amber);outline-offset:3px;background:var(--panel2)}
.tv-mode .feedback-choice{min-height:52px;font-size:13px}.tv-mode .recommendation-card .poster-art{width:100%}
#detail .recommendation-feedback{margin:18px 0;max-width:440px}#detail .feedback-choice{font-size:14px;min-height:50px}
.feedback-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}.feedback-row strong{flex:1;min-width:140px}.feedback-row>span{color:var(--muted);font-size:12px}
.friends-page{display:grid;gap:32px;min-width:0;padding-bottom:40px}.friends-page h3{font:750 23px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em;margin:0 0 14px}
.friends-search{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.friend-search-form{display:flex;align-items:end;gap:12px;max-width:680px;margin-top:20px}.friend-search-form label{display:grid;gap:8px;flex:1;font-size:13px;min-width:0}.friend-search-form input{min-height:50px;width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}
.friend-search-form button{min-height:50px}.friend-search-results{display:grid;gap:10px;margin-top:20px}.social-note{color:var(--muted);font-size:14px;line-height:1.55}
.friend-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.friend-identity{display:flex;align-items:center;gap:12px;min-width:0}.friend-identity strong{overflow-wrap:anywhere}.friend-avatar{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--lilac);border:1px solid var(--line);color:var(--amber);font-weight:800;font-size:19px}.friend-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.friend-row-actions button{min-height:44px}.friend-badge{color:var(--green);font-size:12px;font-weight:700}
.friend-recipient{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text);font:inherit;text-align:left}.friend-recipient:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.friend-recommendation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:24px}.friend-recommendation{display:grid;align-content:start;gap:12px;min-width:0}.friend-sender{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.4;color:var(--muted)}.friend-sender .friend-avatar{width:30px;height:30px;font-size:14px}.friend-dismiss{justify-self:start;min-height:44px;color:var(--muted)}
.friends-home-shelf .friend-recommendation{min-width:0}.social-modal .social-dialog-body{margin:20px 0;display:grid;gap:10px;min-width:0}
@media(max-width:730px){.friend-row{align-items:flex-start;flex-direction:column;gap:12px}.friend-row-actions{justify-content:flex-start;width:100%}.friends-search{padding:18px}.friend-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.friend-search-form{gap:8px}.friend-search-form button{padding:10px 14px}.web-update-dialog{padding:26px}.web-update-dialog h2{font-size:29px}.update-dialog-actions{gap:12px}.update-dialog-actions button{font-size:16px;min-height:56px}}

/* Account cards must theme their nested surfaces, not just the outer details. */
:root[data-theme] .user-card summary,
:root[data-theme] .user-card-body{background:var(--panel);color:var(--text);border-color:var(--line)}
:root[data-theme] .user-card[open] summary{background:var(--panel2)}
:root[data-theme] .user-card summary .user-identity-copy strong,
:root[data-theme] .user-card .user-metric strong,
:root[data-theme] .user-card .user-fact strong{color:var(--text)}
:root[data-theme] .user-card summary .user-identity-copy small,
:root[data-theme] .user-card summary .user-summary-stats,
:root[data-theme] .user-card summary .user-summary-stats>span,
:root[data-theme] .user-card .user-metric span,
:root[data-theme] .user-card .user-fact span{color:var(--muted)}
:root[data-theme] .user-card .user-settings-block,
:root[data-theme] .user-card .user-metric,
:root[data-theme] .user-card .user-account-actions{background:var(--panel2);color:var(--text);border-color:var(--line)}
:root[data-theme] .user-card :is(.user-facts,.user-mfa-row,.user-access-preferences){border-color:var(--line)}
:root[data-theme] .user-card :is(.user-limit-form button,.user-password-form button,.user-account-buttons button){background:var(--panel);color:var(--text);border-color:var(--line)}
:root[data-theme] .user-card summary .user-status.is-active,
:root[data-theme] .user-card .user-restore-button{background:var(--mint);color:var(--positive);border-color:var(--positive)}
:root[data-theme] .user-card summary .user-status.is-suspended,
:root[data-theme] .user-card :is(.user-delete-button,.user-warning-button){background:var(--peach);color:var(--danger);border-color:var(--danger)}
:root[data-theme] .user-card summary .user-chevron{color:var(--amber)}
:root[data-theme] .user-card summary .user-avatar{background:var(--panel2);color:var(--text)}
:root[data-theme] .user-create-panel strong{color:var(--text)}
:root[data-theme] .watch-time-details summary{color:var(--amber)}
:root[data-theme] .watch-time-details{border-color:var(--line)}
:root[data-theme] .user-card :is(input:not([type=checkbox]):not([type=radio]),select){background:var(--panel);color:var(--text);border-color:var(--line)}

/* Two dark palettes share the same contrast and component coverage as Dark. */
:root[data-theme=midnight],:root[data-theme=midnight] body.tv-mode{--bg:#030509;--panel:#0a0f16;--panel2:#121923;--line:#293340;--text:#f1f5fa;--muted:#aebacb;--amber:#bfc7ff;--mint:#102d2b;--lilac:#24253e;--shadow:0 16px 40px #0009}
:root[data-theme=ctsv],:root[data-theme=ctsv] body.tv-mode{--bg:#08090b;--panel:#14171b;--panel2:#20252b;--line:#404850;--text:#f5f7f9;--muted:#b9c2cc;--amber:#f5ca60;--mint:#24362e;--lilac:#30313a;--green:#b5ddc7;--shadow:0 16px 40px #0009}
:root:is([data-theme=midnight],[data-theme=ctsv]) :is(body,.login-body){background:var(--bg)}
:root:is([data-theme=midnight],[data-theme=ctsv]) :is(.topbar,.sidebar,.epg-header,.epg-ruler,.epg-channel,.epg-corner){background:var(--panel);border-color:var(--line)}
:root:is([data-theme=midnight],[data-theme=ctsv]) :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.epg-track,.epg-program){background:var(--bg);border-color:var(--line)}
:root[data-theme=midnight] :is(.primary-button,.filter.active){background:#bfc7ff;color:#0c1021;border-color:#bfc7ff}
:root[data-theme=ctsv] :is(.primary-button,.filter.active,.theme-options button[aria-pressed=true]){background:#f5ca60;color:#18150c;border-color:#f5ca60}
:root[data-theme=ctsv] .topbar{border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#bc263e 0 5%,#d9b64f 5% 10%,#426bab 10% 15%,#333a42 15%) 1}
:root[data-theme=ctsv] .brand-copy::after{content:"CTS-V";display:block;color:#f5ca60;font:800 9px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.28em;margin-top:3px}
:root[data-theme=ctsv] .nav-item.active{background:linear-gradient(120deg,#3c3320,#22282e)!important;box-shadow:inset 0 -3px #f5ca60}
:root[data-theme=ctsv] :is(.tv-featured,.resume-shortcut,.account-panel#appearance-preferences){background-image:linear-gradient(90deg,#11151b 30%,#11151b80),var(--ctsv-art);background-size:cover,auto 90%;background-position:center,right center;background-repeat:no-repeat}
:root[data-theme=ctsv] .poster-art{border-color:#4c545d}
:root[data-theme=ctsv] .tv-shelf-heading h3::before{content:"";display:inline-block;width:5px;height:.8em;transform:skew(-18deg);margin-right:10px;background:linear-gradient(#bc263e 0 33%,#d9b64f 33% 66%,#426bab 66%)}
.theme-options{display:flex;flex-wrap:wrap;gap:12px}
.theme-options button{min-width:100px;min-height:48px}

/* Compact header and a quiet, directional profile panel. */
.topbar .top-actions{margin-left:auto;flex-wrap:nowrap;gap:12px}
.topbar .connection,.topbar #remote-indicator{display:none!important}
button.profile-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:linear-gradient(145deg,var(--panel2),var(--panel));color:var(--text);cursor:pointer}
.profile-monogram{font:700 16px/1 system-ui;letter-spacing:.04em}
.profile-menu{position:fixed;inset:84px 24px auto auto;margin:0;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 110px);padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #0007;overflow:auto}
.profile-menu[open]{animation:profile-arrive 160ms ease-out}
.profile-menu::backdrop{background:#030a1266}
.profile-menu-heading{padding:0 8px 16px;border-bottom:1px solid var(--line);margin-bottom:10px}
.profile-menu-name{font:600 26px/1.25 system-ui;margin:8px 0 0;overflow-wrap:anywhere}
.profile-menu-actions{display:grid;gap:5px}
.profile-menu-action,.profile-menu-dismiss{display:flex;align-items:center;min-height:48px;width:100%;padding:12px 14px;border:0;border-radius:12px;background:transparent;color:var(--text);text-align:left;text-decoration:none;font:600 15px/1.3 system-ui;cursor:pointer}
.profile-menu-action:hover,.profile-menu-dismiss:hover{background:var(--panel2)}
.profile-menu-dismiss{margin-top:8px;border-top:1px solid var(--line);color:var(--muted)}
#profile-menu :is(#logout,#account-logout){color:var(--muted)}
:is(button.profile-avatar,.profile-menu-action,.profile-menu-dismiss,button,a){transition:background-color 140ms ease,box-shadow 140ms ease,transform 140ms ease}
:is(button,a,summary,input,select,textarea):not(.multi-select):focus-visible{outline:2px solid var(--amber)!important;outline-offset:-3px!important;box-shadow:inset 0 -4px 0 var(--amber),inset 0 0 22px #b8a4e52b!important}
/* Keep the featured Play selection distinct from its light/gold idle fill. */
:root .tv-featured .tv-featured-actions .primary-button:focus-visible{background:#123e4a;border-color:#5eeaff;color:#fff;outline:4px solid #5eeaff!important;outline-offset:3px!important;box-shadow:0 0 0 7px #071724!important}
:is(button,a):active{transform:translateY(1px)}
@keyframes profile-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:730px){body.account-page .topbar{flex-wrap:nowrap}body.account-page .top-actions{flex:0 1 auto;margin-left:auto;gap:12px}.profile-menu{top:76px;right:16px}button.profile-avatar{width:44px;height:44px;flex-basis:44px}.topbar .brand small{display:none}}
@media(prefers-reduced-motion:reduce){.profile-menu[open]{animation:none}:is(button.profile-avatar,.profile-menu-action,.profile-menu-dismiss,button,a){transition:none}}

#profile-menu #switch-profile{max-width:none;overflow:visible;white-space:normal}

/* Replace stale search results with one quiet, bounded loading surface. */
#content-list[hidden],#search-results-loading[hidden]{display:none!important}
.search-results-loading{display:grid;place-items:center;min-height:280px;width:100%;color:var(--text)}
.search-results-loading .search-spinner{width:44px;height:44px;border-width:3px;border-color:var(--line);border-top-color:var(--amber)}
@media(prefers-reduced-motion:reduce){.search-results-loading .search-spinner{animation:none;border-style:dotted}}

/* One compact navigation row; the middle rail scrolls without moving the ends. */
body.has-inline-nav .layout{display:block}
body.has-inline-nav .topbar{display:flex;flex-wrap:nowrap;gap:20px;height:76px;min-height:76px;padding:8px clamp(16px,2.5vw,40px);border-bottom:1px solid var(--line)}
body.has-inline-nav .topbar>.brand{flex:none;gap:10px}
body.has-inline-nav .topbar>.sidebar{position:static;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;gap:4px;min-width:0;width:auto;height:58px;min-height:0;padding:3px;margin:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;background:transparent;border:0;box-shadow:none;scrollbar-width:none}
body.has-inline-nav .topbar>.sidebar::-webkit-scrollbar{display:none}
body.has-inline-nav .sidebar :is(.rail-label,.rail-note){display:none}
body.has-inline-nav .sidebar .nav-item{flex:none;width:auto;min-height:46px;padding:10px 13px;gap:8px;white-space:nowrap;font-size:calc(14px * var(--tv-text,1))}
body.has-inline-nav .sidebar .nav-item>span:not(.rank-badge){width:auto}
body.has-inline-nav .topbar>.top-actions{flex:none;margin-left:0;gap:10px}
body.has-inline-nav .topbar .brand small{display:none}
body.has-inline-nav main{max-width:none}
@media(max-width:1100px){body.has-inline-nav .topbar{gap:10px}body.has-inline-nav .brand-copy{display:none}body.has-inline-nav #open-search .tv-search-label{display:none}body.has-inline-nav.tv-mode #open-search{min-width:44px}}
@media(max-width:730px){body.has-inline-nav .topbar{height:68px;min-height:68px;padding:6px 12px;gap:8px}body.has-inline-nav .topbar .brand-logo{width:38px;height:42px}body.has-inline-nav .sidebar .nav-item{font-size:12px;padding:10px;gap:5px}body.has-inline-nav .topbar>.top-actions{gap:4px}body.has-inline-nav .topbar>.sidebar{height:54px}}

/* Live matches carry a visual and a channel identity, just like the catalog. */
/* Keep the library menu visible on phones instead of beyond a hidden rail. */
@media(max-width:730px){
  body.has-inline-nav:not(.tv-mode) .topbar{height:auto;min-height:112px;flex-wrap:wrap;gap:4px 8px}
  body.has-inline-nav:not(.tv-mode) .topbar>.top-actions{margin-left:auto}
  body.has-inline-nav:not(.tv-mode) .topbar>.sidebar{order:2;flex:0 0 100%;width:100%;height:auto;min-height:48px;padding:0;gap:4px;overflow-x:auto;mask-image:none;-webkit-mask-image:none}
  body.has-inline-nav:not(.tv-mode) .sidebar .nav-item{flex:1 1 0;min-width:0;justify-content:center;padding:8px 4px}
  body.has-inline-nav:not(.tv-mode) .sidebar :is([data-view="top-ten"],[data-view="for-you"],[data-view="continue"]){display:none}
  body:not(.tv-mode) .tv-featured{grid-template-columns:minmax(0,1fr);min-height:0;padding:24px;gap:16px}
  body:not(.tv-mode) .tv-featured-art{display:none}
  body:not(.tv-mode) .tv-featured-actions{display:flex;flex-wrap:wrap;gap:10px}
  body:not(.tv-mode) .tv-featured-actions .secondary-button{display:inline-flex}
}
.search-best-cards>.search-live-item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;overflow:hidden;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;text-align:left;min-width:0}
.search-live-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:2/3;overflow:hidden;background:radial-gradient(circle at 50% 35%,var(--panel2),var(--bg))}
.search-live-monogram{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:14px;background:var(--panel2);border:1px solid var(--line);color:var(--text);font-size:22px;font-weight:700;letter-spacing:.06em}
.search-channel-logo{position:absolute;width:72%;height:46%;object-fit:contain;padding:10px;border-radius:12px;background:var(--panel2);filter:drop-shadow(0 2px 8px #0007)}
.search-program-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.search-live-art.has-program-art .search-channel-logo{inset:auto 8px 8px auto;width:42%;height:20%;padding:6px;border-radius:8px;background:#ffffffed;filter:none}
.search-live-art.has-program-art .search-live-monogram{visibility:hidden}
.search-live-copy{display:grid;gap:5px;padding:13px}
.search-live-copy strong{font-size:15px;color:var(--text)}
.search-live-copy .search-result-type{color:var(--amber);font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.search-program-title{font-size:13px;color:var(--muted);line-height:1.4}

/* Compact readiness orbit; no bottom-center loading strip. */
#buffer-panel{position:absolute;left:auto;right:24px;bottom:24px;transform:none;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:116px;width:auto;max-width:180px;padding:10px;border:0;border-radius:18px;background:#071019a8;box-shadow:none;pointer-events:none;color:#f1f7f8;z-index:19}
#buffer-panel[hidden]{display:none!important}
#buffer-status{font-size:14px;font-weight:650;color:#f1f7f8!important;white-space:nowrap}
#buffer-speed{font-size:12px;color:#c8d7dd!important}
.loading-orbit{position:relative;width:80px;height:80px;display:grid;place-items:center}
.loading-orbit svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:3;transform:rotate(-90deg);animation:loading-orbit-turn 4s linear infinite}
.loading-orbit .loading-track{stroke:#59717b66}
#loading-progress-ring{stroke:#a4ded1;stroke-linecap:round;transition:stroke-dasharray .2s linear}
.loading-orbit img{width:48px;height:48px;object-fit:contain;animation:loading-logo-turn 4s linear infinite}
.player-loading .player-loading-mark,.player-loading>strong,.player-loading-track{display:none!important}
#player-loading-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@keyframes loading-orbit-turn{to{transform:rotate(270deg)}}
@keyframes loading-logo-turn{0%{transform:rotate(0) scale(.94);opacity:1}50%{transform:rotate(180deg) scale(1.04);opacity:.8}100%{transform:rotate(360deg) scale(.94);opacity:1}}
.movie-trailer-dialog{width:min(1100px,94vw);max-width:94vw;padding:18px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;overflow:auto}
.movie-trailer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px}
.movie-trailer-frame{display:block;width:100%;height:clamp(200px,65vh,620px);border:0;background:#000}
@media(prefers-reduced-motion:reduce){.loading-orbit svg,.loading-orbit img{animation:none}#loading-progress-ring{transition:none}}
@media(max-width:730px){#buffer-panel{right:12px;bottom:12px;min-width:96px;padding:8px}.loading-orbit{width:66px;height:66px}.movie-trailer-head{align-items:flex-start}.movie-trailer-head strong{font-size:14px}.movie-trailer-head button{min-height:44px}}

.list-actions>button[hidden]{display:none!important}

/* Widescreen browser hero: on wide displays the continue-watching banner
   keeps its copy column capped and lets the blurred poster backdrop fill
   the middle instead of reading as a void. */
@media(min-width:1240px){
  body:not(.tv-mode) .tv-featured{grid-template-columns:minmax(320px,min(620px,42%)) minmax(0,1fr);gap:clamp(24px,3vw,40px);padding:34px 38px;min-height:440px}
  body:not(.tv-mode) .tv-featured-backdrop{opacity:.55;filter:blur(22px) saturate(.9);transform:scale(1.2)}
  :root[data-theme=light] body:not(.tv-mode) .tv-featured-backdrop{opacity:.32}
  body:not(.tv-mode) .tv-featured-copy{position:relative;z-index:2;max-width:620px}
  body:not(.tv-mode) .tv-featured-art{position:relative;z-index:2;justify-self:end;width:min(100%,clamp(260px,16vw,420px))}
  body:not(.tv-mode) .tv-featured-art img{box-shadow:0 26px 48px #000a;border:1px solid #ffffff30}
  body:not(.tv-mode) .tv-featured h3{font-size:clamp(34px,3.4vw,52px)}
  body:not(.tv-mode) .tv-featured p{font-size:15px;max-width:52ch}
  body:not(.tv-mode) .tv-featured-actions button{min-height:48px;padding:12px 18px;font-size:14px}
}
