/* Playback area fills the available space; the complete frame stays uncropped. */
html[data-player-design="d"] #watch-panel .watch-panel-grid{max-width:none}
html[data-player-design="d"] #watch-panel .screen-section{display:flex;flex-direction:column;padding:0;gap:0;overflow-y:auto;min-height:0}
html[data-player-design="d"] #watch-panel:not(.is-locked) .player-frame,
html[data-player-design="d"] #watch-panel.media-landscape:not(.is-locked) .player-frame{flex:1 1 0;width:100%;height:auto!important;max-width:none;max-height:none;min-height:180px;aspect-ratio:auto;border:0;border-radius:0;margin:0;background:#050807;box-shadow:none}
html[data-player-design="d"] #watch-panel .video-js{font-family:var(--sans,system-ui);background:#050807}
html[data-player-design="d"] #watch-panel .video-js .vjs-tech{object-fit:contain}
html[data-player-design="d"] #watch-panel .video-js.vjs-playing.vjs-user-inactive:not(:has(:focus-visible)) .watch-panel-head{opacity:0;visibility:hidden}
html[data-player-design="d"] #watch-panel .video-js .watch-panel-head{position:absolute;inset:0 0 auto;z-index:5;display:flex;min-height:60px;padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));margin:0;border:0;background:linear-gradient(#000b,#0000);gap:8px;pointer-events:none;color:white;visibility:visible}
html[data-player-design="d"] #watch-panel .watch-panel-title{flex:1;min-width:0;margin-inline-end:56px;text-align:center}
html[data-player-design="d"] #watch-panel #active-caption{display:flex;align-items:center;justify-content:center;gap:8px;font:600 14px/1.4 var(--sans,system-ui);width:100%;min-width:0;text-shadow:0 1px 4px #000}
html[data-player-design="d"] #watch-panel .player-series-name{min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-player-design="d"] #watch-panel .player-episode-name{flex:0 0 auto;white-space:nowrap;font-size:12px;opacity:.9}
html[data-player-design="d"] #watch-panel #close-player{pointer-events:auto;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:12px;border:0;border-radius:6px;background:transparent;color:white;touch-action:manipulation}
html[data-player-design="d"] #watch-panel #close-player svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"][data-player-design="d"] #watch-panel #close-player svg{transform:rotate(180deg)}
html[data-player-design="d"] #watch-panel #close-player:active{background:#ffffff26}
html[data-player-design="d"] #watch-panel .d-controls{flex:0 0 auto;width:100%;max-width:none;border-radius:0;margin:0;padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left))}
html[data-player-design="d"] #watch-panel .d-controls .player-tool{min-height:54px}
/* Keep Video.js's tested seek/volume handlers, enlarge their actual hit areas. */
html[data-player-design="d"] #watch-panel .video-js .vjs-control-bar{display:flex;align-items:center;height:94px;padding:44px max(8px,env(safe-area-inset-right)) 2px max(8px,env(safe-area-inset-left));background:linear-gradient(transparent,#000d);font-size:12px;direction:ltr}
html[data-player-design="d"] #watch-panel .video-js .vjs-control-bar>.vjs-button{width:48px;height:48px;flex:0 0 48px;touch-action:manipulation}
html[data-player-design="d"] #watch-panel .video-js .vjs-button>.vjs-icon-placeholder:before{font-size:24px;line-height:48px}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-control{position:absolute;inset:0 max(16px,env(safe-area-inset-right)) auto max(16px,env(safe-area-inset-left));width:auto;height:44px;min-height:44px;display:flex;touch-action:none}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-holder{height:44px;margin:0;background:linear-gradient(#ffffff55,#ffffff55) center/100% 6px no-repeat;touch-action:none}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-holder .vjs-load-progress,
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-holder .vjs-play-progress{height:6px;top:19px;border-radius:4px}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-holder .vjs-load-progress div{height:6px}
html[data-player-design="d"] #watch-panel .video-js .vjs-play-progress{background:#64dcb4}
/* Decorative badge follows Video.js seek position; the 44px slider owns input. */
html[data-player-design="d"] #watch-panel .video-js .vjs-play-progress:before{content:'';box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:26px;height:26px;top:-10px;right:-13px;border:1.5px solid #e8c477;border-radius:50%;background:#06251b url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2021.5C9.8%2019.6%203.5%2015.8%203.5%2011.8C3.5%207.8%209%207%2012%2011C15%207%2020.5%207.8%2020.5%2011.8C20.5%2015.8%2014.2%2019.6%2012%2021.5Z%22%20fill%3D%22none%22%20stroke%3D%22%23f5d58d%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%208.4C7.6%206.2%2012.1%203.7%2011.6%201C15.7%203.5%2016.3%206.2%2013.1%208.5C13.8%206.7%2012.7%205.6%2012.7%205.6C12.8%207%2011.9%207.3%2012%208.4Z%22%20fill%3D%22%23f5d58d%22%2F%3E%3C%2Fsvg%3E") center/20px 20px no-repeat;color:#f5d58d;font:700 14px/1 Georgia,'Times New Roman',serif;letter-spacing:-.6px;text-shadow:none;box-shadow:0 2px 6px #0009;pointer-events:none}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-holder:focus-visible .vjs-play-progress:before,
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-control:active .vjs-play-progress:before{box-shadow:0 0 0 4px #e8c47735,0 2px 6px #0009;background-color:#103c2b}
html[data-player-design="d"] #watch-panel .video-js .vjs-remaining-time{display:block;margin-inline-start:auto;flex:0 0 auto;min-width:56px;padding:0 4px;font:500 12px/48px var(--sans,system-ui);font-variant-numeric:tabular-nums}
html[data-player-design="d"] #watch-panel .video-js .vjs-volume-panel{width:auto;display:flex;align-items:center;flex:0 0 auto;height:48px;margin:0}
html[data-player-design="d"] #watch-panel .video-js .vjs-mute-control{height:48px;width:48px;flex:0 0 48px}
html[data-player-design="d"] #watch-panel .video-js .vjs-volume-control.vjs-volume-horizontal:not(.vjs-hidden){display:flex;align-items:center;visibility:visible;opacity:1;width:clamp(64px,15vw,96px);height:44px;margin:0 8px 0 0;transition:none}
html[data-player-design="d"] #watch-panel .video-js .vjs-volume-bar{width:100%;height:44px;margin:0;background:linear-gradient(#ffffff55,#ffffff55) center/100% 6px no-repeat;touch-action:none}
html[data-player-design="d"] #watch-panel .video-js .vjs-volume-level{height:6px;top:19px;background:#64dcb4;border-radius:3px}
html[data-player-design="d"] #watch-panel .video-js .vjs-volume-level:before{content:'';width:14px;height:14px;top:-4px;right:-7px;border-radius:50%;background:white}
html[data-player-design="d"] #watch-panel .video-js .vjs-text-track-display{inset:64px 0 100px}
html[data-player-design="d"] #watch-panel.is-locked .player-frame{flex:1 0 100px;min-height:100px}
html[data-player-design="d"] #watch-panel.is-locked .watch-panel-head{visibility:visible}
html[data-player-design="d"] #watch-panel .vjs-fullscreen{padding-bottom:env(safe-area-inset-bottom);background:#000}
@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel .screen-section{display:flex;flex-direction:column;padding:0;gap:0}
 html[data-player-design="d"] #watch-panel:not(.is-locked) .player-frame{min-height:150px;flex:1 1 0;width:100%;margin:0;aspect-ratio:auto}
 html[data-player-design="d"] #watch-panel .d-controls{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:0}
 html[data-player-design="d"] #watch-panel .d-preferences{border-top:0;border-inline-start:1px solid #263b2c}
 html[data-player-design="d"] #watch-panel .d-controls .player-tool{min-height:48px}
 html[data-player-design="d"] #watch-panel.is-locked .screen-section{overflow-y:auto}
 html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout{width:min(550px,100%);margin:0 auto 8px}
}
@media(hover:hover) and (pointer:fine){html[data-player-design="d"] #watch-panel #close-player:hover{background:#ffffff1c}}
@media(hover:none){html[data-player-design="d"] #watch-panel .d-controls .player-tool:hover:not(:active){background:transparent}}

/* Optional editorial jump; seek input remains the original Video.js control. */
html[data-player-design="d"] #watch-panel .highlight-jump{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:center;flex:0 1 auto;min-width:0;height:44px;margin:0 auto;padding:0 13px;border:1.5px solid #e8c477;border-radius:24px;background:#06251b;color:#f5d58d;font:600 14px/1.2 var(--sans,system-ui);white-space:nowrap;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent}
html[data-player-design="d"] #watch-panel .highlight-jump[hidden]{display:none}
html[data-player-design="d"] #watch-panel .highlight-jump b{font:500 13px/1 var(--sans,system-ui);letter-spacing:0}
html[data-player-design="d"] #watch-panel .highlight-jump:active{background:#164d37}
html[data-player-design="d"] #watch-panel .highlight-jump:focus-visible{outline:2px solid #fff1c5;outline-offset:2px}
html[data-player-design="d"] #watch-panel .highlight-jump:disabled{opacity:.5;cursor:default}
html[data-player-design="d"] #watch-panel .highlight-message{position:absolute;bottom:100px;left:12px;right:12px;z-index:5;padding:10px 12px;border:1px solid #9b814d;border-radius:8px;background:#06251bf2;color:#f5d58d;font:500 13px/1.5 var(--sans,system-ui);text-align:center;pointer-events:none}
html[data-player-design="d"] #watch-panel .highlight-message[hidden]{display:none}
@media(max-width:600px){
 html[data-player-design="d"] #watch-panel .has-highlight .vjs-control-bar>.vjs-button,
 html[data-player-design="d"] #watch-panel .has-highlight .vjs-mute-control{width:44px;flex-basis:44px}
 html[data-player-design="d"] #watch-panel .highlight-jump{margin:0 auto;padding:0 9px;font-size:12px}
 html[data-player-design="d"] #watch-panel .highlight-jump b{font-size:12px}
 html[data-player-design="d"] #watch-panel .has-highlight .vjs-remaining-time{min-width:42px;padding:0 2px;font-size:11px}
}

html[data-player-design="d"] #watch-panel .has-highlight .vjs-text-track-display{bottom:120px}
html[data-player-design="d"] #watch-panel .has-highlight .highlight-message{bottom:124px}

html[data-player-design="d"] #watch-panel .has-highlight .vjs-remaining-time{margin-inline-start:0}
@media(max-width:600px){
 html[data-player-design="d"] #watch-panel .has-highlight .vjs-volume-control.vjs-volume-horizontal:not(.vjs-hidden){width:clamp(44px,15vw,64px)}
 html[data-player-design="d"] #watch-panel .has-highlight .vjs-remaining-time{position:absolute;top:-22px;right:max(16px,env(safe-area-inset-right));height:22px;line-height:22px}
}

/* User reference: a balanced title, two-column directory, and gold unlock card. */
html[data-player-design="d"] #watch-panel #active-caption{font-size:clamp(16px,2vw,22px);gap:10px}
html[data-player-design="d"] #watch-panel .player-series-name{font-weight:750}
html[data-player-design="d"] #watch-panel .player-episode-name{font-size:inherit;font-weight:400;color:#f2eee4;opacity:1}
html[data-player-design="d"] #watch-panel .player-episode-name:before{color:#f2eee4}
html[data-player-design="d"] #watch-panel #close-player svg{width:26px;height:26px;stroke-width:2.3}
html[data-player-design="d"] #watch-panel .watch-episodes{background:var(--bg);border-color:var(--line)}
html[data-player-design="d"] #watch-panel .watch-episodes-head{border:0;padding-bottom:18px}
html[data-player-design="d"] #watch-panel .watch-episodes-head h3{font-size:26px;font-weight:700;color:var(--text)}
html[data-player-design="d"] #watch-panel .watch-episodes-head>div:first-child>span,
html[data-player-design="d"] #watch-panel #watch-episode-total{display:none}
html[data-player-design="d"] #watch-panel .player-episode-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 2px 16px;align-content:start}
html[data-player-design="d"] #watch-panel .player-episode-button{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;min-height:80px;padding:14px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);text-align:start;overflow:hidden}
html[data-player-design="d"] #watch-panel .player-episode-button>strong{grid-row:1;grid-column:1;width:auto;height:auto;min-width:0;padding:0;background:none;color:var(--text);font-size:28px;font-weight:750;border:0}
html[data-player-design="d"] #watch-panel .player-episode-button>span{grid-row:1;grid-column:2;min-width:0;padding:0;text-align:end}
html[data-player-design="d"] #watch-panel .player-episode-button b{display:none}
html[data-player-design="d"] #watch-panel .player-episode-button small{color:var(--text);font-size:13px;font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
html[data-player-design="d"] #watch-panel .player-episode-button i{position:static;flex:0 0 15px;width:15px;height:15px;line-height:1;color:var(--gold)}
html[data-player-design="d"] #watch-panel .player-episode-button i:empty{display:none}
html[data-player-design="d"] #watch-panel .player-episode-button i svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
html[data-player-design="d"] #watch-panel .player-episode-button.is-locked small{color:var(--gold)}
html[data-player-design="d"] #watch-panel .player-episode-button[aria-current=true]{background:#17251f;border-color:#347e63;box-shadow:none}
html[data-player-design="d"] #watch-panel .player-episode-button.is-playing i{color:#67ebba}
html[data-player-design="d"] #watch-panel .player-episode-button.is-playing i svg{fill:currentColor;stroke:none}
html[data-player-design="d"] #watch-panel .episode-drawer-close{width:44px;height:44px;border:0;background:none;color:#fff;font-size:32px}
html[data-player-design="d"] #watch-panel .watch-episodes-foot{color:var(--muted)}
@media(min-width:900px) and (min-height:561px){html[data-player-design="d"] #watch-panel .watch-panel-grid{grid-template-columns:minmax(0,1fr) 380px}}
html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout{width:min(550px,calc(100% - 24px));max-width:550px;margin:16px auto;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 14px 50px #0004}
html[data-player-design="d"] #watch-panel #checkout-form{padding:24px 20px;text-align:center}
html[data-player-design="d"] #watch-panel #checkout-form .checkout-icon{display:block!important;margin:0 auto 12px;color:var(--gold)}
html[data-player-design="d"] #watch-panel #checkout-form .checkout-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-player-design="d"] #watch-panel #checkout-title{font-size:clamp(26px,3vw,34px);font-weight:750;margin-bottom:10px;letter-spacing:.02em}
html[data-player-design="d"] #watch-panel #checkout-description{font-size:14px;line-height:1.6;color:var(--muted)}
html[data-player-design="d"] #watch-panel .checkout-money-row{display:block;margin:18px 0;padding:0;border:0}
html[data-player-design="d"] #watch-panel .checkout-summary{align-items:center;gap:14px;color:var(--text);font-size:18px}
html[data-player-design="d"] #watch-panel #checkout-episode{display:flex;align-items:center;gap:16px;justify-content:center;width:100%;font-weight:500}
html[data-player-design="d"] #watch-panel #checkout-episode:before,
html[data-player-design="d"] #watch-panel #checkout-episode:after{content:'';width:20%;height:1px;background:linear-gradient(90deg,transparent,var(--line))}
html[data-player-design="d"] #watch-panel #checkout-episode:after{transform:rotate(180deg)}
html[data-player-design="d"] #watch-panel #checkout-price{justify-content:center;font-size:clamp(32px,5vw,46px);font-weight:750;gap:10px;color:var(--gold)}
html[data-player-design="d"] #watch-panel #checkout-price:before{width:36px;height:36px;flex-basis:36px}
html[data-player-design="d"] #watch-panel .checkout-balances{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;border-block:1px solid var(--line);padding:14px 0;margin:20px 0}
html[data-player-design="d"] #watch-panel #checkout-balance{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;color:var(--muted)!important;font-size:13px!important;line-height:1.5!important}
html[data-player-design="d"] #watch-panel #checkout-balance strong{font-size:18px;color:var(--text)}
html[data-player-design="d"] #watch-panel #checkout-after{margin:0;padding-inline-start:12px;border-inline-start:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.5}
html[data-player-design="d"] #watch-panel .checkout-balances:has(#checkout-balance[hidden]){display:none}
html[data-player-design="d"] #watch-panel .checkout-balances:has(#checkout-after:empty){grid-template-columns:1fr}
html[data-player-design="d"] #watch-panel #checkout-submit,
html[data-player-design="d"] #watch-panel #checkout-topup{background:var(--accent);border:1px solid transparent;color:#071611;box-shadow:none;min-height:54px;font-size:18px;font-weight:750;border-radius:14px}
html[data-player-design="d"] #watch-panel.is-locked .player-frame{flex:0 0 66px;min-height:66px;height:66px!important}
html[data-player-design="d"] #watch-panel.is-locked #checkout-dialog.d-inline-checkout{margin-block:auto}
html[data-player-design="d"] #watch-panel.is-locked .d-controls{margin-top:16px}
@media(max-width:360px){
 html[data-player-design="d"] #watch-panel #active-caption{font-size:14px;gap:5px}
 html[data-player-design="d"] #watch-panel .player-episode-button{padding:12px 9px;gap:6px}
 html[data-player-design="d"] #watch-panel .player-episode-button>strong{font-size:24px}
 html[data-player-design="d"] #watch-panel .player-episode-button small{font-size:11px}
 html[data-player-design="d"] #watch-panel #checkout-form{padding:18px 14px}
}
@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel #checkout-form{padding:14px 20px}
 html[data-player-design="d"] #watch-panel #checkout-form .checkout-icon{margin-bottom:6px}
 html[data-player-design="d"] #watch-panel #checkout-title{font-size:24px;margin-bottom:4px}
 html[data-player-design="d"] #watch-panel .checkout-money-row{margin:10px 0}
 html[data-player-design="d"] #watch-panel .checkout-summary{gap:6px}
 html[data-player-design="d"] #watch-panel .checkout-balances{margin:12px 0;padding:9px 0}
 html[data-player-design="d"] #watch-panel #checkout-price{font-size:32px}
}

html[data-player-design="d"] #watch-panel .player-episode-button>span{display:flex;align-items:center;justify-content:flex-end;gap:6px}
html[data-player-design="d"] #watch-panel #player-episode-list-update-note{justify-content:flex-start;border:0;background:none;padding:8px 2px;color:var(--muted);font-size:13px;margin-top:6px}
html[data-player-design="d"] #watch-panel #player-episode-list-update-note:before{content:"";margin:0;background:var(--muted);width:5px;height:5px}

/* Quiet black/gold palette; close remains a 44px touch target. */
html[data-player-design="d"] #watch-panel #checkout-form{position:relative;color:var(--text)}
html[data-player-design="d"] #watch-panel #checkout-title{color:var(--text)}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog{display:grid!important;place-items:center;position:absolute;top:8px;right:8px;left:auto;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--gold);box-shadow:none;cursor:pointer;touch-action:manipulation}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:focus-visible{outline:2px solid var(--gold);outline-offset:0}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:active{background:#d7b77b20}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:disabled{opacity:.4;cursor:wait}
@media(hover:hover){html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:hover{background:#d7b77b14}}

/* Match the existing homepage/details tokens; keep only the standalone brand. */
html[data-player-design="d"] #watch-panel{background:var(--bg);color:var(--text)}
html[data-player-design="d"] #watch-panel .watch-dialog-shell{background:none}
html[data-player-design="d"] #watch-panel .player-cover{background:var(--bg)}
html[data-player-design="d"] #watch-panel .video-js,
html[data-player-design="d"] #watch-panel:not(.is-locked) .player-frame{background:var(--bg)}
html[data-player-design="d"] #watch-panel .video-js .vjs-poster{background:var(--bg)!important}
html[data-player-design="d"] #watch-panel .video-js .vjs-poster img{display:none}
html[data-player-design="d"] #watch-panel .player-brand{justify-content:center;gap:14px;color:#e0c28a;flex:0 0 auto;pointer-events:none}
html[data-player-design="d"] #watch-panel .player-brand .brand-emblem{width:65px;height:74px}
html[data-player-design="d"] #watch-panel .player-brand .brand-cn{font-size:46px;letter-spacing:5px}
html[data-player-design="d"] #watch-panel .player-brand .brand-cn small{font-size:10px;letter-spacing:5px;margin-top:9px}
html[data-player-design="d"] #watch-panel .player-idle-brand{display:none}
html[data-player-design="d"] #watch-panel .vjs-has-started .player-idle-brand{display:none}
html[data-player-design="d"] #watch-panel .checkout-stage{display:none}
html[data-player-design="d"] #watch-panel.is-locked .checkout-stage{display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:20px 0 28px;width:100%}
html[data-player-design="d"] #watch-panel.is-locked #checkout-dialog.d-inline-checkout{margin:0 auto;flex:0 0 auto;background:var(--surface)}
html[data-player-design="d"] #watch-panel .d-controls{background:var(--bg);border-color:var(--line)}
html[data-player-design="d"] #watch-panel .d-preferences{border-color:var(--line)}
html[data-player-design="d"] #watch-panel .d-controls .player-tool{color:var(--text)}
html[data-player-design="d"] #watch-panel .watch-episodes{background:var(--bg);border-color:var(--line)}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog{color:var(--muted)}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:focus-visible{outline-color:var(--accent)}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog:active{background:#ffffff10}
html[data-player-design="d"] #watch-panel #checkout-episode:before,
html[data-player-design="d"] #watch-panel #checkout-episode:after{background:var(--line)}
html[data-player-design="d"] #watch-panel .player-episode-button.is-playing i{color:var(--accent)}
@media(hover:hover){
 html[data-player-design="d"] #watch-panel #checkout-submit:hover,
 html[data-player-design="d"] #watch-panel #checkout-topup:hover{background:var(--accent-hover)}
 html[data-player-design="d"] #watch-panel .player-episode-button:hover{background:#232725;border-color:#565449}
}
@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel.is-locked .checkout-stage{flex:0 0 auto;gap:14px;padding:8px 0 20px}
 html[data-player-design="d"] #watch-panel .checkout-stage .brand-emblem{width:40px;height:44px}
 html[data-player-design="d"] #watch-panel .checkout-stage .brand-cn{font-size:30px}
 html[data-player-design="d"] #watch-panel .checkout-stage .brand-cn small{font-size:7px;letter-spacing:3px;margin-top:5px}
}

/* Cue percentages use the full media viewport for native and emulated tracks. */
html[data-player-design="d"] #watch-panel .video-js .honglou-replaced-volume{display:none!important}
html[data-player-design="d"] #watch-panel .video-js .vjs-text-track-display,
html[data-player-design="d"] #watch-panel .has-highlight .vjs-text-track-display{inset:0;pointer-events:none}
html[data-player-design="d"] #watch-panel .honglou-volume-slider{appearance:none;-webkit-appearance:none;display:block;flex:0 0 auto;width:clamp(64px,15vw,96px);height:44px;margin:0 10px 0 0;padding:0;border:0;border-radius:0;box-shadow:none;background:linear-gradient(to right,#64dcb4 0 var(--volume-fill,100%),#ffffff55 var(--volume-fill,100%) 100%) center/100% 6px no-repeat;touch-action:none;cursor:pointer;direction:ltr}
html[data-player-design="d"] #watch-panel .honglou-volume-slider::-webkit-slider-runnable-track{height:6px;background:transparent;border-radius:3px}
html[data-player-design="d"] #watch-panel .honglou-volume-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:0;border-radius:50%;background:#fff;margin-top:-5px;box-shadow:0 1px 4px #0005}
html[data-player-design="d"] #watch-panel .honglou-volume-slider::-moz-range-track{height:6px;background:transparent;border:0}
html[data-player-design="d"] #watch-panel .honglou-volume-slider::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#fff}
html[data-player-design="d"] #watch-panel .honglou-volume-slider:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
html[data-player-design="d"] #watch-panel .volume-message{position:absolute;top:70px;left:16px;right:16px;z-index:6;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:500 13px/1.5 var(--sans,system-ui);text-align:center;pointer-events:none}
html[data-player-design="d"] #watch-panel .volume-message[hidden]{display:none}
@media(max-width:600px){html[data-player-design="d"] #watch-panel .has-highlight .honglou-volume-slider{width:clamp(48px,15vw,64px);margin-right:8px}}

/* Short landscape viewports: keep the unlock card inside the player viewport.
   The card scrolls independently when translated copy or balances need space. */
@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel.is-locked .screen-section{overflow:hidden}
 html[data-player-design="d"] #watch-panel.is-locked .player-frame{flex-basis:56px;min-height:56px;height:56px!important}
 html[data-player-design="d"] #watch-panel.is-locked .checkout-stage{flex:1 1 0;min-height:0;gap:0;padding:4px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));box-sizing:border-box;overflow:hidden}
 html[data-player-design="d"] #watch-panel.is-locked .checkout-stage>.player-brand{display:none}
 html[data-player-design="d"] #watch-panel.is-locked #checkout-dialog.d-inline-checkout{flex:0 1 auto;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:12px}
 html[data-player-design="d"] #watch-panel.is-locked .d-controls{margin-top:0}
}

@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel #checkout-form .checkout-icon{display:none!important}
 html[data-player-design="d"] #watch-panel #checkout-form{padding-top:14px;padding-bottom:14px}
 html[data-player-design="d"] #watch-panel #checkout-title{padding-inline:32px}
}
