body.watching .watch-page{padding-top:16px;padding-bottom:30px}
body.watching .watch-top{margin-bottom:12px;gap:12px}
body.watching .back-button{font-size:11px;padding:6px 0}
body.watching .watch-crumb{font-size:9px;letter-spacing:.6px}
body.watching .watch-grid{gap:20px}
body.watching .video-toolbar{gap:7px;padding:8px 0}
body.watching .video-toolbar button,body.watching .video-toolbar select{min-height:32px;padding:6px 9px;font-size:10px}
body.watching .video-toolbar .filename{font-size:10px}
body.watching .watch-info{padding:16px 0 12px}
body.watching .watch-info h1{font-size:23px;line-height:1.5;letter-spacing:-.7px;margin:5px 0 8px}
body.watching .watch-info-head{gap:12px;align-items:flex-start}
body.watching #watchSave{padding:9px 13px;font-size:10px;white-space:nowrap;flex-shrink:0}
body.watching .watch-info p{font-size:12px;line-height:1.7;margin:10px 0}
body.watching .watch-info .meta{font-size:11px;line-height:1.7}
body.watching .watch-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
body.watching .watch-actions .secondary{padding:8px 13px;font-size:11px;min-height:34px}
body.watching .watch-side-inner{padding:16px}
body.watching .watch-side h3{font-size:13px;margin:0 0 13px}
body.watching .watch-side dl{gap:10px 10px;font-size:11px;line-height:1.6}
body.watching .watch-side .local-badge{margin-top:14px;padding-top:12px;font-size:10px;line-height:1.6}
body.watching .watch-recs{margin-top:20px}
body.watching .watch-recs h2{font-size:17px;margin-bottom:13px}
body.watching .watch-recs .art-title,body.watching .watch-recs .catalog-meta{display:none}
body.watching .watch-recs .card-title{font-size:12px;line-height:1.5;margin-top:8px}
body.watching .watch-recs .sub{font-size:10px;margin-top:4px}
@media(max-width:760px){
 body.watching .watch-page{padding:10px 5% 24px}
 body.watching .watch-top{margin-bottom:9px}
 body.watching .watch-crumb{display:none}
 body.watching .watch-grid{gap:12px;grid-template-columns:1fr}
 body.watching .video-frame{border-radius:6px}
 body.watching .video-toolbar{gap:6px;padding:7px 0}
 body.watching .video-toolbar .filename{width:auto;max-width:35%;flex:1;font-size:9px}
 body.watching .video-toolbar button,body.watching .video-toolbar select{font-size:9px;padding:6px 7px;min-height:32px}
 body.watching .watch-info{padding:12px 0 4px}
 body.watching .watch-info h1{font-size:19px;line-height:1.5;letter-spacing:-.5px}
 body.watching .watch-tag{font-size:10px}
 body.watching .watch-info-head{display:block}
 body.watching #watchSave{margin-top:8px;padding:8px 12px;min-height:34px}
 body.watching .watch-info .meta{margin-top:8px;font-size:10px}
 body.watching .watch-info p{font-size:11px;margin:8px 0;line-height:1.65}
 body.watching .watch-side{display:block;border-radius:7px}
 body.watching .watch-side>img{display:none}
 body.watching .watch-side-inner{padding:13px 14px}
 body.watching .watch-side h3{font-size:12px;margin-bottom:11px}
 body.watching .watch-side dl{grid-template-columns:48px minmax(0,1fr);gap:7px 10px;font-size:10px;line-height:1.5}
 body.watching .watch-side .local-badge{margin-top:11px;padding-top:9px;font-size:9px}
 body.watching .watch-recs{margin-top:18px}
 body.watching .watch-recs h2{font-size:15px;margin-bottom:10px}
 body.watching .watch-recs .row{grid-template-columns:repeat(5,140px);gap:10px;padding-top:3px}
 body.watching .watch-recs .card-title{font-size:11px;line-height:1.5}
 body.watching .watch-recs .tag{font-size:8px;padding:2px 5px}
}

body.watching .watch-actions #watchSave{margin:0;min-height:34px;padding:8px 13px;font-size:11px}
/* Compact player controls, including iOS and embedded-browser expansion. */
.video-toolbar select[hidden]{display:none!important}
.playback-speed{position:relative;flex-shrink:0}
.video-toolbar .playback-speed-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:64px;border-radius:7px;background:#ffffff08;border:1px solid #ffffff20;font-variant-numeric:tabular-nums}
.playback-speed-trigger svg{width:13px;height:13px;color:#9999a8;transition:transform .15s}
.playback-speed-trigger[aria-expanded=true]{border-color:#ff304980!important;background:#ff30490d!important}
.playback-speed-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.playback-speed-menu[hidden]{display:none!important}
.playback-speed-menu{position:absolute;right:0;bottom:calc(100% + 9px);z-index:70;width:146px;padding:6px;border:1px solid #ffffff1c;border-radius:12px;background:#1b1b22;box-shadow:0 14px 40px #0009;text-align:left}
.playback-speed-heading{padding:8px 10px;color:#898998;font-size:10px;letter-spacing:.3px}
.video-toolbar .playback-speed-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:#c5c5d0;font-size:12px;white-space:nowrap}
.video-toolbar .playback-speed-menu button:hover,.video-toolbar .playback-speed-menu button:focus-visible{background:#ffffff0a;color:#fff}
.video-toolbar .playback-speed-menu button[aria-checked=true]{background:#ff304916;color:#ff6579}
.playback-speed-menu button[aria-checked=true]:after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
#fullscreenVideo{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:7px}
#fullscreenVideo svg{width:15px;height:15px;flex-shrink:0}
.player-fullscreen-close{position:absolute;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:100;width:38px;height:38px;display:grid;place-items:center;padding:9px;border:1px solid #ffffff40;border-radius:50%;background:#101012b3;color:#fff;cursor:pointer}
.player-fullscreen-close[hidden]{display:none!important}.player-fullscreen-close svg{width:20px;height:20px}
body.player-expanded{overflow:hidden!important}
body.watching .video-frame.player-immersive{position:fixed;inset:0;z-index:10000;width:100vw;width:100dvw;height:100vh;height:100dvh;max-width:none;max-height:none;aspect-ratio:auto;margin:0;border:0;border-radius:0;background:#000}
.video-frame:fullscreen{width:100vw;height:100vh;border:0;border-radius:0;background:#000}
.video-frame:-webkit-full-screen{width:100vw;height:100vh;border:0;border-radius:0;background:#000}
.video-frame.player-immersive>video,.video-frame:fullscreen>video,.video-frame:-webkit-full-screen>video{width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.video-toolbar .playback-speed-trigger{min-width:59px;gap:6px}.playback-speed-menu{width:134px}.video-toolbar .playback-speed-menu button{min-height:40px;font-size:12px}}

/* Match the detail dialog: product code first, original title above the synopsis. */
body.watching .watch-info .watch-work-title{color:#d6b7c2;font-size:14px;font-weight:500;line-height:1.75;margin:12px 0 8px;overflow-wrap:anywhere}
body.watching .watch-info .watch-work-title[hidden],body.watching #watchCode[hidden],body.watching #watchDescription[hidden]{display:none}
@media(max-width:760px){body.watching .watch-info .watch-work-title{font-size:12px;line-height:1.75;margin:10px 0 6px}}

body.watching .watch-heading-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:5px 0 8px}
body.watching .watch-heading-line h1{margin:0;min-width:0;overflow-wrap:anywhere}
.watch-category-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.watch-category-badges[hidden]{display:none}
.watch-category-badge{display:inline-flex;align-items:center;max-width:100%;padding:5px 9px;border:1px solid #ffffff1c;border-radius:6px;background:#ffffff07;color:#b8b8c2;font-size:10px;font-weight:500;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
@media(max-width:760px){body.watching .watch-heading-line{gap:7px 9px;margin:4px 0 8px}.watch-category-badge{font-size:9px;padding:4px 7px}}

.watch-side-column{min-width:0}.watch-sidebar-ads{display:flex;flex-direction:column;gap:12px;margin-top:16px}.watch-sidebar-link{position:relative;display:block;width:100%;aspect-ratio:3/1;overflow:hidden;border-radius:8px;border:1px solid #ffffff13;background:#131419}.watch-sidebar-link picture,.watch-sidebar-link img{display:block;width:100%;height:100%}.watch-sidebar-link img{object-fit:cover}.watch-sidebar-link .native-ad-label{position:absolute;left:auto;right:7px;top:7px;z-index:1;padding:3px 5px;font-size:8px;line-height:1;border-radius:3px;background:#0b0c10bb;color:#c5c5cf;letter-spacing:0}.watch-sidebar-link:hover{border-color:#ffffff38}@media(max-width:1000px){.watch-sidebar-ads{display:none}}
