/* Shared cinema surface: opening and content never replace the fullscreen node. */
#modal.player-modal{background:#090f1b;border:1px solid #ffffff1c;border-radius:20px;box-shadow:0 32px 110px #000c}
.worktv-player-stage{position:relative;background:#090f1b;min-width:0}
.player-modal .player-head{padding:24px 70px 20px 26px;border-bottom:1px solid #ffffff0a}
.player-modal .player-head h2{font-size:23px;font-weight:600;letter-spacing:-.5px}
.player-modal .player-head p{color:#a8b6cb;font-size:12px;margin-top:7px}
.player-modal .player-footer{padding:18px 26px;color:#98a9c0;font-size:12px}
.player-modal .resume-banner{background:#102138;color:#bbd9fc}
.wp-player{position:relative;background:#000;isolation:isolate;outline:none;overflow:hidden}
.wp-player>video{object-fit:contain;width:100%;height:100%}
.wp-ui{position:absolute;inset:0;pointer-events:none;z-index:3;color:#fff;font-family:inherit}
.wp-top{position:absolute;top:0;left:0;right:0;padding:24px 68px 44px 26px;background:linear-gradient(#000b,transparent);display:flex;flex-direction:column;gap:5px;transition:opacity .2s}
.wp-label{font-size:10px;font-weight:700;letter-spacing:2px;color:#88c4ff}
.wp-top strong{font-size:clamp(16px,2vw,25px);font-weight:600;letter-spacing:-.4px}
.wp-top small{font-size:12px;color:#d4e0ef}
.wp-bottom{position:absolute;bottom:0;left:0;right:0;padding:42px 22px 16px;background:linear-gradient(transparent,#000d 65%);transition:opacity .2s;pointer-events:none}
.wp-row{display:flex;align-items:center;gap:10px;min-width:0}
.wp-ui button{width:42px;height:42px;flex-shrink:0;border:0;border-radius:50%;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;pointer-events:auto;transition:background .15s,transform .15s}
.wp-ui button:hover{background:#ffffff24;transform:scale(1.06)}
.wp-ui button:focus-visible,.wp-ui select:focus-visible,.wp-ui input:focus-visible,.wp-next:focus-visible{outline:3px solid #80beff;outline-offset:3px}
.wp-ui button svg{width:24px;height:24px}
.wp-ui button[data-wp=toggle]{background:#fff;color:#091322;width:44px;height:44px;margin-right:4px}
.wp-ui button[data-wp=back]::after,.wp-ui button[data-wp=forward]::after{content:'10';position:absolute;font-size:8px;font-weight:700;margin-top:3px}
.wp-time{font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap;color:#e0e8f5;margin:0 8px}
.wp-spacer{flex:1}
.wp-volume{display:flex;align-items:center;gap:4px}
.wp-volume input{width:68px;accent-color:#fff;pointer-events:auto;cursor:pointer}
.wp-ui select{color:#fff;background:#ffffff16;border:1px solid #ffffff22;border-radius:8px;padding:7px 5px;font:600 12px inherit;pointer-events:auto;cursor:pointer}
.wp-ui select option{background:#101b2d;color:#fff}
.wp-progress{position:relative;height:22px;margin-bottom:9px;pointer-events:auto;display:flex;align-items:center}
.wp-progress::before,.wp-buffer{content:'';position:absolute;left:0;height:4px;border-radius:4px;background:#ffffff29;pointer-events:none}
.wp-progress::before{width:100%}.wp-buffer{background:#ffffff4a}
.wp-progress input{appearance:none;-webkit-appearance:none;background:linear-gradient(to right,#399bff var(--played,0%),transparent var(--played,0%));height:4px;width:100%;border:0;border-radius:4px;margin:0;cursor:pointer;position:relative;z-index:1;padding:0}
.wp-progress input::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #399bff44}
.wp-progress input::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:white}
.wp-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;background:#0003}
.wp-loading i{width:26px;height:26px;border:2px solid #ffffff38;border-top-color:#66b5ff;border-radius:50%;animation:wp-spin 1s linear infinite}
@keyframes wp-spin{to{transform:rotate(360deg)}}
.wp-idle:not(.wp-paused) .wp-top,.wp-idle:not(.wp-paused) .wp-bottom{opacity:0;visibility:hidden}
.wp-idle:not(.wp-paused){cursor:none}
.wp-ui [hidden]{display:none!important}
.wp-next{position:absolute;right:24px;bottom:122px;z-index:4;display:flex;align-items:center;gap:24px;padding:14px 18px;border:1px solid #a0ccff77;border-radius:12px;background:#f0f6ff;color:#0b1a30;box-shadow:0 8px 30px #0006;text-align:left;cursor:pointer;transition:background .15s}
.wp-next:hover{background:white}.wp-next span{display:flex;flex-direction:column;gap:5px}.wp-next small{font-size:9px;letter-spacing:1.3px;font-weight:700;color:#3c608a}.wp-next strong{font-size:14px}.wp-next svg{width:23px;height:23px}
.video-wrap:has(.fj-room-badge:not([hidden])) .wp-next{display:none}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded){width:100vw;height:100dvh;max-width:none;background:#000;padding:0;overflow:hidden}
.worktv-player-stage.wp-expanded{position:fixed;inset:0;z-index:1000}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded)>#react-modal{width:100%;height:100%}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .video-wrap{width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .video-wrap video{height:100%;max-height:none}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .player-head,.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .player-footer,.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .resume-banner{display:none}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .player-status:not(:empty){position:absolute;top:100px;left:24px;right:24px;z-index:5;background:#101b2de6;border-radius:10px;padding:12px;color:#fff}
.worktv-player-stage .modal-close{z-index:8}
.worktv-player-stage:has(.wp-idle:not(.wp-paused))>.modal-close{opacity:0}
.worktv-player-stage>.modal-close:focus-visible,.worktv-player-stage>.modal-close:hover{opacity:1}
.player-modal .intro-status{bottom:115px;z-index:5;pointer-events:none}
.player-modal .intro-resume{z-index:6}
.player-modal .playback-intro{position:absolute;inset:0;z-index:6}
.player-modal.intro-active .wp-next{visibility:hidden}
@media(max-width:600px){
  #modal.player-modal{max-width:calc(100% - 12px);border-radius:14px}
  .player-modal .player-head{padding:18px 54px 16px 16px}.player-modal .player-head h2{font-size:18px}
  .player-modal .player-footer{padding:14px;font-size:10px;flex-wrap:wrap;gap:12px}
  .wp-top{padding:14px 52px 25px 14px}.wp-top strong{font-size:15px}.wp-top small{display:none}.wp-label{font-size:8px;letter-spacing:1px}
  .wp-bottom{padding:30px 10px 9px}.wp-row{gap:2px}.wp-ui button{width:34px;height:38px}.wp-ui button svg{width:21px;height:21px}
  .wp-ui button[data-wp=toggle]{width:36px;height:36px;margin-right:2px}.wp-time{font-size:10px;margin:0 4px}
  .wp-volume input{display:none}.wp-ui select{font-size:10px;padding:6px 2px}
  .wp-progress{margin-bottom:4px;height:18px}.wp-next{right:12px;bottom:86px;padding:9px 12px;gap:12px}.wp-next strong{font-size:12px}.wp-next small{font-size:8px}
  .player-modal .intro-status{bottom:80px;font-size:11px;left:12px;right:12px}
}
@media(prefers-reduced-motion:reduce){.wp-ui *,.wp-next{transition:none!important}}
.player-modal:has(.video-wrap.wp-player) .player-head:not(:has(#player-diagnostic-status)){display:none}
.wp-ui button{position:relative}
@media(max-width:360px){.video-wrap:has(.wp-next) .wp-top strong{display:none}.wp-time{font-size:9px;margin:0 2px}.wp-row{gap:0}.wp-ui button{width:32px}.wp-ui select{max-width:45px}}
.player-modal .resume-banner{padding-right:66px;min-height:64px;gap:12px}
@media(max-width:360px){.player-modal .resume-banner{flex-wrap:wrap;justify-content:flex-start;padding-top:12px;padding-bottom:12px}}
/* Light blue glass: readable over both dark and bright footage. */
.wp-next{color:#fff;background:linear-gradient(120deg,rgba(48,146,255,.78),rgba(24,101,210,.66));border:1px solid rgba(178,222,255,.65);box-shadow:inset 0 1px 0 #ffffff40,0 8px 28px #001e5366;backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);text-shadow:0 1px 3px #00306a80}
.wp-next small{color:#dcefff}.wp-next:hover{background:linear-gradient(120deg,rgba(67,161,255,.9),rgba(36,119,225,.8));border-color:#d3edff}
html.wt-tv .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .video-wrap{height:100%;max-height:none;min-height:0;aspect-ratio:auto}
html.wt-tv .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .video-wrap video{height:100%;max-height:none}
@media(prefers-reduced-transparency:reduce){.wp-next{background:#2268b8;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* In fullscreen, inactivity hides chrome even when a control retains focus. */
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wp-idle .wp-top,.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wp-idle .wp-bottom,.video-wrap.wp-idle .fj-controls,.video-wrap.wp-idle .fj-top,.video-wrap.wp-idle .fj-social{opacity:0;visibility:hidden;pointer-events:none}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded):has(.wp-idle)>.modal-close{opacity:0;visibility:hidden}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wp-idle{cursor:none}

/* A fixed child cannot escape a clipped/transformed dialog on mobile Safari. */
html #modal.player-modal:has(.worktv-player-stage.wp-expanded){position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;overflow:hidden;transform:none;animation:none}
html #modal.player-modal .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded){width:100vw;height:100vh;height:100dvh;max-height:none;padding:0;overflow:hidden}
html #modal.player-modal .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .video-wrap{width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;flex:1}
html #modal.player-modal .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) #video-player{width:100%;height:100%;max-height:none;object-fit:contain}
html #modal.player-modal .worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wt-tv-player-controls{display:none}
html #modal.player-modal:has(.wp-expanded)>.jm-header{display:none}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wp-top{padding-top:max(14px,env(safe-area-inset-top));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(54px,env(safe-area-inset-right))}
.worktv-player-stage:is(:fullscreen,.wp-fullscreen,.wp-expanded) .wp-bottom{padding-bottom:max(9px,env(safe-area-inset-bottom));padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
.wp-fullscreen-resume{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:7}
