/* Reviewable presentation layer. Existing navigation and playback own behavior. */
html:root body.sl-layout-polish{--lp-panel:#191919;--lp-cell:#242424;--lp-ink:#f4f4f4;--lp-muted:#bcbcbc;--lp-line:#ffffff12;--lp-focus:#fff}
html:root[data-theme=light] body.sl-layout-polish{--lp-panel:#f4f4f4;--lp-cell:#e9e9e9;--lp-ink:#242424;--lp-muted:#595959;--lp-line:#00000012;--lp-focus:#262626}
/* Give the schedule the space formerly occupied by the oversized hero. */
@media(min-width:801px){
 html:root body.sl-layout-polish.sl-guide-polish:not(.movies-view):not(.sl-guide-tiles) .browse-panel>#featured{grid-template-columns:220px minmax(0,1fr)!important;gap:10px 20px!important;padding:12px 16px 6px!important;margin-bottom:0!important}
 html:root body.sl-layout-polish:not(.movies-view):not(.sl-guide-tiles) #featuredArt{height:124px!important;max-height:124px!important;min-height:0!important;border-radius:12px!important}
 html:root body.sl-layout-polish:not(.movies-view) #featured .featured-copy{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important}
 html:root body.sl-layout-polish:not(.movies-view) #featuredTitle{font-size:24px!important;line-height:1.15!important;margin:4px 0 5px!important}
 html:root body.sl-layout-polish:not(.movies-view) #featuredMeta{font-size:14px!important;line-height:1.4!important;-webkit-line-clamp:1!important}
 html:root body.sl-layout-polish.lp-details-expanded:not(.movies-view) #featuredMeta{-webkit-line-clamp:unset!important;display:block!important;overflow:visible!important}
 html:root body.sl-layout-polish:not(.movies-view) .preview-action-row{min-height:40px!important;gap:6px!important;margin-top:8px!important}
 html:root body.sl-layout-polish:not(.movies-view) .preview-action-row :is(.preview-icon-action,#featuredFullscreen){width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
 html:root body.sl-layout-polish:not(.movies-view) .featured-search{height:40px!important;min-height:40px!important}
 html:root body.sl-layout-polish .preview-guide-controls{gap:3px!important}
 html:root body.sl-layout-polish .guide-row{min-height:78px!important}
}
.lp-description-toggle{border:0;background:transparent;color:var(--lp-muted);padding:4px 0;font-size:12px;font-weight:650;text-align:left;cursor:pointer}
.lp-description-toggle:hover{color:var(--lp-ink)}
.lp-description-toggle[hidden]{display:none!important}
/* Solid cells with a restrained genre cue; station artwork stays in color. */
html:root body.sl-layout-polish #channelArea .guide-row .program-info{background:var(--lp-cell)!important;border:0!important;border-left:3px solid var(--lp-genre,#a4a4a4)!important;box-shadow:none!important;filter:none!important;border-radius:7px!important;color:var(--lp-ink)!important}
html:root body.sl-layout-polish #channelArea .guide-row .program-info strong{color:var(--lp-ink)!important;font-size:14px!important}
html:root body.sl-layout-polish #channelArea .guide-row .program-info small{color:var(--lp-muted)!important;font-size:12px!important}
.sl-layout-polish .genre-news{--lp-genre:#7ba9cf}.sl-layout-polish .genre-sports{--lp-genre:#83b49b}.sl-layout-polish .genre-entertainment{--lp-genre:#b797c6}.sl-layout-polish .genre-movies{--lp-genre:#c9ab77}.sl-layout-polish .genre-kids{--lp-genre:#cc9c9c}.sl-layout-polish .genre-documentary{--lp-genre:#86b7b2}.sl-layout-polish .genre-music{--lp-genre:#b8a1ce}
/* Flatten nested shells, preserving distinct buttons and strong focus. */
html:root body.sl-layout-polish :is(.browse-panel,#featured,.guide-section,.category-dock,.preview-control-grid,.home-media-row){border-color:transparent!important;box-shadow:none!important;background:transparent!important;backdrop-filter:none!important}
html:root body.sl-layout-polish #channelArea .guide-row{border:0!important;border-bottom:1px solid var(--lp-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:2px 8px!important}
html:root body.sl-layout-polish :is(.program-cell,.guide-timebar,.guide-timebar b,.guide-head){border-color:transparent!important}
html:root body.sl-layout-polish .guide-head{background:transparent!important;box-shadow:none!important}
html:root body.sl-layout-polish :is(.view-switch,.guide-lineup-switch){border:0!important;box-shadow:none!important;background:var(--lp-cell)!important;border-radius:10px!important;padding:3px!important;gap:3px!important}
html:root body.sl-layout-polish :is(.channel-tile,.sl-media-copy,.sl-live-copy){border-color:transparent!important;box-shadow:none!important}
html:root body.sl-layout-polish :is(.channel-tile,.guide-row,.program-info,.lp-description-toggle):focus-visible{outline:3px solid var(--lp-focus)!important;outline-offset:-3px!important;transform:none!important}
/* Keep the active destination readable; focused labels float without shifting siblings. */
@media(min-width:801px){
 html:root body.sl-layout-polish .topbar .nav-link.is-active{width:auto!important;min-width:44px!important;flex:0 0 auto!important;gap:8px!important;padding-inline:12px!important}
 html:root body.sl-layout-polish .topbar .nav-link.is-active>span{position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;font-size:13px!important;line-height:1!important}
 html:root body.sl-layout-polish .topbar .nav-link{position:relative;overflow:visible!important}
 html:root body.sl-layout-polish .topbar .nav-link:not(.is-active):focus-visible>span{position:absolute!important;clip:auto!important;clip-path:none!important;width:max-content!important;max-width:130px!important;height:auto!important;left:50%;top:calc(100% + 8px);transform:translateX(-50%);margin:0!important;padding:7px 10px!important;background:var(--lp-cell);color:var(--lp-ink);border-radius:8px;box-shadow:0 4px 15px #0004;z-index:60;font-size:13px!important;overflow:visible!important}
 html:root body.sl-layout-polish .topbar{overflow:visible!important}
}
@media(min-width:801px) and (max-width:1180px){html:root body.sl-layout-polish .topbar{gap:8px!important;padding-inline:14px!important}html:root body.sl-layout-polish .topbar .top-search{width:100px!important;min-width:80px!important}html:root body.sl-layout-polish .topbar nav{gap:5px!important}}
/* Larger wordmarks, without cropping square logos or transparent artwork. */
html:root body.sl-layout-polish #channelArea .guide-row .channel-cell .channel-logo{width:84px!important;height:52px!important;border:0!important;border-radius:8px!important;background:#e4e4e4!important;box-shadow:none!important;overflow:hidden!important}
html:root body.sl-layout-polish #channelArea .guide-row .channel-cell .channel-logo.logo-is-light{background:#333!important}
@media(min-width:801px){html:root body.sl-layout-polish #channelArea .channel-cell{grid-template-columns:28px 84px minmax(0,1fr) 34px!important;gap:8px!important}html:root body.sl-layout-polish #channelArea .guide-row,html:root body.sl-layout-polish #guideHead{grid-template-columns:clamp(120px,12vw,160px) minmax(0,1fr)!important}}
/***** Compact playback dock with preserved targets and icon consistency. *****/
html:root body.sl-layout-polish .player-channel-controls{width:176px!important;min-width:176px!important;padding:10px!important;gap:6px!important;border-color:#ffffff16!important;box-shadow:none!important}
html:root body.sl-layout-polish .player-channel-controls .channel-step{min-height:44px!important;height:44px!important;font-size:13px!important;border-color:transparent!important;border-radius:9px!important}
html:root body.sl-layout-polish .player-channel-controls .channel-utility-controls{gap:6px!important;grid-template-columns:repeat(3,44px)!important;justify-content:center!important}
html:root body.sl-layout-polish .player-channel-controls .channel-utility{width:44px!important;height:44px!important;border-color:transparent!important;border-radius:9px!important}
html:root body.sl-layout-polish .player-channel-controls svg{width:20px!important;height:20px!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html:root body.sl-layout-polish .player-channel-controls button:focus-visible{outline:3px solid white!important;outline-offset:-3px!important}
/* Shared portrait cards: the artwork and copy have stable, independent tracks. */
html:root body.sl-layout-polish .channel-tile.sl-vod-tile{display:grid!important;grid-template-rows:minmax(0,1fr) 116px!important;aspect-ratio:2/3!important;min-height:0!important;padding:0!important;overflow:hidden!important;border-radius:16px!important;transform:none!important}
html:root body.sl-layout-polish .sl-vod-tile>.tile-art{position:relative!important;grid-row:1;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;border-radius:16px 16px 0 0!important;overflow:hidden!important;contain:paint;transform:none!important}
html:root body.sl-layout-polish .sl-vod-tile>.sl-media-copy{grid-row:2;margin:0!important;min-height:0!important;height:116px!important;padding:12px!important;gap:5px!important;background:var(--lp-panel)!important}
html:root body.sl-layout-polish .sl-vod-tile .sl-media-copy>strong{font-size:15px!important;min-height:2.6em!important}
html:root body.sl-layout-polish .sl-vod-tile .sl-media-copy>small{font-size:11px!important;letter-spacing:.05em!important}
html:root body.sl-layout-polish .sl-vod-tile .tile-description{font-size:12px!important;-webkit-line-clamp:1!important;min-height:0!important}
html:root body.sl-layout-polish .sl-vod-tile>.tile-art>:is(#previewVideo,#video.main-player-preview){height:100%!important;border-radius:inherit!important;clip-path:inset(0 round 16px 16px 0 0)!important}
html:root body.sl-layout-polish .home-vod-tile{height:auto!important;aspect-ratio:2/3!important}
.lp-watch-progress{position:absolute;left:12px;right:12px;bottom:8px;height:4px;overflow:hidden;border-radius:4px;background:#ffffff30;pointer-events:none;z-index:6}
.lp-watch-progress>i{display:block;height:100%;background:var(--accent);border-radius:inherit}
.lp-watch-progress[hidden]{display:none!important}
html:root body.sl-layout-polish .tmdb-discovery-card{border-color:transparent!important;box-shadow:none!important;border-radius:16px!important}
@media(max-width:800px){html:root body.sl-layout-polish #channelArea .guide-row .channel-cell .channel-logo{width:42px!important;height:36px!important}.sl-layout-polish .lp-description-toggle{display:none!important}html:root body.sl-layout-polish .player-channel-controls{width:156px!important;min-width:156px!important}html:root body.sl-layout-polish .sl-vod-tile>.sl-media-copy{height:108px!important;padding:10px!important}html:root body.sl-layout-polish .channel-tile.sl-vod-tile{grid-template-rows:minmax(0,1fr) 108px!important}html:root body.sl-layout-polish .sl-vod-tile .sl-media-copy>strong{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.sl-layout-polish *{scroll-behavior:auto!important}}
@media(min-width:801px){html:root body.sl-layout-polish .topbar .nav-link.is-active{min-width:110px!important;max-width:none!important;flex-basis:auto!important}html:root body.sl-layout-polish .topbar .nav-link>svg{flex-shrink:0!important}html:root body.sl-layout-polish .topbar .nav-link.is-active>span{flex-shrink:0!important}}
html:root body.sl-layout-polish .browse-panel{border:0!important;box-shadow:none!important;border-radius:0!important}
html:root body.sl-layout-polish .browse-panel>#featured{border:0!important;box-shadow:none!important;border-radius:0!important}
html:root body.sl-layout-polish.movies-view .lp-description-toggle{display:none!important}
@media(min-width:801px){html:root body.sl-layout-polish .topbar :is(#lpUnusedSpecificity,.nav-link).is-active{width:auto!important;min-width:110px!important;max-width:none!important;flex:0 0 auto!important;padding-inline:12px!important;gap:8px!important}}
html:root body.sl-layout-polish .channel-tile.sl-vod-tile{grid-template-columns:minmax(0,1fr)!important}
html:root body.sl-layout-polish .sl-vod-tile>:is(.tile-art,.sl-media-copy){grid-column:1!important}
html:root body.sl-layout-polish .lp-description-row{display:flex;align-items:flex-start;gap:12px;min-width:0}
html:root body.sl-layout-polish .lp-description-row>#featuredMeta{flex:1;min-width:0;margin:0!important}
html:root body.sl-layout-polish .lp-description-toggle{flex:none;line-height:20px;padding:0!important}
html:root body.sl-layout-polish:not(.movies-view) .lp-description-row{max-width:760px}
html:root body.sl-layout-polish .topbar .nav-link:focus-visible::before{display:none!important}
@media(min-width:801px) and (max-width:1100px){html:root body.sl-layout-polish .topbar .streamline-wordmark{display:none!important}html:root body.sl-layout-polish .topbar .brand{min-width:28px!important;width:28px!important;flex:0 0 28px!important}html:root body.sl-layout-polish .topbar .brand-mark{margin:0!important}html:root body.sl-layout-polish .topbar nav{margin-left:4px!important}}
html:root body.sl-layout-polish.compact-timeline-guide #channelArea .channel-cell{display:flex!important;align-items:center;justify-content:center;padding:6px!important}
@media(min-width:801px){html:root body.sl-layout-polish .topbar nav{overflow:visible!important}}
/* Preserve the full poster above the shared text track. */
html:root body.sl-layout-polish .channel-tile.sl-vod-tile{aspect-ratio:auto!important;grid-template-rows:auto 116px!important}
html:root body.sl-layout-polish .sl-vod-tile>.tile-art{aspect-ratio:2/3!important;height:auto!important}
@media(max-width:800px){html:root body.sl-layout-polish .channel-tile.sl-vod-tile{grid-template-rows:auto 108px!important}}
html:root body.sl-layout-polish .player-channel-controls .channel-utility:has(>span){grid-column:1/-1!important;width:100%!important;min-width:0!important;height:38px!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;font-size:11px!important;white-space:nowrap!important}
html:root body.sl-layout-polish .player-channel-controls .channel-utility>span{white-space:nowrap!important;text-transform:none!important}
html:root body.sl-layout-polish .player-channel-stack{width:100%!important;max-width:none!important;gap:6px!important}
html:root body.sl-layout-polish .player-channel-controls .channel-step{width:100%!important;max-width:none!important;gap:8px!important;padding-inline:8px!important}
html:root body.sl-layout-polish .player-channel-controls .channel-step>span{white-space:nowrap!important}
html:root body.sl-layout-polish .player-channel-controls svg{flex-shrink:0!important}
@media(max-width:800px){html:root body.sl-layout-polish .player-channel-controls{width:168px!important;min-width:168px!important}}
html:root body.sl-layout-polish .home-media-row{scroll-margin-top:120px}
@media(min-width:801px){html:root body.sl-layout-polish #guideHead{margin-inline:clamp(24px,3vw,52px)!important;width:auto!important;padding-inline:8px!important}}
/* Optional device actions retain the application's availability rules. */
html:root body.sl-layout-polish .player-channel-controls .channel-utility[hidden]{display:none!important}
/* Discover uses the same poster/copy tracks as Movies, Series and Collections. */
html:root body.sl-layout-polish .sl-discover-tile>.tmdb-discovery-copy{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-content:start!important;flex:none!important}
html:root body.sl-layout-polish .sl-discover-tile .tmdb-discovery-actions{position:absolute!important;inset:auto 12px 12px!important;margin:0!important;padding:0!important;z-index:7}
html:root body.sl-layout-polish .sl-discover-tile .tmdb-discovery-actions>button:not(.tmdb-online-play){flex:none;background:var(--lp-panel);color:var(--lp-ink);border-color:var(--lp-line);min-height:36px}
html:root body.sl-layout-polish .sl-discover-tile .lp-discover-description:not([hidden]){position:absolute;inset:auto 0 0;z-index:8;display:block;margin:0;padding:14px;max-height:70%;overflow:auto;background:var(--lp-panel);color:var(--lp-ink);font-size:12px;line-height:1.5;white-space:normal;overscroll-behavior:contain;border-top:1px solid var(--lp-line)}
html:root body.sl-layout-polish .sl-discover-tile .tile-more{z-index:9}
html:root body.sl-layout-polish .sl-discover-tile .tile-play{display:none!important}
