:root{color-scheme:dark}
html,body{width:100%;height:100%;min-height:0;overflow:hidden;margin:0;background:#0a0b0e;color:#f3f3ee}
*,*::before,*::after{box-sizing:border-box}
body.watch-page{font-family:var(--font-body),system-ui,sans-serif;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;height:var(--visual-height,100dvh);min-height:0;max-height:var(--visual-height,100dvh)}
.watch-header{height:68px;min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3vw,54px);border-bottom:1px solid rgba(255,255,255,.10)}
.watch-header a{text-decoration:none;color:inherit}
.watch-back{display:flex;align-items:center;gap:12px;color:#c2c1bd!important;font-size:13px;white-space:nowrap;transition:color .25s,transform .3s}
.watch-back span:first-child{font-size:24px;font-family:var(--font-body);line-height:1}
.watch-back:hover{transform:translateX(-3px);color:#fff!important}
.watch-brand{width:142px;max-width:35vw;height:44px;display:flex;align-items:center;justify-content:flex-end;overflow:hidden}
.watch-brand img{display:block;width:100%;height:100%;object-fit:contain;object-position:center right}
.watch-main{flex:1;min-height:0;width:100%;max-width:1900px;margin-inline:auto;padding:clamp(14px,2vw,32px) clamp(16px,3vw,54px);display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,25vw,380px);gap:clamp(15px,2.2vw,32px);overflow:hidden}
.watch-primary{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:clamp(14px,1.5vw,22px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.watch-stage{flex:none;position:relative;background:#020304;width:min(100%,var(--watch-fit-width,100%));aspect-ratio:16/9;overflow:hidden;border-radius:12px;box-shadow:0 12px 36px #0007}
.watch-stage iframe{display:block;width:100%;height:100%;border:0;background:#000}
.watch-primary h1{font-weight:700;font-size:clamp(19px,1.65vw,29px);letter-spacing:-.038em;line-height:1.35;max-width:100%;margin:0;text-wrap:pretty;overflow-wrap:anywhere}
/* 标题下一行：作者 + 去哔哩哔哩看。播放器是第三方 iframe，万一它自己出错
   （区域限制、防盗链、稿件被隐藏），这一行是访客唯一还能走的路。 */
.watch-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:calc(-1 * clamp(6px, .6vw, 10px)) 0 0;color:#a6a8a8;font-size:13px;line-height:1.5}
.watch-meta[hidden]{display:none}
#watch-author:empty{display:none}
.watch-source{display:inline-flex;align-items:center;gap:5px;min-height:28px;color:var(--gold,#f2c14e);text-decoration:none;transition:color .25s var(--ease, ease)}
.watch-source:hover{color:#ffd97a;text-decoration:underline;text-underline-offset:4px}
.watch-source-arrow{display:inline-block;font-size:11px;line-height:1;transform:translateY(-1px);transition:transform .35s var(--ease, ease)}
.watch-source:hover .watch-source-arrow{transform:translate(2px,-3px)}
.watch-related{min-height:0;display:flex;flex-direction:column;gap:16px;overflow:hidden;border-left:1px solid rgba(255,255,255,.12);padding-left:clamp(15px,1.6vw,26px)}
.watch-related-heading{display:flex;align-items:baseline;justify-content:space-between;padding:0 0 14px;border-bottom:1px solid rgba(255,255,255,.14)}
.watch-related-heading h2{margin:0;font-size:20px;letter-spacing:-.04em;line-height:1.3;font-weight:700}
.watch-related-heading span{font:12px var(--font-mono);color:#969895}
.watch-recommendations{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:11px;padding-right:6px;scrollbar-color:#4b4f4e transparent;scrollbar-width:thin}
.watch-suggestion{display:grid;flex:none;grid-template-columns:minmax(90px,43%) minmax(0,1fr);gap:12px;align-items:start;min-height:90px;color:inherit;text-decoration:none;border-radius:8px;transition:background .25s,transform .3s}
.watch-suggestion:hover{background:rgba(255,255,255,.065);transform:translateX(2px)}
.watch-suggestion-thumb{aspect-ratio:16/9;min-height:0;display:block;overflow:hidden;background:linear-gradient(145deg,#333942,#11151b);border-radius:7px}
.watch-suggestion-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.watch-suggestion:hover img{transform:scale(1.045)}
.watch-suggestion-copy{min-width:0;padding:2px 2px 0 0;display:flex;flex-direction:column;gap:7px}
.watch-suggestion-copy strong{font-size:clamp(13px,1vw,15px);line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.watch-suggestion-copy small{font-size:11px;color:#a6a8a8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.watch-page-enter{position:fixed;inset:0;z-index:20;background:#e9e9e3;pointer-events:none;clip-path:inset(0);animation:watch-enter .76s cubic-bezier(.76,0,.24,1) both}
@keyframes watch-enter{to{clip-path:inset(0 0 100% 0)}}
.watch-leave-curtain{position:fixed;inset:0;background:#e9e9e3;pointer-events:none;z-index:21;clip-path:inset(0 0 100% 0);transition:clip-path .75s cubic-bezier(.76,0,.24,1)}
.watch-leave-curtain.is-active{clip-path:inset(0)}
@media(max-width:820px){
 .watch-header{height:58px;min-height:58px}
 .watch-main{grid-template-columns:minmax(0,1fr) minmax(220px,31vw);padding:12px 18px;gap:15px}
 .watch-related{padding-left:12px}
 .watch-suggestion{grid-template-columns:1fr;gap:5px;min-height:unset}
 .watch-suggestion-thumb{max-width:100%}
 .watch-suggestion-copy strong{font-size:13px}
}
@media(max-width:640px){
 .watch-header{padding-inline:16px}
 .watch-brand{width:115px}
 .watch-main{display:flex;flex-direction:column;gap:12px;padding:12px 14px;overflow:hidden}
 .watch-primary{flex:none;gap:10px}
 .watch-stage{width:min(100%,calc(40dvh * 16 / 9));border-radius:8px}
 .watch-primary h1{font-size:clamp(17px,4.7vw,21px);line-height:1.25}
 .watch-related{flex:1;min-height:0;border-left:0;border-top:1px solid rgba(255,255,255,.13);padding:12px 0 0;gap:10px}
 .watch-related-heading{padding-bottom:7px}
 .watch-related-heading h2{font-size:17px}
 .watch-recommendations{gap:10px}
 .watch-suggestion{grid-template-columns:128px minmax(0,1fr);min-height:72px}
 .watch-suggestion-thumb{width:128px}
}
@media(max-width:350px){.watch-suggestion{grid-template-columns:98px minmax(0,1fr)}.watch-suggestion-thumb{width:98px}}
@media(max-height:540px) and (min-width:641px){.watch-header{height:46px;min-height:46px}.watch-main{padding-block:8px}.watch-primary h1{font-size:17px}}
@media(prefers-reduced-motion:reduce){.watch-page-enter{display:none}.watch-leave-curtain,.watch-suggestion{transition:none}}

/* V7.2: player-first hierarchy; keep the entire page within the viewport. */
.watch-header{background:linear-gradient(180deg,#101215,#0a0b0e);flex:none}
.watch-stage{isolation:isolate;border:1px solid rgba(255,255,255,.08);box-shadow:0 16px 46px rgba(0,0,0,.38)}
.watch-stage::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:#020304;opacity:0;transition:opacity .35s cubic-bezier(.2,.8,.2,1)}
.watch-stage.is-switching::after{opacity:.85;animation:watch-switch .9s cubic-bezier(.2,.75,.2,1) both}
@keyframes watch-switch{0%{opacity:.9}80%{opacity:.23}100%{opacity:0}}
.watch-related-heading h2{font-size:clamp(16px,1.25vw,20px)}
.watch-suggestion{padding:5px;gap:11px;margin:-5px;border:1px solid transparent;transition:background .25s,border-color .25s,transform .3s}
.watch-suggestion:hover,.watch-suggestion:focus-visible{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.11)}
.watch-suggestion:focus-visible{outline:2px solid #d8c66c;outline-offset:2px}
@media(max-width:540px){.watch-main{gap:10px;padding:10px 13px}.watch-primary{gap:9px}.watch-related{padding-top:10px}}
@media(max-height:460px) and (min-width:641px){.watch-main{padding-block:6px}}
@media(prefers-reduced-motion:reduce){.watch-stage.is-switching::after{animation:none;opacity:0}}

/* V8: viewer typography and recommendation rhythm; only the aside scrolls. */
.watch-header{border-bottom:0;background:#101213}
.watch-main{grid-template-columns:minmax(0,1fr) clamp(280px,26vw,380px);gap:clamp(18px,2.6vw,44px);padding-top:clamp(18px,2.6vw,37px)}
.watch-stage{border:0;border-radius:16px;box-shadow:0 22px 65px #0008;background:#000}
.watch-primary h1{font-size:clamp(20px,1.75vw,29px);font-weight:700;letter-spacing:-.038em;line-height:1.3}
.watch-related{border-left:0;padding-left:0;gap:17px}
.watch-related-heading{border-bottom:0;padding:0 0 8px}
/* 计数原来压了 opacity:.55，12px 的 #969895 落到 2.8:1 读不清；它的颜色本身已经够轻。 */
.watch-recommendations{gap:15px;padding:4px 4px 12px 0}
.watch-suggestion{border:0!important;padding:5px;margin:-5px;border-radius:11px;gap:12px;transition:background .3s,transform .4s cubic-bezier(.2,.8,.2,1)}
.watch-suggestion:hover{background:rgba(255,255,255,.055);transform:translateX(3px)}
.watch-suggestion-thumb{border-radius:10px}
.watch-suggestion-copy strong{font-size:14px;line-height:1.45}
.watch-brand{width:148px;height:52px;overflow:visible}
.watch-brand img{width:100%;height:auto;object-fit:contain}
.watch-stage.is-switching::after{pointer-events:none}
@media(max-width:820px){.watch-main{grid-template-columns:minmax(0,1fr) minmax(220px,30vw);gap:18px;padding:12px 18px}}
@media(max-width:640px){.watch-main{display:flex;flex-direction:column;padding:10px 13px;gap:11px}.watch-stage{border-radius:10px}.watch-related{border-top:0;padding-top:8px}.watch-suggestion{gap:10px}}

/* V8.1: recommendation thumbs never use synthetic/reused festival posters. */
.watch-suggestion-thumb[data-official-cover]{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#293034,#131719);
}
.watch-suggestion-thumb[data-official-cover] img:not([src]){display:none}
.watch-suggestion-thumb .archive-cover-status{
  position:absolute;inset:0;display:grid;place-items:center;
  color:rgba(244,244,240,.38);font-size:clamp(19px,2vw,28px);
  font-weight:700;letter-spacing:-.06em;pointer-events:none;
}
.watch-suggestion-thumb.has-official-cover .archive-cover-status{display:none}

/* Short landscape keeps both the full title and the real player ratio. */
@media(max-width:640px) and (max-height:500px) and (orientation:landscape){
 .watch-header{height:46px;min-height:46px}
 .watch-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,32%);gap:14px;padding-block:8px}
 .watch-primary{min-height:0;gap:10px}
 .watch-stage{width:min(100%,var(--watch-fit-width,100%))}
 .watch-primary h1{font-size:17px;line-height:1.3}
 .watch-related{padding-top:0;gap:9px}
 .watch-suggestion{grid-template-columns:1fr}
 .watch-suggestion-thumb{width:100%}
}
#watch-title:focus{outline:none}

/* Preserve the current geometry at zero insets and respect cutouts in cover mode. */
.watch-page{--watch-bar-height:68px;--watch-header-pad:clamp(20px,3vw,54px);--watch-content-pad:clamp(16px,3vw,54px);padding-bottom:env(safe-area-inset-bottom)}
.watch-header{height:calc(var(--watch-bar-height) + env(safe-area-inset-top));min-height:calc(var(--watch-bar-height) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-inline:max(var(--watch-header-pad),env(safe-area-inset-left)) max(var(--watch-header-pad),env(safe-area-inset-right))}
.watch-main{padding-inline:max(var(--watch-content-pad),env(safe-area-inset-left)) max(var(--watch-content-pad),env(safe-area-inset-right))}
@media(max-width:820px){.watch-page{--watch-bar-height:58px;--watch-content-pad:18px}}
@media(max-width:640px){.watch-page{--watch-header-pad:16px;--watch-content-pad:13px}}
@media(max-height:540px) and (min-width:641px),(max-width:640px) and (max-height:500px) and (orientation:landscape){.watch-page{--watch-bar-height:46px}}
