/* Design D: the video, inline unlock, and two always-visible control rows. Local preview only. */
html[data-player-design="d"] #watch-panel{background:#080e0c url('/player-poster.webp?v=20261203.1') center/cover no-repeat;color:#f0f2ed;overflow:hidden}
html[data-player-design="d"] #watch-panel .watch-dialog-shell{height:100%;min-height:0;background:linear-gradient(180deg,#06100b38 0%,#06100b33 32%,#06100bba 76%,#06100bf2 100%)}
html[data-player-design="d"] #watch-panel .watch-panel-head{flex:0 0 auto;min-height:60px;margin:0;padding:7px 16px;gap:10px;border-bottom:1px solid #ffffff0c;background:#08110bc9}
html[data-player-design="d"] #watch-panel .watch-panel-title{gap:3px;min-width:0}
html[data-player-design="d"] #watch-panel .watch-panel-title>#screen-heading{display:none;color:#bdab81;font-size:9px;font-weight:650;letter-spacing:.12em}
html[data-player-design="d"] #watch-panel .watch-panel-title strong{font-size:14px;line-height:1.45;letter-spacing:0}
html[data-player-design="d"] #watch-panel .watch-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #374a3e;border-radius:50%;background:#19271f;color:#d5ded7;font-size:25px}
html[data-player-design="d"] #watch-panel .design-back{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;padding:6px 9px;font-size:11px;color:#bca87c}
html[data-player-design="d"] #watch-panel .watch-panel-grid{display:grid;flex:1;min-height:0;width:100%;max-width:1240px;margin-inline:auto;grid-template-columns:minmax(0,1fr) 280px;gap:0;align-items:stretch;overflow:clip}
html[data-player-design="d"] #watch-panel .screen-section{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;align-self:stretch;min-width:0;min-height:0;width:100%;max-width:none;height:100%;padding:8px 20px 10px;gap:0;overflow-y:auto;overscroll-behavior:contain;background:transparent;scrollbar-width:thin;scrollbar-color:#344d3d transparent}
html[data-player-design="d"] #watch-panel .screen-heading{flex:0 0 auto;display:none;justify-content:flex-end;width:min(100%,550px);margin:0 0 5px;min-height:14px;line-height:14px}
html[data-player-design="d"] #watch-panel #screen-count{font-size:10px;line-height:14px;letter-spacing:.14em;color:#ae9e78;font-variant-numeric:tabular-nums}
html[data-player-design="d"] #watch-panel .player-frame{flex:0 0 auto;width:min(100%,calc((100dvh - 230px)*9/16));height:auto;max-width:480px;max-height:none;aspect-ratio:9/16;margin:0 auto 10px;border:1px solid #314238;border-radius:16px;background:#080d0b;box-shadow:0 14px 50px #0005;overflow:hidden}
html[data-player-design="d"] #watch-panel .player-frame .video-js{position:absolute;inset:0;width:100%;height:100%;background:#080d0b}
html[data-player-design="d"] #watch-panel .video-js .vjs-tech{object-fit:contain}
html[data-player-design="d"] #watch-panel .video-js .vjs-control-bar{height:46px;padding-top:8px;background:linear-gradient(transparent,#060b09f2);font-size:11px}
html[data-player-design="d"] #watch-panel .video-js .vjs-progress-control{min-width:40px}
html[data-player-design="d"] #watch-panel .video-js .vjs-big-play-button{background:#26d3a1;border-color:#77e5c3;color:#07271b}
html[data-player-design="d"] #watch-panel.media-landscape:not(.is-locked) .player-frame{width:min(100%,820px);height:auto!important;max-width:820px;max-height:none;aspect-ratio:16/9}
html[data-player-design="d"] #watch-panel .player-cover{padding:24px 20px;gap:0;background:linear-gradient(180deg,#07110b1a,#07110b99),url('/player-poster.webp?v=20261203.1') center/cover}
html[data-player-design="d"] #watch-panel.is-locked .player-frame{flex:1 0 120px;width:100%;height:auto!important;max-width:none;max-height:none;min-height:120px;aspect-ratio:auto;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-player-design="d"] #watch-panel.is-locked .player-cover{background:transparent}
html[data-player-design="d"] #watch-panel.is-locked .player-cover>*{display:none!important}
html[data-player-design="d"] #watch-panel.is-locked .player-frame .video-js{visibility:hidden}

/* The lock state is part of the current player, not another obstructing modal. */
html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout{position:relative;inset:auto;flex:0 0 auto;display:block;width:min(100%,550px);height:auto;max-width:550px;min-height:0;max-height:none;margin:0 auto 10px;padding:0;overflow:visible;border:1px solid #e5cd8926;border-radius:16px;background:#08130dd9;color:#edf2eb;box-shadow:none;transform:none}
html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout:not([open]){display:none}
html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout::backdrop{background:transparent;backdrop-filter:none}
html[data-player-design="d"] #watch-panel #checkout-form{display:block;padding:18px;min-height:0;text-align:start}
html[data-player-design="d"] #watch-panel #checkout-form .close-dialog,
html[data-player-design="d"] #watch-panel #checkout-form .checkout-brand,
html[data-player-design="d"] #watch-panel #checkout-form .checkout-icon,
html[data-player-design="d"] #watch-panel #checkout-form .test-label{display:none!important}
html[data-player-design="d"] #watch-panel #checkout-title{font:650 22px/1.3 var(--sans,system-ui);letter-spacing:-.02em;margin:0 0 5px;color:#f3f3ed;text-wrap:balance}
html[data-player-design="d"] #watch-panel #checkout-description{font:400 12px/1.5 var(--sans,system-ui);max-width:none;margin:0;color:#acbfb1;text-wrap:pretty}
html[data-player-design="d"] #watch-panel .checkout-money-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0 0;padding:11px 0;border-block:1px solid #2c4133}
html[data-player-design="d"] #watch-panel .checkout-summary{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:0;margin:0;border:0;color:#9eafa4;font-size:11px;line-height:1.4}
html[data-player-design="d"] #watch-panel #checkout-price{display:flex;align-items:center;gap:5px;color:#ecd18b;font:650 21px/1.25 var(--sans,system-ui);font-variant-numeric:tabular-nums;white-space:normal}
html[data-player-design="d"] #watch-panel #checkout-price:before{content:'';flex:0 0 20px;width:20px;height:20px;display:inline-block;background:url('/ui/reward-coin.svg') center/contain no-repeat}
html[data-player-design="d"] #watch-panel #checkout-balance{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding:0;margin:0!important;border:0;color:#9eafa4!important;font:400 11px/1.4 var(--sans,system-ui)!important}
html[data-player-design="d"] #watch-panel #checkout-balance strong{color:#f0f3eb;font:600 21px/1.25 var(--sans,system-ui);font-variant-numeric:tabular-nums}
html[data-player-design="d"] #watch-panel #checkout-after{margin:8px 0 10px;color:#a7bbac;font:400 11px/1.4 var(--sans,system-ui);text-wrap:pretty}
html[data-player-design="d"] #watch-panel #checkout-form .button{min-height:48px;width:100%;margin:0;border-radius:11px;padding:11px 14px;font:700 14px/1.35 var(--sans,system-ui);gap:8px}
html[data-player-design="d"] #watch-panel #checkout-submit,
html[data-player-design="d"] #watch-panel #checkout-topup{background:#2ad3a0;color:#06291b;border:1px solid #56e2b9;box-shadow:0 5px 18px #0bc48b15}
html[data-player-design="d"] #watch-panel #checkout-form #checkout-submit:disabled{min-height:48px;background:#244a3b;color:#cadbd2;border:1px solid #416656;box-shadow:none;font-size:14px}
html[data-player-design="d"] #watch-panel #checkout-form:has(#checkout-topup:not([hidden])) #checkout-submit:disabled{display:none}
html[data-player-design="d"] #watch-panel #checkout-error{margin:8px 0!important;font-size:12px!important;line-height:1.45!important}

/* Every playback option stays visible. Two precise rows, no horizontal scroll. */
html[data-player-design="d"] #watch-panel .d-controls{position:relative;flex:0 0 auto;width:min(100%,550px);margin:0 auto;padding:0 4px;border:0;border-top:1px solid #2a4031;background:#08130de8;border-radius:12px;overflow:visible}
html[data-player-design="d"] #watch-panel .d-transport,
html[data-player-design="d"] #watch-panel .d-preferences{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;min-width:0;padding:5px 0}
html[data-player-design="d"] #watch-panel .d-preferences{border-top:1px solid #263b2c;padding-bottom:4px}
html[data-player-design="d"] #watch-panel .d-controls .player-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:53px;height:auto;margin:0;padding:5px 3px;border:0;border-radius:9px;background:transparent;color:#d6e0d8;font-family:var(--sans,system-ui);text-align:center}
html[data-player-design="d"] #watch-panel .d-controls .player-tool>span{display:flex;align-items:center;justify-content:center;min-height:22px;font-size:19px;line-height:22px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html[data-player-design="d"] #watch-panel .d-controls .player-tool svg{width:21px;height:21px;stroke-width:1.65;fill:none}
html[data-player-design="d"] #watch-panel .d-controls .player-tool b{font-size:11px;line-height:1.3;letter-spacing:0;font-weight:500;white-space:normal;text-overflow:clip;overflow:visible;max-width:100%;overflow-wrap:anywhere}
html[data-player-design="d"] #watch-panel .d-controls .player-tool:hover:not(:disabled){background:#20362a;color:#edcf90}
html[data-player-design="d"] #watch-panel .d-controls .player-tool:active:not(:disabled){background:#2b4232;transform:translateY(1px)}
html[data-player-design="d"] #watch-panel .d-controls .player-tool:disabled{background:transparent;color:#71877a;opacity:.65;cursor:not-allowed}
html[data-player-design="d"] #watch-panel #next-button:not(:disabled){color:#71eac1}
html[data-player-design="d"] #watch-panel #episode-drawer-toggle{display:flex;order:0;color:#e4c98c}
html[data-player-design="d"] #watch-panel #speed-value{color:#e0cc9d;font-weight:600}
html[data-player-design="d"] #watch-panel #autonext-button .toggle-indicator{position:relative;display:block;min-height:18px;width:31px;height:18px;border-radius:20px;background:#35463b;box-shadow:none;margin:2px 0;transition:background .15s}
html[data-player-design="d"] #watch-panel #autonext-button .toggle-indicator:after{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#a5b3aa;transition:transform .15s}
html[data-player-design="d"] #watch-panel #autonext-button.is-active{color:#8ad8b5;background:transparent}
html[data-player-design="d"] #watch-panel #autonext-button.is-active .toggle-indicator{background:#277456}
html[data-player-design="d"] #watch-panel #autonext-button.is-active .toggle-indicator:after{background:#a4f1cf;transform:translateX(13px)}
html[data-player-design="d"] #watch-panel #player-settings-button,
html[data-player-design="d"] #watch-panel .player-settings-panel{display:none!important}

html[data-player-design="d"] #watch-panel .player-bottom{flex:0 0 auto;display:none;flex-direction:row;align-items:center;justify-content:space-between;width:min(100%,550px);max-width:none;min-height:17px;margin:4px auto 0;padding:0 4px;color:#809a88;font-size:10px;line-height:1.3}
html[data-player-design="d"] #watch-panel .player-bottom .age-tag{font-size:8px;padding:3px 4px;line-height:1;border-color:#344738;color:#98aa9b}
html[data-player-design="d"] #watch-panel .playback-status{flex:0 0 auto;width:min(100%,550px);max-width:none;min-height:0;margin:3px auto 0;padding:0;color:#a2b7a8;font-size:10px;line-height:1.35;text-align:center}
html[data-player-design="d"] #watch-panel .playback-status:empty,.playback-status[hidden]{display:none}

html[data-player-design="d"] #watch-panel .watch-episodes{position:static;display:flex;visibility:visible;min-height:0;height:100%;max-height:none;padding:22px 15px;border-left:1px solid #273e2e;border-top:0;border-radius:0;background:#101d15;transform:none;box-shadow:none}
html[data-player-design="d"] #watch-panel .watch-episodes-head{align-items:center;padding:0 2px 15px;border-color:#2c4334}
html[data-player-design="d"] #watch-panel .watch-episodes-head h3{font-size:19px;line-height:1.35}
html[data-player-design="d"] #watch-panel .watch-episodes-head>div:first-child>span{font-size:8px;line-height:1.3;color:#b9a575}
html[data-player-design="d"] #watch-panel .player-episode-list{grid-template-columns:1fr;gap:8px;padding:14px 0 10px}
html[data-player-design="d"] #watch-panel .player-episode-button{min-height:66px;grid-template-columns:36px minmax(0,1fr) 18px;gap:9px;padding:9px;border-color:#2f4536;border-radius:10px;background:#17261c}
html[data-player-design="d"] #watch-panel .player-episode-button>strong{width:36px;height:38px;background:#26382a;color:#ddd2b2;font-size:14px;border-radius:7px}
html[data-player-design="d"] #watch-panel .player-episode-button b{font-size:12px;line-height:1.4}
html[data-player-design="d"] #watch-panel .player-episode-button small{font-size:10px;line-height:1.3}
html[data-player-design="d"] #watch-panel .player-episode-button[aria-current=true]{border-color:#a39361;background:#2a3020}
html[data-player-design="d"] #watch-panel .episode-drawer-close{display:none}

@media(max-width:899px){
 html[data-player-design="d"] #watch-panel .watch-panel-head{min-height:58px;padding:6px 12px;padding-top:max(6px,env(safe-area-inset-top))}
 html[data-player-design="d"] #watch-panel .watch-panel-grid{display:block;position:relative;max-width:none}
 html[data-player-design="d"] #watch-panel .screen-section{padding:6px 12px max(7px,env(safe-area-inset-bottom));height:100%}
 html[data-player-design="d"] #watch-panel .player-frame{width:min(100%,calc((100dvh - 230px)*9/16));height:auto;max-width:480px;max-height:none;flex:0 0 auto;margin-bottom:8px;border-radius:14px}
 html[data-player-design="d"] #watch-panel.is-locked .player-frame{flex:1 0 120px;width:100%;height:auto!important;margin:0;border:0;border-radius:0}
 html[data-player-design="d"] #watch-panel .screen-heading{width:min(100%,550px);margin-bottom:4px}
 html[data-player-design="d"] #watch-panel .d-controls{margin-top:auto}
 html[data-player-design="d"] #watch-panel.is-locked .d-controls{margin-top:0}
 html[data-player-design="d"] #watch-panel .watch-episodes{position:absolute;z-index:15;inset:auto 0 0;display:flex;visibility:hidden;width:100%;height:auto;max-height:70%;padding:19px 16px max(16px,env(safe-area-inset-bottom));border-top:1px solid #49634f;border-left:0;border-radius:20px 20px 0 0;background:#14251bf9;box-shadow:0 -20px 70px #000b;transform:translateY(105%);transition:transform .2s ease,visibility .2s}
 html[data-player-design="d"] #watch-panel.episodes-open .watch-episodes{visibility:visible;transform:translateY(0)}
 html[data-player-design="d"] #watch-panel .episode-drawer-close{display:grid;width:44px;height:44px;border-color:#3d5746;background:#1b3022}
 html[data-player-design="d"] #watch-panel .player-episode-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
@media(min-width:600px) and (max-width:899px){
 html[data-player-design="d"] #watch-panel .screen-section{padding-inline:24px}
 html[data-player-design="d"] #watch-panel .d-controls .player-tool{min-height:58px}
 html[data-player-design="d"] #watch-panel .d-controls .player-tool b{font-size:11px}
}
@media(max-width:380px){
 html[data-player-design="d"] #watch-panel .watch-panel-title strong{font-size:13px}
 html[data-player-design="d"] #watch-panel .watch-panel-head{gap:6px;padding-inline:10px}
 html[data-player-design="d"] #watch-panel .screen-section{padding-inline:9px}
 html[data-player-design="d"] #watch-panel #checkout-form{padding-inline:14px}
 html[data-player-design="d"] #watch-panel #checkout-title{font-size:20px}
 html[data-player-design="d"] #watch-panel .d-controls{padding-inline:0}
 html[data-player-design="d"] #watch-panel .d-transport,
 html[data-player-design="d"] #watch-panel .d-preferences{gap:2px}
}
@media(max-height:560px) and (orientation:landscape){
 html[data-player-design="d"] #watch-panel .watch-panel-head{min-height:54px;padding-block:4px}
 html[data-player-design="d"] #watch-panel .watch-panel-grid{display:block;position:relative}
 html[data-player-design="d"] #watch-panel .screen-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,40%);grid-auto-rows:min-content;align-content:start;align-items:start;column-gap:16px;padding:8px 14px 12px;overflow-y:auto;height:100%}
 html[data-player-design="d"] #watch-panel .screen-heading{grid-column:1;margin-bottom:4px}
 html[data-player-design="d"] #watch-panel .player-frame{grid-column:1;grid-row:2/span 4;width:min(100%,calc((100dvh - 90px)*9/16));height:auto;margin:0 auto}
 html[data-player-design="d"] #watch-panel.media-landscape:not(.is-locked) .player-frame{width:100%;max-width:none;aspect-ratio:16/9}
 html[data-player-design="d"] #watch-panel .d-controls{grid-column:2;grid-row:2;margin:0;width:100%}
 html[data-player-design="d"] #watch-panel .playback-status{grid-column:2;grid-row:3}
 html[data-player-design="d"] #watch-panel .player-bottom{grid-column:2;grid-row:4}
 html[data-player-design="d"] #watch-panel.is-locked .player-frame{grid-column:1;grid-row:1;min-height:0;width:100%;height:110px!important;border:0;border-radius:0}
 html[data-player-design="d"] #watch-panel #checkout-dialog.d-inline-checkout{grid-column:2;grid-row:1/span 3;width:100%;margin:0 0 8px;border:1px solid #314238;border-radius:14px}
 html[data-player-design="d"] #watch-panel #checkout-form{padding:13px}
 html[data-player-design="d"] #watch-panel.is-locked .d-controls{grid-column:1;grid-row:2;margin-top:10px}
 html[data-player-design="d"] #watch-panel .watch-episodes{position:absolute;visibility:hidden;inset:auto 0 0;max-height:88%;height:auto;transform:translateY(105%);border-radius:18px 18px 0 0;border-top:1px solid #49634f;box-shadow:0 -14px 50px #000b}
 html[data-player-design="d"] #watch-panel.episodes-open .watch-episodes{visibility:visible;transform:translateY(0)}
 html[data-player-design="d"] #watch-panel .episode-drawer-close{display:grid}
}
@media(prefers-reduced-motion:reduce){
 html[data-player-design="d"] #watch-panel .player-tool,
 html[data-player-design="d"] #watch-panel .watch-episodes,
 html[data-player-design="d"] #watch-panel .toggle-indicator,
 html[data-player-design="d"] #watch-panel .toggle-indicator:after{transition:none}
}


/* 多语言字幕切换菜单 */
#watch-panel .d-preferences .player-subtitle-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
#watch-panel .d-preferences .player-subtitle {
  width: 100%;
}
#watch-panel .d-preferences .player-subtitle.is-active {
  color: #34d399;
}
#watch-panel .d-preferences .player-subtitle-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 132px;
  max-height: 240px;
  overflow-y: auto;
  background: rgba(16, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#watch-panel .d-preferences .player-subtitle-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
#watch-panel .d-preferences .player-subtitle-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
#watch-panel .d-preferences .player-subtitle-item.is-selected {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  font-weight: 600;
}
#watch-panel .d-preferences .player-subtitle-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  text-align: center;
}
