/* Cinema controls shared across embedded, native fullscreen and webview modes. */
.custom-player{--player-accent:#a8e6d6;--player-track:#ffffff21;background:#06080b;color:#f4f5f8}
.custom-player .player-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#03070bd1,transparent 30%,transparent 65%,#03070b9e);opacity:0;transition:opacity .25s;z-index:1}
.custom-player.controls-visible .player-shade{opacity:1}
.custom-player .cinema-topline{padding:20px 22px;gap:14px;z-index:2;background:none;min-width:0}
.custom-player .cinema-topline>span:first-child{border:0;padding:0;font-size:8px;letter-spacing:1.7px;color:#b6c5c9;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.custom-player .cinema-topline strong{font-size:12px;font-weight:500;min-width:0;flex:1;text-shadow:0 2px 10px #000}
.custom-player .cinema-topline .cinema-stream{margin-left:auto;display:inline-flex;align-items:center;gap:6px;flex-shrink:0;max-width:none;border:1px solid #ffffff25;border-radius:30px;background:#142125aa;padding:7px 10px;color:#dceee8;font-size:9px;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.custom-player .cinema-stream:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--player-accent);box-shadow:0 0 9px #a8e6d650}
.custom-player .cinema-stream[hidden]{display:none}
.custom-player .video-toolbar{inset:auto 18px 16px;max-width:1440px;margin:auto;padding:10px 15px 11px;border:1px solid #ffffff25;border-radius:17px;background:linear-gradient(120deg,#252b359e,#0d141fca);box-shadow:0 14px 50px #0005,0 1px 0 #ffffff08 inset;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);z-index:6;box-sizing:border-box}
.custom-player .video-buttons{display:flex;justify-content:space-between;gap:12px;min-width:0}
.custom-player .player-transport,.custom-player .player-actions{display:flex;align-items:center;gap:5px;min-width:0}
.custom-player .player-actions{flex-shrink:0;margin-left:auto}
.custom-player .video-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:40px;min-height:40px;flex:0 0 auto;border-radius:11px;padding:9px;color:#e3e7ee;cursor:pointer;touch-action:manipulation}
.custom-player .video-toolbar button:hover,.custom-player .video-toolbar button[aria-expanded=true]{background:#ffffff12;color:#fff}
.custom-player .video-toolbar button svg{width:21px;height:21px;flex:none;stroke-width:1.6}
.custom-player .video-toolbar [data-control=play]{background:#f2f4f7;color:#171e27;border-radius:50%;margin-right:5px;width:40px;min-width:40px;box-shadow:0 3px 15px #0003}
.custom-player [data-control=play] svg path[d^="m8"],.custom-player .player-center-play svg path{fill:currentColor;stroke:none}
.custom-player .video-toolbar [data-control=fullscreen]{width:44px;min-width:44px;border:1px solid #ffffff20;background:#ffffff06}
.custom-player .video-toolbar [data-control=fullscreen][aria-pressed=true]{color:var(--player-accent);background:#a8e6d612}
.custom-player .video-toolbar .video-time{font-size:11px;color:#d2d7e0;margin-left:8px;white-space:nowrap;min-width:0}
.custom-player .video-timeline{height:22px;margin:0 0 6px}
.custom-player .timeline-track{height:3px;background:var(--player-track);transition:height .15s}
.custom-player .timeline-played{background:linear-gradient(90deg,#64bba8,var(--player-accent))}
.custom-player .video-timeline:hover .timeline-track,.custom-player .video-timeline:focus-within .timeline-track{height:5px}
.custom-player .video-toolbar .video-seek{height:22px;min-height:0}
.custom-player .video-seek::-webkit-slider-thumb{box-shadow:0 0 0 4px #a8e6d61a}
.custom-player .video-seek::-moz-range-thumb{box-shadow:0 0 0 4px #a8e6d61a}
.custom-player .video-toolbar .video-volume{display:block;width:58px;height:20px;min-height:0;margin-right:5px}
.custom-player .video-volume::-webkit-slider-runnable-track{height:3px;background:linear-gradient(90deg,#cbd4da,#cbd4da) left/var(--volume-fill) 100% no-repeat,var(--player-track)}
.custom-player .video-volume::-moz-range-track{height:3px;background:var(--player-track)}
.custom-player .video-volume::-moz-range-progress{height:3px;background:#cbd4da}
.custom-player .video-volume::-webkit-slider-thumb{width:9px;height:9px;margin-top:-3px;box-shadow:none}
.custom-player .video-volume::-moz-range-thumb{width:9px;height:9px;box-shadow:none}
.custom-player .player-center-play{display:flex;align-items:center;justify-content:center;top:46%;width:70px;height:70px;background:#f5f6f9;color:#17212b;border:1px solid #ffffff5c;box-shadow:0 8px 35px #0005;transition:transform .18s,background .18s;z-index:3}
.custom-player .player-center-play svg{width:29px;height:29px;margin-left:3px}
.custom-player .player-center-play[hidden],.custom-player[data-warning-locked="1"] .player-center-play{display:none}
.custom-player .player-center-play:hover{transform:translate(-50%,-50%) scale(1.05);background:#fff}
.custom-player .video-settings{right:18px;bottom:112px;width:min(350px,calc(100% - 36px));max-height:calc(100% - 130px);padding:8px;background:linear-gradient(135deg,#252c35fa,#111820fa);border:1px solid #ffffff24;border-radius:19px;box-shadow:0 20px 80px #0009}
.custom-player .settings-heading{padding:5px 8px 11px}.custom-player .settings-heading strong{font-size:16px;letter-spacing:-.3px;color:#f2f4f7;font-weight:500}
.custom-player .settings-dismiss{border:1px solid #ffffff12;border-radius:50%;background:#ffffff05}
.custom-player .settings-symbol{color:#b6cbc5}.custom-player .settings-option[aria-checked=true]{color:var(--player-accent);background:#a8e6d610;border:1px solid #a8e6d629}
.custom-player .settings-option span{color:var(--player-accent)}.custom-player .settings-option{margin:3px 0;border:1px solid transparent}
.custom-player .settings-autoplay[aria-checked=true] .settings-switch{background:#4c9e8b}.custom-player .settings-row:focus-visible,.custom-player button:focus-visible{outline-color:var(--player-accent)}
.custom-player .video-status{max-width:min(420px,calc(100% - 40px));top:65px;left:20px;right:auto;border-radius:10px}
.custom-player .seek-preview{bottom:120px}
body.player-expanded-open{overflow:hidden}
.watch-page .player-shell.player-expanded{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;aspect-ratio:auto;border-radius:0;z-index:1000;box-shadow:none}
.custom-player.is-fullscreen video{height:100%;width:100%;max-height:none}
.watch-page .player-shell.is-fullscreen{width:100vw;height:100vh;height:100dvh;max-height:none;max-width:none;aspect-ratio:auto;border-radius:0}
.custom-player.is-fullscreen .video-toolbar{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));max-width:1440px}
.custom-player.is-fullscreen .cinema-topline{padding:max(25px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-left));}
.custom-player.is-fullscreen .cinema-topline strong{font-size:17px}
.custom-player.is-fullscreen .video-settings{right:max(24px,env(safe-area-inset-right));bottom:125px;max-height:calc(100% - 150px)}
@container(max-width:650px){
 .custom-player .video-toolbar{left:10px;right:10px;bottom:10px;padding:4px 8px 7px;border-radius:13px}
 .custom-player .video-toolbar .video-volume{display:none}
 .custom-player .player-transport,.custom-player .player-actions{gap:1px}
 .custom-player .video-buttons{gap:5px}
 .custom-player .video-toolbar [data-control=back],.custom-player .video-toolbar [data-control=forward],.custom-player .video-toolbar [data-control=captions]{display:none}
 .custom-player .video-toolbar button{width:34px;min-width:34px;height:36px;min-height:36px;padding:7px}
 .custom-player .video-toolbar [data-control=play]{width:36px;min-width:36px;margin-right:1px}
 .custom-player .video-toolbar [data-control=fullscreen]{width:40px;min-width:40px}
 .custom-player .video-toolbar .video-time{font-size:10px;margin-left:3px}
 .custom-player .video-timeline{height:19px;margin-bottom:2px}
 .custom-player .video-toolbar .video-seek{height:19px}
 .custom-player .cinema-topline{padding:12px 14px;gap:8px}
 .custom-player .cinema-topline>span:first-child{display:none}
 .custom-player .cinema-topline strong{font-size:10px}
 .custom-player .cinema-topline .cinema-stream{display:inline-flex;padding:5px 7px;font-size:8px}
 .custom-player .player-center-play{width:46px;height:46px;top:42%}
 .custom-player .player-center-play svg{width:23px;height:23px}
 .custom-player .video-settings{bottom:8px;right:8px;width:min(310px,calc(100% - 16px));max-height:calc(100% - 16px);padding:6px;border-radius:13px}
 .custom-player .settings-heading strong{font-size:13px}.custom-player .settings-row{min-height:36px}
 .custom-player .video-status{top:43px;left:12px;max-width:calc(100% - 24px);font-size:10px;padding:7px 10px}
 .custom-player .seek-preview{bottom:87px}
}
@media(prefers-reduced-motion:reduce){.custom-player *{transition:none!important}}
@container(max-width:340px){.custom-player .player-center-play{top:34%;width:40px;height:40px}.custom-player .cinema-topline .cinema-stream{display:none}}
.custom-player .floating-notice{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(ellipse at center,#203f40,#070c11 75%);padding:24px;text-align:center}
.custom-player .floating-notice[hidden]{display:none}.floating-notice strong{font-size:clamp(15px,2.3vw,23px);font-weight:500;letter-spacing:-.4px}.floating-notice p{margin:0;color:#c1d2d0;font-size:12px}
.custom-player .floating-notice button{border:1px solid #a8e6d650;background:#a8e6d615;color:#e3fff6;border-radius:30px;padding:10px 17px;cursor:pointer;margin-top:4px}
.custom-player.floating-active .player-center-play{display:none}.custom-player .video-toolbar [data-control=pip][aria-pressed=true]{color:var(--player-accent)}
@media(max-width:600px){
 main:has(>.watch-page){padding:10px 0 60px;max-width:none;width:100%}
 .watch-page .watch-breadcrumb{display:none}
 .watch-page .watch-layout{gap:22px}
 .watch-page .watch-main>.player-shell:not(.is-fullscreen){width:100%;border-radius:0;box-shadow:none;aspect-ratio:16/9}
 .watch-page .watch-main>:not(.player-shell){margin-left:16px;margin-right:16px}
 .watch-page .related{padding-left:16px;padding-right:16px}
 .watch-page .video-toolbar{left:8px;right:8px;bottom:8px;padding:4px 7px 7px;border-radius:12px}
 .watch-page .video-toolbar [data-control=pip]{width:34px;min-width:34px}
 .watch-page .floating-notice{gap:5px;padding:15px 12px 78px}
 .watch-page .floating-notice strong{font-size:15px}.watch-page .floating-notice p{font-size:10px}.watch-page .floating-notice button{font-size:11px;padding:7px 12px}
}
@media(max-height:500px) and (orientation:landscape){.custom-player.is-fullscreen .cinema-topline{padding:12px 20px}.custom-player.is-fullscreen .video-toolbar{bottom:max(10px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}.custom-player.is-fullscreen .video-settings{bottom:100px;max-height:calc(100% - 115px)}}
/* Reserve the camera/Now Playing area in the installed iOS viewport player.
   The minimum landscape gutters also cover Home Screen versions reporting zero insets. */
.custom-player.camera-safe-fullscreen{--camera-left:env(safe-area-inset-left,0px);--camera-right:env(safe-area-inset-right,0px);--camera-top:env(safe-area-inset-top,0px);--camera-bottom:env(safe-area-inset-bottom,0px);background:#000}
.custom-player.camera-safe-fullscreen video{box-sizing:border-box;padding:var(--camera-top) var(--camera-right) var(--camera-bottom) var(--camera-left);object-fit:contain;background:#000}
.custom-player.camera-safe-fullscreen .video-toolbar{left:calc(var(--camera-left) + 12px);right:calc(var(--camera-right) + 12px);bottom:calc(var(--camera-bottom) + 10px)}
.custom-player.camera-safe-fullscreen .cinema-topline{padding:calc(var(--camera-top) + 12px) calc(var(--camera-right) + 16px) 12px calc(var(--camera-left) + 16px)}
.custom-player.camera-safe-fullscreen .video-settings{right:calc(var(--camera-right) + 12px);bottom:calc(var(--camera-bottom) + 105px);max-height:calc(100% - var(--camera-top) - var(--camera-bottom) - 125px)}
@media(orientation:landscape) and (max-height:600px){.custom-player.camera-safe-fullscreen{--camera-left:max(60px,env(safe-area-inset-left,0px));--camera-right:max(60px,env(safe-area-inset-right,0px));--camera-top:0px;--camera-bottom:max(12px,env(safe-area-inset-bottom,0px))}}
@media(orientation:portrait){.custom-player.camera-safe-fullscreen{--camera-top:max(54px,env(safe-area-inset-top,0px));--camera-bottom:max(20px,env(safe-area-inset-bottom,0px))}}
/* Tactile transport controls and a quieter, compact action dock. */
.custom-player .player-center-controls{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:24px;z-index:3;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.custom-player.controls-visible .player-center-controls{opacity:1;pointer-events:auto}
.custom-player .player-center-controls[hidden],.custom-player[data-warning-locked="1"] .player-center-controls,.custom-player.floating-active .player-center-controls{display:none}
.custom-player:has(.video-settings:not([hidden])) .player-center-controls{opacity:0;pointer-events:none}
.custom-player .player-center-controls .player-center-play{position:static;transform:none;width:68px;height:68px;display:flex;margin:0;border:1px solid #fff8;background:linear-gradient(145deg,#fff,#dfeee8);color:#132b29;box-shadow:0 8px 32px #0005,0 0 0 7px #ffffff09;cursor:pointer}
.custom-player .player-center-controls .player-center-play:hover{transform:scale(1.045)}
.custom-player .player-center-controls .player-center-play:active{transform:scale(.94)}
.custom-player .player-center-controls .player-center-play svg{width:27px;height:27px;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}
.custom-player .player-center-controls .player-center-play[aria-label="Pause video"] svg{margin-left:0}
.custom-player .player-center-controls .player-center-play[aria-label="Pause video"] svg path{fill:none;stroke:currentColor}
.custom-player .player-center-skip{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff30;border-radius:50%;background:#101d2799;color:#fff;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 18px #0002;padding:10px;cursor:pointer;transition:background .15s,transform .15s}
.custom-player .player-center-skip:hover{background:#2a3b48cf}.custom-player .player-center-skip:active{transform:scale(.92)}
.custom-player .player-center-skip svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.custom-player svg text{fill:currentColor;stroke:none;font:600 7px Arial,sans-serif}
.custom-player .video-toolbar{border-color:#ffffff20;background:linear-gradient(140deg,#213039b8,#0a111be6);box-shadow:0 12px 45px #0005,0 1px 0 #ffffff0b inset;border-radius:19px;padding:9px 14px 10px}
.custom-player .video-toolbar button{border-radius:11px;transition:background .15s,color .15s,transform .15s}
.custom-player .video-toolbar button:active{transform:scale(.93)}
.custom-player .video-toolbar [data-control=speed]{font-size:11px;font-weight:600;letter-spacing:-.2px;background:#ffffff07;border:1px solid #ffffff13;width:38px;min-width:38px}
.custom-player .video-toolbar [data-control=fullscreen]{background:#ffffff09;border-color:#ffffff1a}
.custom-player .timeline-played{box-shadow:0 0 12px #8bd6c33d;background:linear-gradient(90deg,#5fbda5,#c1f4df)}
.custom-player .cinema-topline .cinema-stream{pointer-events:auto;cursor:pointer;min-height:30px;font-family:inherit;transition:background .15s,border-color .15s}
.custom-player .cinema-topline .cinema-stream:not(:disabled):after{content:'⌄';margin-left:2px;font-size:12px;line-height:1;color:#c9e2dc}
.custom-player .cinema-topline .cinema-stream:hover:not(:disabled){background:#234943c9;border-color:#a8e6d65e}
.custom-player .cinema-topline .cinema-stream:disabled{cursor:default}
.custom-player .video-settings{border-radius:21px;padding:10px;background:linear-gradient(135deg,#25323bfa,#101923fc)}
.custom-player .settings-row{min-height:46px;padding:8px 10px;border-radius:12px;font-size:12px}
.custom-player .settings-symbol{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff0a;border-radius:9px;background:#ffffff05}
.custom-player .settings-symbol svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none}
.custom-player .settings-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:5px}
.custom-player .settings-option{min-height:42px;margin:0;border:1px solid #ffffff10;background:#ffffff03;border-radius:11px;font-size:12px;white-space:normal;line-height:1.5}
.custom-player .settings-option[aria-checked=true]{border-color:#a8e6d64a;background:linear-gradient(135deg,#a8e6d618,#a8e6d608)}
.custom-player .settings-switch{width:32px;height:18px}.custom-player .settings-switch:after{width:12px;height:12px}.custom-player .settings-autoplay[aria-checked=true] .settings-switch:after{transform:translateX(14px)}
@media(hover:hover){.custom-player:not(.player-is-paused) .player-center-controls{opacity:0;pointer-events:none}}
@container(max-width:650px){
 .custom-player .player-center-controls{top:40%;gap:21px}
 .custom-player .player-center-controls .player-center-play{width:54px;height:54px;min-height:54px;box-shadow:0 6px 26px #0004,0 0 0 5px #ffffff08}
 .custom-player .player-center-skip{width:44px;height:44px;padding:10px}
 .custom-player .video-toolbar [data-control=play]{display:none}
 .custom-player .video-toolbar{padding:4px 8px 6px;border-radius:14px}
 .custom-player .video-toolbar button{width:36px;min-width:36px;min-height:38px;height:38px;padding:8px}
 .custom-player .video-toolbar [data-control=speed]{width:36px;min-width:36px;font-size:10px;padding:5px}
 .custom-player .video-toolbar [data-control=fullscreen]{width:40px;min-width:40px}
 .custom-player .player-transport{flex:1;min-width:0}.custom-player .video-time{overflow:hidden;text-overflow:ellipsis}
 .custom-player .video-settings{padding:6px;border-radius:15px}
 .custom-player .settings-row{min-height:38px;padding:5px 8px}.custom-player .settings-symbol{width:25px;height:25px;border-radius:7px}.custom-player .settings-symbol svg{width:16px;height:16px}
 .custom-player .settings-option{padding:7px 10px;min-height:38px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.custom-player .player-center-controls,.custom-player .player-center-skip,.custom-player .video-toolbar button{transition:none}}

.custom-player .cinema-topline .cinema-stream[hidden]{display:none!important}
