/* Mobile presentation only. Desktop styling remains in style.css. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
.mobile-navigation,.mobile-guide,.mobile-transport,.mobile-player-tools{display:none}
[hidden]{display:none!important}
dialog:not([open]){display:none!important}
.platform-button[aria-pressed=true]{color:#c6b0ff;border-color:#ad90ef88}
.platform-status{font-size:11px;line-height:1.7;color:#b7a7d0;margin:10px 26px}
.platform-status:empty{display:none}
.pwa-information{border-top:1px solid #ffffff14;padding-top:20px;margin-top:20px}
.pwa-information p{font-size:12px;line-height:1.7}
.install-tip{padding:14px 16px;border:1px solid #a890e12c;background:#ac8bff0a;border-radius:16px}
.skeleton-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.skeleton-card{aspect-ratio:2/3;border-radius:16px;background:linear-gradient(110deg,#171624 25%,#252136 43%,#171624 62%);background-size:250% 100%;animation:skeleton-shimmer 1.8s linear infinite}.skeleton-label{font-size:13px;color:#b9a7d3}.loading-library{padding:20px 0}.skeleton-grid .skeleton-card:nth-child(n+5){display:none}@keyframes skeleton-shimmer{to{background-position:-160% 0}}
@media(max-width:800px), (max-width:1000px) and (max-height:550px){
 html{scroll-padding-top:calc(90px + var(--safe-top));-webkit-text-size-adjust:100%}
 body{font-family:-apple-system,BlinkMacSystemFont,'DM Sans',sans-serif;padding-bottom:calc(100px + var(--safe-bottom));overflow-x:clip;background:#08090e}
 body:has(dialog[open]){overflow:hidden}
 button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 input,select,textarea,dialog input:not([type=checkbox]),.search-field input,#categorySearch,#prefGroupSearch{font-size:16px!important}
 input[type=checkbox]{min-width:20px!important;min-height:20px}
 button:active{transform:scale(.97)}
 button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #c4b3ff;outline-offset:3px}
 header{height:calc(76px + var(--safe-top));padding:calc(10px + var(--safe-top)) max(16px,var(--safe-right)) 10px max(16px,var(--safe-left));gap:8px;flex-wrap:nowrap;align-content:normal;background:linear-gradient(#08090eea,#08090eb8);border-bottom:1px solid #ffffff08;-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%)}
 header>nav{display:none}
 header .brand{width:auto;height:44px;gap:6px;flex:1;min-width:0}
 header .brand-emblem{width:36px;height:24px}
 header .brand-emblem img{width:96px;left:-29px;top:-17px}
 header .brand-wordmark{font-size:18px;white-space:nowrap;letter-spacing:-.4px}
 header .brand-wordmark>span{font-size:9px;letter-spacing:.7px;margin-left:2px}
 .tools{gap:4px;height:44px;margin-left:0}
 header .icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;padding:10px}
 header #preferencesButton{font-size:23px}
 header .language-select{font-size:12px!important;min-height:44px;min-width:46px;padding:7px 4px!important;border:0!important;border-radius:14px!important;background:#ffffff06!important}
 header .source-button,header .header-terms{display:none!important}
 .mobile-navigation{position:fixed;z-index:20;bottom:calc(10px + var(--safe-bottom));left:max(12px,var(--safe-left));right:max(12px,var(--safe-right));height:68px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:3px;padding:6px;border:1px solid #ffffff24;border-top-color:#ffffff42;border-radius:28px;background:linear-gradient(155deg,#333247ad,#181725c9);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);box-shadow:0 12px 40px #0008,inset 0 1px 0 #ffffff12;isolation:isolate}
 .mobile-navigation button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;height:56px;min-width:0;min-height:44px;padding:5px 1px;border-radius:22px;font-size:10px;color:#aaa7be;position:relative;transition:background .2s,color .2s,transform .2s}
 .mobile-navigation button.active{background:linear-gradient(150deg,#b7a4ff29,#8871df15);color:#eee8ff;box-shadow:inset 0 1px 0 #ffffff22}
 .mobile-navigation button.active:after{display:none}
 .mobile-navigation svg{width:23px;height:23px;stroke-width:1.7}
 .mobile-navigation button.active svg{stroke:#c5b2ff}
 body.keyboard-open .mobile-navigation,body:has(dialog[open])>.mobile-navigation{visibility:hidden;pointer-events:none}
 .hero{height:auto;min-height:510px;max-height:none;padding-top:calc(76px + var(--safe-top))}
 .hero-copy{padding:48px 22px 50px;max-width:570px}.hero h1{font-size:clamp(39px,10vw,55px);line-height:1.06;letter-spacing:-1.8px;margin-top:25px}.hero-copy>p{font-size:15px;line-height:1.7;max-width:330px}.hero-art{opacity:.28!important}.hero-bottom,.hero-side-note{display:none}.hero-actions{flex-wrap:wrap;margin-top:26px}.hero .eyebrow{font-size:9px}.hero-meta{font-size:8px;margin-top:25px}
 .primary,.secondary{min-height:44px;border-radius:15px;font-size:13px;padding:12px 16px}
 .secondary,.category-trigger,.mobile-guide{background:linear-gradient(150deg,#ffffff0c,#ffffff04);border:1px solid #ffffff18}
 .library{padding:20px max(18px,var(--safe-right)) 25px max(18px,var(--safe-left));min-height:50dvh}
 .hero[hidden]+.library{padding-top:calc(104px + var(--safe-top));min-height:75dvh}
 .section-top{align-items:flex-start;gap:12px}.section-top .eyebrow{font-size:9px;letter-spacing:1.7px}.section-top h2{font-size:30px;line-height:1.15;margin:10px 0 24px}.section-top>#count{display:none}
 .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:22px;align-items:center}
 .search-field{width:100%;max-width:none!important;height:48px;padding:0 13px;gap:8px;border:1px solid #ffffff10;border-radius:17px;background:#ffffff04}
 .search-field input{min-width:0;height:46px;padding:0;margin:0;border-radius:0;line-height:normal}
 .search-field svg{width:17px}.category-control{max-width:none;min-width:0}.category-trigger{width:48px;height:48px;border-radius:17px;justify-content:center;padding:0}.category-trigger .category-symbol{font-size:21px}.category-trigger #categoryButtonLabel,.category-trigger .category-chevron{display:none}
 .category-trigger.filtered{background:#a78bff20;border-color:#baa3ff88}
 .active-category{min-height:36px;margin-bottom:20px;font-size:12px}.active-category button{width:30px;height:30px}
 .mobile-guide{display:inline-flex;align-items:center;gap:8px;border-radius:30px;padding:9px 15px;min-height:44px;font-size:12px;color:#c8b8e8;margin-bottom:19px}.mobile-guide svg{width:18px;height:18px}
 .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}.category{min-height:120px;padding:16px;border-radius:20px;background:linear-gradient(135deg,#1c1b2d,#12121e)!important;border-color:#ffffff10}.category strong{font-size:20px}.category small{font-size:10px;line-height:1.5;display:block}.category>span{font-size:21px}.category:after{font-size:16px}
 .row-section{margin:28px 0}.row-heading{margin-bottom:11px;gap:10px}.row-heading h3{font:600 20px/1.3 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.5px}.row-heading button{min-height:44px;min-width:44px;font-size:12px;white-space:nowrap}
 .shelf{grid-auto-columns:clamp(130px,37vw,172px);gap:12px;padding:0 0 14px;margin:0;scroll-snap-type:x proximity;scrollbar-width:none;align-items:start;scroll-padding-inline:0}
 .shelf::-webkit-scrollbar{display:none}.shelf:has(.live){grid-auto-columns:clamp(165px,48vw,220px)}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px;padding-top:0;align-items:start}
 .media-card,.card{border-radius:17px;box-shadow:none;animation:none!important;transform:none!important;filter:none!important}.media-card>.card{height:auto;border:0;background:transparent}.poster,.media-card .poster{height:auto;aspect-ratio:2/3;border-radius:17px;overflow:hidden}.poster img{object-fit:cover;transition:opacity .2s;transform:none!important}.poster:after{display:none!important}
 .media-card .card>strong{display:-webkit-box;font-size:12px;line-height:1.4;margin:10px 3px 3px;min-height:2.8em}.media-card .card>small{display:none}
 .card-preview,.media-card:hover .card-preview,.media-card:focus-within .card-preview{display:none!important}
 .card.live{background:#ffffff04;border:1px solid #ffffff0d}.card.live .poster{aspect-ratio:16/8;height:auto;border-radius:16px 16px 0 0;background:#141722}.card.live img{padding:18px;object-fit:contain}.card.live strong{font-size:13px;margin:10px 12px 6px;min-height:2.8em}.card.live small{font-size:10px;margin:0 12px 12px}.channel-now{font-size:11px;padding:0 12px 14px}.channel-now small{font-size:10px!important}.programme-progress{height:3px}
 .more-button{width:100%;margin:25px 0;min-height:48px}.empty{border-radius:22px;padding:36px 20px}.empty h3{font-size:25px}.empty p{font-size:14px}
 footer{padding:26px max(20px,var(--safe-right)) 22px max(20px,var(--safe-left));gap:22px;flex-wrap:wrap}.footer-links{font-size:12px;gap:16px}footer>#status{font-size:11px;line-height:1.6;width:100%;max-width:none;text-align:left}.footer-brand{font-size:12px}.footer-brand span{font-size:11px}
 dialog{max-width:100%;width:100%;max-height:calc(100dvh - var(--safe-top) - 16px);margin:auto 0 0;padding:30px max(22px,var(--safe-right)) calc(28px + var(--safe-bottom)) max(22px,var(--safe-left));border-radius:28px 28px 0 0;border:1px solid #ffffff1c;border-bottom:0;background:linear-gradient(150deg,#252236ed,#12121bf7);box-shadow:0 -16px 80px #0008;overscroll-behavior:contain;scrollbar-width:thin;animation:mobile-sheet .25s var(--ease)}
 dialog::backdrop{background:#030309a6;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
 dialog:before{content:'';position:absolute;top:10px;left:calc(50% - 18px);width:36px;height:4px;border-radius:10px;background:#ffffff30}
 dialog h2{font-size:27px}dialog p{font-size:14px;line-height:1.7}dialog label{font-size:14px;line-height:1.5;margin:19px 0}dialog input:not([type=checkbox]),dialog select{min-height:48px;border-radius:14px}dialog .close{top:17px;right:max(14px,var(--safe-right));width:44px;height:44px;display:grid;place-items:center;background:#ffffff09;border-radius:50%;padding:0;z-index:8}
 #consentDialog,#vaultDialog,#backupDialog,#preferencesDialog,#categoryDialog,#programmeDialog{width:100%;padding:33px max(22px,var(--safe-right)) calc(28px + var(--safe-bottom)) max(22px,var(--safe-left));max-height:calc(100dvh - var(--safe-top) - 16px)}
 #consentDialog .consent-top{padding-right:4px;margin-top:8px}#consentDialog h2{font-size:32px}.accept-label{font-size:13px!important;padding:15px;border-radius:16px}.text-link{min-height:44px;font-size:13px;display:inline-flex;align-items:center}.consent-note{font-size:11px!important}
 #categoryDialog{display:flex;flex-direction:column}#categorySearch{border-radius:16px;margin-bottom:14px}#categoryList{display:grid;grid-template-columns:1fr;max-height:56dvh;overflow-y:auto;gap:8px}.category-option{min-height:58px;padding:14px;font-size:13px;border-radius:16px}.category-option small{font-size:11px}.category-dialog-top h2{padding-right:48px;font-size:26px}.category-dialog-top .close{top:-16px;right:-7px}
 #preferencesDialog h3{font-size:20px}.profile-actions{gap:8px}.profile-actions input{flex-basis:100%}.profile-actions button,.vault-actions .secondary,.vault-actions .text-link{font-size:12px;min-height:44px;padding:11px 13px}.upgrade-actions{display:grid;grid-template-columns:1fr}.upgrade-actions button{justify-content:flex-start}.vault-actions>div{display:grid;grid-template-columns:1fr}.preference-grid{grid-template-columns:1fr 1fr;gap:10px}.preference-grid select{max-width:100%;width:100%}.visibility-option{font-size:13px!important;padding:13px;border-radius:12px;min-height:48px}.languages-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:225px}.visibility-list{max-height:270px}.visibility-option span{min-width:0}.pwa-information p,#vaultStatus{font-size:13px}
 #detailDialog{width:100%;max-width:100%;border-radius:28px 28px 0 0}.detail-top{padding:35px 22px 16px;display:grid;grid-template-columns:95px minmax(0,1fr);align-items:start;gap:18px}.detail-top>img{width:95px;aspect-ratio:2/3;height:auto;max-height:160px;border-radius:13px}.detail-copy h2{font-size:26px;line-height:1.12;padding-right:15px;margin-top:12px}.detail-copy #detailDescription{font-size:14px;line-height:1.65}.detail-copy #detailMeta{font-size:12px}.detail-top:has(img:not([hidden])) .detail-copy #detailDescription{grid-column:1/-1}.detail-actions{gap:8px}.detail-actions button{font-size:12px!important;min-height:44px}#detailFacts p{font-size:12px}#detailSeasons{padding:0 22px calc(24px + var(--safe-bottom))}.episode-row{border-radius:16px;padding:15px 12px;grid-template-columns:24px minmax(0,1fr) auto;min-height:66px}.episode-name{font-size:13px}.episode-row small{font-size:11px}#detailTrailerFrame iframe{width:calc(100% - 44px);margin:0 22px 20px}
 #termsDialog{width:100%;max-width:100%;max-height:calc(100dvh - var(--safe-top));border-radius:26px 26px 0 0}.terms-header{padding:32px 22px 18px;gap:8px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#1b1927ed}.terms-header h2{font-size:25px}.terms-header p{font-size:12px}.terms-controls{padding:0 42px 0 0;gap:0}.terms-controls .language-select{min-height:40px;font-size:12px!important;min-width:42px}.terms-controls .close{top:23px;right:10px}#termsContent{padding:4px 22px calc(26px + var(--safe-bottom))}#termsContent p{font-size:14px;line-height:1.85}#termsContent h3{font-size:21px}
 .guide-toolbar{gap:10px;align-items:center}.guide-toolbar button{min-height:44px;font-size:12px}.guide-toolbar>#guideStatus{flex-basis:100%;font-size:12px}.guide-controls{gap:6px}.guide-controls button{border-radius:14px;min-width:44px}.timeline-scroll{border-radius:20px;max-height:60dvh}.timeline-label{min-height:76px;font-size:12px}.timeline-program strong{font-size:12px}.timeline-program small{font-size:10px}.timeline-row{min-height:84px}
 #playerDialog{width:100%;max-width:100%;margin:auto 0 0;max-height:calc(100dvh - var(--safe-top));border-radius:24px 24px 0 0;background:#101019;overflow-y:auto;padding:0 0 calc(20px + var(--safe-bottom));border-bottom:0}
 #playerDialog:before{display:none}#playerStage{width:100%;min-height:0}#playerDialog .close{position:absolute;top:12px;right:12px;width:44px;height:44px;background:#08090e7a;border:1px solid #ffffff28;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:25px}
 .video-surface{width:100%;border-radius:22px 22px 0 0;overflow:hidden}#video{width:100%;height:auto;aspect-ratio:16/9;max-height:64dvh;object-fit:contain;background:#000}
 .mobile-transport{display:flex;align-items:center;justify-content:center;gap:18px;padding:16px 20px;background:#08090e;border-bottom:1px solid #ffffff08}.mobile-transport button{min-width:48px;min-height:48px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff18;background:#ffffff07;color:#e8dfff;font-size:15px}.mobile-transport button svg{width:22px;height:22px}.mobile-transport #touchPlay{min-width:56px;height:56px;background:#d7caff;color:#171021;border:0}.mobile-transport button:disabled{opacity:.3}
 .mobile-player-tools{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 14px}.mobile-player-tools button{min-height:44px;min-width:44px;border-radius:14px;padding:10px 13px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ffffff18;background:#ffffff06}.mobile-player-tools svg{width:19px;height:19px}
 .player-info{padding:20px 18px 12px;gap:12px}.player-info h2{font-size:21px;line-height:1.25;overflow-wrap:anywhere;margin:7px 0}.player-info .eyebrow{font-size:10px}.player-info .secondary{min-width:44px;min-height:44px;font-size:12px;white-space:nowrap;border-radius:14px}
 .playback-tools{margin:10px 18px 18px;gap:8px;flex-wrap:wrap}.playback-tools .secondary{min-height:44px;border-radius:14px;font-size:12px;padding:10px 13px}.playback-tools label{font-size:12px;max-width:100%;display:flex;gap:8px;align-items:center}.playback-tools select{max-width:200px;margin-left:0;min-height:44px;font-size:14px!important;border-radius:14px}
 .audio-tools,.subtitle-tools{margin:14px 18px;gap:12px;flex-wrap:wrap}.audio-tools label,.subtitle-tools label{display:flex;align-items:center;gap:10px;font-size:13px;flex-wrap:wrap}.audio-tools select,.subtitle-tools select{min-height:44px;max-width:210px;font-size:14px!important;border-radius:14px}.audio-tools>span,.subtitle-tools #subtitleHint{font-size:12px;line-height:1.6}.subtitle-file{border-radius:14px}.subtitle-file input{font-size:12px!important;max-width:190px;min-height:34px}.subtitle-tools input[type=number]{min-height:44px;font-size:16px!important;width:74px;border-radius:14px}.platform-status,#playerError,#nowNext{font-size:12px;line-height:1.65;margin:10px 18px}
 .live-navigation{margin:10px 18px;gap:10px}.live-navigation button{min-height:44px;font-size:14px;border-radius:14px}.channel-drawer{margin:12px 18px;border-radius:18px}#channelList{grid-template-columns:1fr;max-height:38dvh;gap:8px}.channel-switch{min-height:48px;border-radius:12px;font-size:13px;padding:12px}.channel-drawer input{font-size:16px}
 .video-surface .next-episode-banner{width:auto;max-width:calc(100% - 24px);right:12px;bottom:55px;padding:9px;gap:8px;border-radius:20px;background:#1e1934da;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.video-surface .next-episode-banner>div{display:none}.video-surface .next-episode-banner button{min-height:44px;font-size:12px;border-radius:14px;padding:10px 13px}#nextEpisodeNow{min-width:130px}
 #compatibilityTools{margin:12px 18px;padding:16px;border-radius:18px}#compatibilityTools label{display:flex;align-items:center;gap:10px}#compatibilityTools input{margin:0;min-height:44px}
 #playerStage:fullscreen,#playerStage:-webkit-full-screen{background:#000;width:100vw;height:100dvh;overflow:hidden;position:relative;padding:0}
 #playerStage:fullscreen .video-surface,#playerStage:-webkit-full-screen .video-surface{height:100%;border-radius:0;display:grid;place-items:center}
 #playerStage:fullscreen #video,#playerStage:-webkit-full-screen #video{height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
 #playerStage:fullscreen .player-info,#playerStage:fullscreen .playback-tools,#playerStage:-webkit-full-screen .player-info,#playerStage:-webkit-full-screen .playback-tools{display:none}
 #playerStage:fullscreen .mobile-transport,#playerStage:-webkit-full-screen .mobile-transport{position:absolute;left:50%;bottom:calc(36px + var(--safe-bottom));transform:translateX(-50%);z-index:6;border:1px solid #ffffff22;border-radius:30px;background:#17132499;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:8px 14px;transition:opacity .2s}
 #playerStage:fullscreen .mobile-player-tools,#playerStage:-webkit-full-screen .mobile-player-tools{position:absolute;top:calc(12px + var(--safe-top));left:max(12px,var(--safe-left));right:calc(64px + var(--safe-right));z-index:7;padding:0;transition:opacity .2s}
 #playerStage:fullscreen .close,#playerStage:-webkit-full-screen .close{position:absolute;right:max(12px,var(--safe-right));top:calc(12px + var(--safe-top));z-index:8;transition:opacity .2s}
 #playerStage:fullscreen .next-episode-banner,#playerStage:-webkit-full-screen .next-episode-banner{bottom:calc(116px + var(--safe-bottom));right:max(16px,var(--safe-right));z-index:9}
 #playerStage.controls-idle:fullscreen .mobile-transport,#playerStage.controls-idle:fullscreen .mobile-player-tools,#playerStage.controls-idle:fullscreen .close{opacity:0;pointer-events:none}
 .skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skeleton-grid .skeleton-card:nth-child(n+5){display:block}
 @keyframes mobile-sheet{from{opacity:.5;transform:translateY(28px)}to{opacity:1;transform:none}}
}
@media(max-width:370px){header .brand-wordmark>span{display:none}.hero h1{font-size:39px}.mobile-navigation button{font-size:9px}.detail-top{grid-template-columns:1fr}.detail-top>img{width:90px}.preference-grid{grid-template-columns:1fr}.terms-header{display:block}.terms-controls{position:absolute;right:12px;top:17px}.terms-header h2{padding-top:22px}.terms-controls .close{top:0;right:0}}
@media(max-width:1000px) and (orientation:landscape) and (max-height:550px){
 header{height:calc(60px + var(--safe-top));padding-top:calc(5px + var(--safe-top));padding-bottom:5px}header>nav{display:none}.brand{height:44px!important}.tools{height:44px!important}.mobile-navigation{height:60px;left:22%;right:22%;bottom:calc(6px + var(--safe-bottom));padding:3px}.mobile-navigation button{height:52px}.hero[hidden]+.library{padding-top:calc(85px + var(--safe-top))}.hero-copy{padding-top:25px}.hero{min-height:400px}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shelf{grid-auto-columns:150px}.hero-bottom{display:none}dialog{max-height:calc(100dvh - 10px);max-width:90vw;margin:auto;border-radius:24px}.detail-top{grid-template-columns:100px 1fr}.mobile-navigation{display:grid}body{padding-bottom:90px}#playerDialog{max-width:100%;max-height:100dvh;margin:0;border-radius:0}#playerStage #video{max-height:80dvh}.mobile-transport{padding:8px 18px}#playerDialog .close{right:max(12px,var(--safe-right))}
}
@media(prefers-reduced-motion:reduce){.skeleton-card{animation:none}.mobile-navigation button,dialog,.poster img{animation:none!important;transition:none!important}#nextEpisodeNow.counting:before{animation:none!important}}
@media(prefers-reduced-transparency:reduce){.mobile-navigation,header,dialog{background:#171621!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}

@media(max-width:800px), (max-width:1000px) and (max-height:550px){h1,h2,.detail-copy h2{font-family:-apple-system,BlinkMacSystemFont,'Outfit',sans-serif}#video::-webkit-media-controls-fullscreen-button{display:block}}
.platform-button svg{width:18px;height:18px;flex-shrink:0}

/* Player tools stay inside the video surface, including fullscreen. */
#playerStage .mobile-player-tools{display:flex;position:absolute;inset:12px 64px auto auto;z-index:12;gap:6px;align-items:center;padding:0;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 84px);transition:opacity .2s}
#playerStage .mobile-player-tools button{box-sizing:border-box;display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid #ffffff25;border-radius:14px;background:#15131fd9;color:#eeeaf7;box-shadow:0 4px 16px #0003;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);cursor:pointer}
#playerStage .mobile-player-tools button[aria-expanded=true]{background:#7860bce6;border-color:#d6c4ff88}
#playerStage .mobile-player-tools svg{width:22px;height:22px;flex:none}
#playerStage .cc-symbol{font:700 12px/1 system-ui;letter-spacing:-.8px;border:1.5px solid currentColor;border-radius:4px;padding:3px}
#playerStage .mobile-player-tools .platform-button{width:auto;display:flex;gap:7px;font-size:11px}
#playerStage .player-settings-panel{position:absolute;right:14px;top:68px;z-index:14;width:min(360px,calc(100% - 28px));max-height:calc(100% - 82px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:16px;border:1px solid #ffffff24;border-radius:20px;background:#181520f2;color:#f0ebfa;box-shadow:0 16px 50px #0008;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);text-align:left;scrollbar-width:thin;color-scheme:dark}
.player-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;position:sticky;top:-16px;background:#181520;z-index:1;padding:5px 0}
.player-settings-heading h3{font:600 16px/1.3 system-ui;margin:0}
#playerStage .player-settings-close{width:38px;height:38px;min-height:38px;display:grid;place-items:center;border-radius:50%;padding:0;background:#ffffff0d;font:400 25px/1 system-ui;color:#ece8f4}
#playerStage #playerSettingsPanel>.subtitle-tools,#playerStage #playerSettingsPanel>.audio-tools,#playerStage #playerSettingsPanel>.playback-tools,#playerStage #playerSettingsPanel>#compatibilityTools{display:none!important;position:static!important;margin:0;padding:0;background:none;border:0;box-shadow:none}
#playerStage #playerSettingsPanel[data-section=subtitles]>.subtitle-tools,#playerStage #playerSettingsPanel[data-section=audio]>.audio-tools,#playerStage #playerSettingsPanel[data-section=playback]>.playback-tools,#playerStage #playerSettingsPanel[data-section=playback]>#compatibilityTools:not([hidden]){display:flex!important;flex-direction:column;align-items:stretch;gap:14px}
#playerStage #playerSettingsPanel label{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;font-size:12px;line-height:1.5;color:#cec4df}
#playerStage #playerSettingsPanel select,#playerStage #playerSettingsPanel input[type=number]{box-sizing:border-box;width:100%;max-width:none;min-height:44px;font-size:16px!important;border-radius:12px;padding:10px 12px;margin:0!important;background:#ffffff09;border:1px solid #ffffff20;color:#f0ebfa}
#playerStage #playerSettingsPanel .subtitle-file{padding:12px;border:1px dashed #ffffff24;border-radius:12px}
#playerStage #playerSettingsPanel input[type=file]{width:100%;max-width:100%;min-width:0;font-size:12px!important;color:#bcb0cd}
#playerStage #playerSettingsPanel input::file-selector-button{background:#54416f;border:0;border-radius:8px;padding:9px;color:white;margin-right:8px}
#playerStage #playerSettingsPanel #subtitleHint,#playerStage #playerSettingsPanel #audioHint{font-size:12px;color:#b6a8c9;line-height:1.65}
#playerStage #playerSettingsPanel #compatibilityTools{margin-top:14px}
#playerStage .mobile-player-tools #fullscreenButton{display:grid!important}
#playerStage:fullscreen,#playerStage.player-expanded{overflow:hidden;padding:0;background:#000}
#playerStage:fullscreen .player-info,#playerStage.player-expanded .player-info,#playerStage.player-expanded .live-navigation,#playerStage.player-expanded .channel-drawer,#playerStage.player-expanded>#nowNext,#playerStage.player-expanded>#playerError,#playerStage.player-expanded>.platform-status{display:none}
#playerStage:fullscreen .mobile-player-tools,#playerStage.player-expanded .mobile-player-tools{inset:calc(12px + var(--safe-top)) calc(64px + var(--safe-right)) auto auto}
#playerStage:fullscreen .player-settings-panel,#playerStage.player-expanded .player-settings-panel{top:calc(68px + var(--safe-top));right:max(14px,var(--safe-right));max-height:calc(100% - 152px - var(--safe-top) - var(--safe-bottom))}
#playerStage.controls-idle:fullscreen:not(.settings-open) .mobile-player-tools,#playerStage.controls-idle.player-expanded:not(.settings-open) .mobile-player-tools,#playerStage.controls-idle.player-expanded .close{opacity:0;pointer-events:none}
#playerDialog.player-expanded-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;overflow:hidden}
#playerStage.player-expanded{width:100%;height:100dvh}
#playerStage.player-expanded .video-surface{width:100%;height:100%;border-radius:0;display:grid;place-items:center}
#playerStage.player-expanded #video{width:100%;height:100%;max-height:none;object-fit:contain;aspect-ratio:auto}
#playerStage.player-expanded .close{position:absolute;right:max(12px,var(--safe-right));top:calc(12px + var(--safe-top));z-index:16}
#playerStage.player-expanded .mobile-transport{position:absolute;left:50%;bottom:calc(30px + var(--safe-bottom));transform:translateX(-50%);z-index:6;background:#171324b8;border-radius:30px;padding:8px 14px}
#playerStage.player-expanded .next-episode-banner{bottom:calc(110px + var(--safe-bottom))}
#video::-webkit-media-controls-fullscreen-button{display:none!important}
@media(max-width:800px), (max-width:1000px) and (max-height:550px){
 .mobile-navigation{width:auto!important;box-sizing:border-box;order:initial;justify-content:normal;left:max(12px,var(--safe-left));right:max(12px,var(--safe-right));margin:0;column-gap:3px}
 .mobile-navigation button{width:100%;box-sizing:border-box;align-self:center;justify-self:center;text-align:center;line-height:1.2;margin:0;padding:5px 0}
 .mobile-navigation button>span{display:block;width:100%;text-align:center;white-space:nowrap}
 header #preferencesButton{padding:10px;line-height:1}
 header #preferencesButton svg{display:block;width:24px;height:24px}
 #playerStage .mobile-player-tools{inset:10px 56px auto auto;gap:4px;max-width:calc(100% - 68px)}
 #playerStage .mobile-player-tools button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:12px;padding:10px}
 #playerStage .mobile-player-tools .platform-button{font-size:0;width:40px;gap:0}
 #playerStage .player-settings-panel{top:58px;padding:14px;max-height:calc(100% - 68px);border-radius:16px}
 #playerStage:fullscreen .player-settings-panel,#playerStage.player-expanded .player-settings-panel{top:calc(62px + var(--safe-top));max-height:calc(100% - 130px - var(--safe-top) - var(--safe-bottom))}
}
@media(prefers-reduced-motion:reduce){#playerStage .mobile-player-tools{transition:none}}


/* iPhone interruption, captions and original brand artwork. */
.player-state{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;box-sizing:border-box;text-align:center;background:radial-gradient(ellipse at center,#11101fe8,#0004);pointer-events:none;color:#f1edfa}
.player-state-brand{width:168px;height:88px;object-fit:cover;mix-blend-mode:screen;flex:none}
.player-state strong{font:600 16px/1.4 system-ui}.player-state>span:not(.player-state-spinner){font-size:12px;line-height:1.6;max-width:410px;color:#cbc1db}.player-state>span:empty{display:none}
.player-state button{pointer-events:auto;min-height:44px;padding:11px 20px;font-size:13px}
.player-state-spinner{width:23px;height:23px;border:2px solid #c8b8ff33;border-top-color:#c8b8ff;border-radius:50%;animation:player-spin .85s linear infinite}
@keyframes player-spin{to{transform:rotate(360deg)}}
.install-brand{display:flex;align-items:center;gap:16px;padding:10px 14px;margin-bottom:22px;border:1px solid #ffffff14;border-radius:20px;background:#090912;overflow:hidden}
.install-brand img{width:132px;max-width:45%;aspect-ratio:1.5;object-fit:contain;mix-blend-mode:screen}.install-brand span{font-size:14px;color:#c9bedb;line-height:1.6}
#video[data-caption-size=normal]::cue{font-size:1.1em}#video[data-caption-size=large]::cue{font-size:1.4em}#video[data-caption-size=largest]::cue{font-size:1.75em}
#video[data-caption-background=soft]::cue{background-color:#000b;color:#fff}#video[data-caption-background=solid]::cue{background-color:#000;color:#fff}#video[data-caption-background=none]::cue{background-color:transparent;color:#fff;text-shadow:0 1px 3px #000,0 0 5px #000}
@media(max-width:800px), (max-width:1000px) and (max-height:550px){
 #categoryDialog .category-dialog-top{position:relative;flex:none;padding-right:38px}
 #categoryDialog #closeCategories{position:absolute;top:-12px;right:-8px;width:48px;height:48px;min-height:48px;display:grid;place-items:center;padding:0;z-index:3;touch-action:manipulation}
 #categoryDialog #categorySearch{flex:none}#categoryDialog #categoryList{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #playerDialog.player-expanded-dialog,#playerStage.player-expanded{height:var(--app-viewport-height,100dvh)}
 .player-state{gap:8px;padding:14px}.player-state-brand{width:120px;height:55px}.player-state strong{font-size:14px}.player-state>span:not(.player-state-spinner){font-size:11px}.player-state-spinner{width:18px;height:18px}
}
@media(orientation:landscape) and (max-height:550px){
 #playerStage .player-settings-panel{max-height:calc(100% - 100px - var(--safe-top) - var(--safe-bottom))}
 .player-state-brand{width:110px;height:48px}.player-state{gap:7px;padding:12px max(68px,var(--safe-right)) 70px max(16px,var(--safe-left))}
}
@media(prefers-reduced-motion:reduce){.player-state-spinner{animation:none;border-color:#c8b8ff88}}
#playerStage[data-playback-state]>#playerError{display:none}
