/* The public Watch site: a dark, cinematic browse and player. Dark in either
   theme on purpose -- pictures read best on black -- so its tokens are local
   and fixed, and nothing here depends on the marketing stylesheet. */
.watch-page{--w-bg:#0b0b0a;--w-raise:#151513;--w-raise2:#1e1e1b;--w-line:#ffffff17;--w-ink:#f1f1ea;--w-muted:#a3a59b;--w-accent:#d3ff62;background:var(--w-bg)}
.watch-page .site-footer{background:var(--w-bg)}
.watch-main{background:var(--w-bg);color:var(--w-ink);min-height:70vh;padding-bottom:48px;overflow-x:clip}
.watch-shell{max-width:none;margin:0;padding-left:clamp(16px,2vw,32px);padding-right:clamp(16px,2vw,32px)}
/* Search and filters */
.watch-top{position:sticky;top:0;z-index:5;background:linear-gradient(180deg,var(--w-bg) 78%,#0b0b0a00);padding:12px 0 10px}
.watch-search{display:flex;max-width:640px;margin:0 auto 10px;border:1px solid var(--w-line);border-radius:999px;background:var(--w-raise);overflow:hidden;transition:border-color .15s}
.watch-search:focus-within{border-color:#d3ff6288}
.watch-search input{flex:1;min-width:0;background:transparent;border:0;color:var(--w-ink);padding:9px 18px;font-size:15px;outline:none}
.watch-search input::placeholder{color:var(--w-muted)}
.watch-search button{background:var(--w-raise2);border:0;border-left:1px solid var(--w-line);color:var(--w-ink);width:64px;font-size:15px}
.watch-search button:hover{color:var(--w-accent)}
.watch-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.watch-chips::-webkit-scrollbar{display:none}
.watch-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;background:var(--w-raise2);color:var(--w-ink);border:1px solid var(--w-line);border-radius:8px;padding:5px 12px;font-size:13px;font-weight:500;line-height:1.3;cursor:pointer}
.watch-chip:hover{background:#2a2a26;color:var(--w-ink)}
.watch-chip.is-active{background:var(--w-ink);color:#10110f;border-color:var(--w-ink)}
.watch-chip-sep{flex:none;width:1px;background:var(--w-line);margin:2px 4px}
.watch-summary{color:var(--w-muted);font-size:14px;margin:2px 0 12px}
.watch-summary strong{color:var(--w-ink)}
.watch-summary a{color:var(--w-ink);text-decoration:underline}
/* Grid of cards */
.watch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px 12px}
.watch-grid.is-shorts{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.watch-card{display:flex;flex-direction:column;gap:8px;color:var(--w-ink);min-width:0;border-radius:10px;outline-offset:4px}
.watch-card:hover{color:var(--w-ink)}
/* Reuses the site's hover-grow on a.film-card; the card itself stays frameless. */
.watch-card.film-card{padding:0;border:0;background:transparent}
a.watch-card.film-card:hover,a.watch-card.film-card:focus-visible{box-shadow:none}
a.watch-card.film-card:hover .watch-art,a.watch-card.film-card:focus-visible .watch-art{box-shadow:0 24px 50px -22px #000d,0 0 44px -12px #d3ff6250}
.watch-art{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--w-raise);isolation:isolate;transition:border-radius .2s ease,transform .2s ease}
.is-tall .watch-art{aspect-ratio:9/16}
.watch-art img{position:relative;display:block;width:100%;height:100%;object-fit:cover}
/* The thin accent frame, drawn over the picture so the image cannot cover it. */
.watch-art::after{content:"";position:absolute;inset:0;z-index:4;border:1px solid #d3ff6261;border-radius:inherit;pointer-events:none;transition:border-color .15s}
.watch-card:hover .watch-art::after,.watch-card:focus-visible .watch-art::after{border-color:var(--w-accent)}
/* A frame of another shape is shown whole, over a blur of itself instead of black bars. */
.watch-art.is-contain img,.watch-art.video-contain .hover-preview{object-fit:contain;background:transparent}
.watch-art.is-contain::before,.watch-art.video-contain::before{content:"";position:absolute;inset:-12%;background:var(--ambient,none) center/cover no-repeat;filter:blur(20px) brightness(.55) saturate(1.3)}
.watch-card:hover .watch-art,.watch-card:focus-visible .watch-art{border-radius:4px}
/* Hover preview: media.js injects the muted video on first hover. */
.watch-art .hover-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s;pointer-events:none;background:#000;z-index:1}
.watch-art.is-previewing .hover-preview.is-live{opacity:1}
.watch-art .hover-sheen{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.16) 48%,rgba(211,255,98,.08) 52%,transparent 65%);transform:translateX(-120%);opacity:0}
@media(prefers-reduced-motion:no-preference){.watch-art.is-previewing .hover-sheen{animation:watch-sheen 1s cubic-bezier(.3,.6,.2,1) both}}
@keyframes watch-sheen{0%{opacity:1;transform:translateX(-120%)}100%{opacity:1;transform:translateX(120%)}}
/* No cover and no frame yet: the title on a colour field, never a broken image. */
.watch-noart{display:flex;align-items:flex-end;width:100%;height:100%;padding:14px;background:linear-gradient(135deg,#2a3314,#0f120b)}
.watch-noart span{font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.2;color:#f1f1ea;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.watch-noart.hue-1{background:linear-gradient(135deg,#3b1d4a,#120b16)}.watch-noart.hue-2{background:linear-gradient(135deg,#123a44,#0a1215)}
.watch-noart.hue-3{background:linear-gradient(135deg,#4a2a12,#160e08)}.watch-noart.hue-4{background:linear-gradient(135deg,#1c2a4f,#0b0f19)}
.watch-noart.hue-5{background:linear-gradient(135deg,#4a1822,#16090c)}
.is-compact .watch-noart{padding:8px}.is-compact .watch-noart span{font-size:12px}
.watch-duration,.watch-kind{position:absolute;z-index:3;bottom:6px;right:6px;background:#000c;color:#fff;font-size:12px;font-weight:600;padding:2px 6px;border-radius:5px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.watch-kind{right:auto;bottom:auto;top:6px;left:6px;background:#d3ff62e6;color:#12160b}
.watch-card-body{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 2px}
.watch-card-title{font-size:15px;font-weight:600;line-height:1.35;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.watch-card-meta{font-size:13px;color:var(--w-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watch-pager{display:flex;justify-content:center;gap:12px;margin-top:28px}
/* Infinite scroll: watch.js takes over from the pager links. */
.watch-sentinel{display:flex;justify-content:center;min-height:48px;margin-top:20px;color:var(--w-muted);font-size:14px}
.watch-sentinel.is-loading::before{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--w-line);border-top-color:var(--w-accent);animation:watch-spin .8s linear infinite}
@keyframes watch-spin{to{transform:rotate(360deg)}}
/* Shorts row */
.watch-shelf{margin-bottom:26px}
.watch-shelf-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.watch-shelf-head h2{font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0;color:var(--w-ink)}
.watch-shelf-head h2 i{color:var(--w-accent);margin-right:4px}
.watch-shelf-head a{font-size:13px;font-weight:600;color:var(--w-muted)}
.watch-shelf-head a:hover{color:var(--w-accent)}
.watch-shelf-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(160px,196px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#ffffff26 transparent;padding-bottom:6px}
.watch-shelf-row>.watch-card{scroll-snap-align:start}
.watch-shelf-body{position:relative}
.watch-shelf-arrow{position:absolute;z-index:6;top:calc(50% - 44px);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#151513f2;color:var(--w-ink);border:1px solid #d3ff6261;box-shadow:0 4px 18px #000a;cursor:pointer;transition:border-color .15s,color .15s}
.watch-shelf-arrow:hover,.watch-shelf-arrow:focus-visible{border-color:var(--w-accent);color:var(--w-accent)}
.watch-shelf-arrow.is-back{left:-8px}.watch-shelf-arrow.is-forward{right:-8px}
.watch-shelf-arrow[hidden]{display:none}
@media(hover:none){.watch-shelf-arrow{display:none}}
.watch-empty{text-align:center;max-width:520px;margin:90px auto;color:var(--w-muted)}
.watch-empty i{font-size:44px;color:#d3ff6299;margin-bottom:22px}
.watch-empty h1{font-size:30px;letter-spacing:-1px;color:var(--w-ink);line-height:1.2;margin-bottom:12px}
.watch-empty p{margin-bottom:24px}
/* Player page */
.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;padding-top:16px}
/* Ambient mode: watch.js paints the playing frame, tiny, into two canvases. The
   glow bleeds past the player; the fill sits in any letterbox inside it. */
.watch-ambient{position:relative;isolation:isolate}
.watch-glow{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;filter:blur(64px) saturate(1.5);opacity:0;transform:scale(1.06);transition:opacity 1s}
.watch-ambient.is-lit .watch-glow{opacity:.7}
.watch-stage{position:relative;background:#000;border-radius:10px;overflow:hidden;display:flex;justify-content:center}
.watch-fill{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:blur(24px) brightness(.8) saturate(1.4);transform:scale(1.15)}
.watch-stage video{position:relative}
.watch-unmute{position:absolute;z-index:2;top:12px;left:12px;background:#000c;border-color:var(--w-accent);color:var(--w-ink)}
.watch-unmute:hover{background:#000;color:var(--w-accent)}
/* The studio's review speed control is for checking takes; viewers get the
   player's own menu. playback-speed.js adds it next to every video. */
.watch-stage .eizo-playback-speed{display:none}
.watch-player{display:block;width:100%;max-height:calc(100vh - 190px);aspect-ratio:16/9;background:transparent}
.is-portrait .watch-player{aspect-ratio:9/16;width:auto;height:calc(100vh - 190px);max-width:100%}
.watch-title{font-size:21px;font-weight:700;letter-spacing:-.02em;line-height:1.3;margin:12px 0 8px;color:var(--w-ink)}
.watch-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.watch-maker{display:flex;align-items:center;gap:12px;min-width:0}
.watch-maker div{display:flex;flex-direction:column;min-width:0}
.watch-maker strong{font-size:15px}
.watch-maker a{font-size:13px;color:var(--w-muted)}
.watch-maker a:hover{color:var(--w-accent)}
.watch-avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#d3ff62,#6f8f2b);color:#10110f;font-weight:800}
.watch-actions{display:flex;gap:8px}
.watch-description{background:var(--w-raise);border-radius:10px;padding:12px 14px;margin-top:12px;font-size:14px;line-height:1.6}
.watch-facts{font-weight:600;margin:0}
.watch-text{white-space:pre-line;margin:8px 0 0;color:#dcdcd4;overflow-wrap:anywhere}
.watch-related{display:flex;flex-direction:column;gap:8px;min-width:0}
.watch-related h2{font-size:16px;font-weight:600;letter-spacing:0;margin:0 0 4px;color:var(--w-ink)}
.watch-card.is-compact{flex-direction:row;gap:10px}
.watch-card.is-compact .watch-art{flex:none;width:168px;border-radius:6px}
.watch-card.is-compact.is-tall .watch-art{width:72px}
.watch-card.is-compact .watch-card-title{font-size:14px}
.watch-card.is-compact .watch-card-meta{font-size:12px}
.watch-related>.watch-chip{align-self:flex-start;margin-top:6px}
/* Shorts in the sidebar: a row of tall cards with the title and time under each. */
.watch-side-shorts{margin:8px 0 10px}
.watch-side-shorts h3{font-size:15px;font-weight:700;margin:0 0 8px;color:var(--w-ink)}
.watch-side-shorts h3 i{color:var(--w-accent);margin-right:4px}
.watch-side-shorts-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.watch-side-shorts .watch-card-title{font-size:13px}
.watch-side-shorts .watch-card-meta{font-size:12px}
@media(max-width:1100px){.watch-layout{grid-template-columns:minmax(0,1fr)}.watch-player,.is-portrait .watch-player{max-height:70vh}.is-portrait .watch-player{height:70vh}}
@media(max-width:767px){
 .watch-shell{padding-left:16px;padding-right:16px}
 .watch-top{position:static;padding-top:12px}
 .watch-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .watch-grid.is-shorts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .watch-shelf-row{grid-auto-columns:minmax(140px,42vw)}
 .watch-layout{padding-top:0;padding-left:0;padding-right:0;gap:18px}
 .watch-primary{min-width:0}
 .watch-primary>:not(.watch-stage){margin-left:16px;margin-right:16px}
 .watch-stage{border-radius:0}
 .watch-glow{display:none}
 .watch-related{padding:0 16px}
 .watch-title{font-size:18px}
 .watch-card.is-compact .watch-art{width:148px}
 .watch-empty{margin:60px auto}
}
/* Shorts player: one vertical video per screen, snapping as you scroll or
   swipe. The feed scrolls, not the page; watch-shorts.js sets --shorts-top to
   the header's height so a short always fills exactly what is left. */
.watch-shorts-page{overflow:hidden}
.watch-shorts-page .site-footer{display:none}
.watch-shorts-page .watch-main{min-height:0;padding:0}
.shorts-feed{position:relative;height:calc(100dvh - var(--shorts-top,64px));overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;outline:none}
.shorts-feed::-webkit-scrollbar{display:none}
.short{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 0;isolation:isolate;overflow:hidden}
/* The short's own cover, blurred, fills the screen behind it. */
.short::before{content:"";position:absolute;inset:-10%;z-index:-1;background:var(--ambient,none) center/cover no-repeat;filter:blur(60px) brightness(.35) saturate(1.4);opacity:0;transition:opacity .6s}
.short.has-ambient::before{opacity:1}
/* The video, and under it (never over it) the title, channel and time. */
.short-col{display:flex;flex-direction:column;height:100%;min-width:0}
.short-frame{position:relative;height:calc(100% - 64px);aspect-ratio:9/16;max-width:calc(100vw - 96px);border-radius:12px;overflow:hidden;background:#000;box-shadow:0 0 0 1px #d3ff6261,0 30px 80px -30px #000}
.short-video{display:block;width:100%;height:100%;object-fit:cover;background:#000;cursor:pointer}
.short-info{width:0;min-width:100%;height:64px;padding:9px 4px 0;color:var(--w-ink)}
.short-title{font-size:15px;font-weight:700;line-height:1.3;letter-spacing:0;margin:0;color:var(--w-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.short-meta{display:flex;align-items:center;gap:6px;margin:5px 0 0;font-size:13px;color:var(--w-muted);white-space:nowrap;overflow:hidden}
.short-meta .watch-avatar{width:22px;height:22px;font-size:11px}
.short-meta>span:nth-child(2){color:var(--w-ink);font-weight:600}
.short-meta a{color:var(--w-muted)}
.short-meta a:hover{color:var(--w-accent)}
.short-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff26}
.short-progress span{display:block;height:100%;width:0;background:var(--w-accent)}
.short-play{position:absolute;inset:0;display:none;place-items:center;pointer-events:none;font-size:46px;color:#fffd;text-shadow:0 4px 20px #000a}
.short-paused .short-play{display:grid}
.short-actions{display:flex;flex-direction:column;gap:12px;align-self:flex-end;margin-bottom:76px}
.short-action{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--w-raise2);color:var(--w-ink);border:1px solid var(--w-line);font-size:17px;cursor:pointer;transition:border-color .15s,color .15s}
.short-action:hover,.short-action:focus-visible{border-color:var(--w-accent);color:var(--w-accent)}
.short-action.is-muted{color:var(--w-accent);border-color:var(--w-accent)}
.shorts-nav{position:fixed;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:10}
.short-unmute{position:absolute;z-index:3;top:12px;left:12px;background:#000c;border-color:var(--w-accent);color:var(--w-ink)}
@media(max-width:767px),(hover:none){
 .short{padding:0;gap:0}
 .short-col{width:100%}
 .short-frame{width:100%;max-width:none;aspect-ratio:auto;border-radius:0;box-shadow:none}
 .short-info{padding:8px 12px 0}
 .short-actions{position:absolute;right:10px;bottom:84px;margin:0;z-index:2}
 .short-action{width:44px;height:44px;background:#0009;border-color:#ffffff26}
 .shorts-nav{display:none}
}
/* Social: likes, comments and channels (watch-social.js). */
.watch-maker a.watch-maker-name{font-size:15px;font-weight:700;color:var(--w-ink)}
.watch-maker a.watch-maker-name:hover{color:var(--w-accent)}
a.watch-avatar{text-decoration:none;color:#10110f}
.watch-avatar.hue-1{background:linear-gradient(135deg,#c9a2ff,#6b3fa0)}.watch-avatar.hue-2{background:linear-gradient(135deg,#7fe0f0,#2b7c8c)}
.watch-avatar.hue-3{background:linear-gradient(135deg,#ffc27a,#a8601c)}.watch-avatar.hue-4{background:linear-gradient(135deg,#9db7ff,#34508f)}
.watch-avatar.hue-5{background:linear-gradient(135deg,#ff9fb0,#9c3346)}
.watch-avatar.is-gone{background:var(--w-raise2);color:var(--w-muted);font-size:14px}
.watch-actions{flex-wrap:wrap}
.watch-vote{display:inline-flex}
.watch-vote .watch-chip{padding:5px 14px;font-variant-numeric:tabular-nums}
.watch-vote .watch-chip:first-child{border-radius:999px 0 0 999px;border-right:0}
.watch-vote .watch-chip:last-child{border-radius:0 999px 999px 0}
.watch-vote .watch-chip.is-voted i{color:var(--w-accent)}
.watch-comments{margin-top:22px}
.wc-top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.wc-top h2{font-size:19px;font-weight:700;letter-spacing:0;margin:0;color:var(--w-ink);font-variant-numeric:tabular-nums}
.wc-sort{display:flex;gap:6px}
.wc-off{margin-top:18px}
.wc-note{color:var(--w-muted);font-size:14px;margin:0 0 18px}
.wc-note a{color:var(--w-accent);font-weight:600}
.wc-compose{margin-bottom:22px}
.wc-compose-row{display:flex;gap:14px;align-items:flex-start}
.wc-editor{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;margin:6px 0 10px}
.wc-input{width:100%;resize:none;overflow-y:auto;background:transparent;color:var(--w-ink);border:0;border-bottom:1px solid var(--w-line);padding:4px 0 6px;font-size:14px;line-height:1.5;outline:none;transition:border-color .15s}
.wc-input:focus{border-bottom-color:var(--w-accent)}
.wc-input::placeholder{color:var(--w-muted)}
.wc-editor-bar{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.wc-editor.is-collapsed .wc-editor-bar{display:none}
.wc-counter{margin-right:auto;font-size:12px;color:var(--w-muted);font-variant-numeric:tabular-nums}
.wc-editor .watch-chip[disabled]{opacity:.45;cursor:default}
.wc{display:flex;gap:14px;margin-bottom:18px}
.wc.is-reply{margin:12px 0 0}
.wc-avatar{flex:none;width:40px;height:40px;font-size:16px}
.wc.is-reply .wc-avatar{width:26px;height:26px;font-size:12px}
.wc-main{flex:1;min-width:0}
.wc-pinned{font-size:12px;color:var(--w-muted);margin:0 0 2px}
.wc-pinned i{color:var(--w-accent)}
.wc-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0 0 2px;font-size:13px}
.wc-name{font-weight:600;color:var(--w-ink)}
.wc-name:hover{color:var(--w-accent)}
.wc-name.is-gone{color:var(--w-muted);font-weight:500}
.wc-badge{background:#d3ff6224;color:var(--w-accent);border-radius:999px;padding:0 8px;font-size:11px;font-weight:700;letter-spacing:.02em}
.wc-when,.wc-edited{color:var(--w-muted);font-size:12px}
.wc-body{margin:0;font-size:14px;line-height:1.55;color:#e4e4dc;white-space:pre-wrap;overflow-wrap:anywhere}
.wc-body.is-gone{color:var(--w-muted);font-style:italic}
.wc-body[hidden],.wc-actions[hidden]{display:none}
.wc-actions{display:flex;align-items:center;gap:2px;margin-top:4px;position:relative}
.wc-vote,.wc-link{background:transparent;border:0;color:var(--w-muted);border-radius:999px;padding:5px 9px;font-size:13px;font-weight:600;cursor:pointer;line-height:1.2}
.wc-vote{width:32px;height:32px;padding:0;display:grid;place-items:center}
.wc-vote:hover,.wc-link:hover{background:var(--w-raise2);color:var(--w-ink)}
.wc-vote:focus-visible,.wc-link:focus-visible{outline:2px solid var(--w-accent);outline-offset:1px}
.wc-score{min-width:22px;text-align:center;font-size:13px;font-weight:600;color:var(--w-ink);font-variant-numeric:tabular-nums}
.wc-more{position:relative}
.wc-dots{width:32px;height:32px;padding:0}
.wc-menu{position:absolute;z-index:20;top:34px;left:0;min-width:190px;background:var(--w-raise2);border:1px solid var(--w-line);border-radius:10px;padding:6px 0;box-shadow:0 12px 40px #000c}
.wc-menu[hidden]{display:none}
.wc-menu-item{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:0;color:var(--w-ink);text-align:left;padding:8px 16px;font-size:14px;cursor:pointer}
.wc-menu-item:hover,.wc-menu-item:focus-visible{background:#ffffff12;outline:none}
.wc-menu-item i{width:16px;color:var(--w-muted)}
.wc-toggle,.wc-more-replies{color:var(--w-accent);margin-left:-9px}
.wc-toggle[hidden],.wc-more-replies[hidden],.wc-replies[hidden]{display:none}
/* Channel pages */
.watch-channel{padding-top:24px}
.wp-head{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--w-line)}
.wp-avatar{width:88px;height:88px;font-size:36px}
.wp-who{flex:1;min-width:0}
.wp-who h1{font-size:28px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px;color:var(--w-ink);overflow-wrap:anywhere}
.wp-who .watch-card-meta{white-space:normal}
/* Report dialog */
.watch-dialog{background:var(--w-raise);color:var(--w-ink);border:1px solid var(--w-line);border-radius:14px;padding:22px 24px;width:min(420px,calc(100vw - 32px))}
.watch-dialog::backdrop{background:#000b}
.watch-dialog h2{font-size:18px;font-weight:700;margin:0 0 6px}
.wr-options{display:flex;flex-direction:column;gap:6px;margin:12px 0;border:0;padding:0}
.wr-option{display:flex;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.wr-option input{accent-color:#d3ff62}
.wr-detail{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--w-muted)}
.wr-detail textarea{background:var(--w-bg);color:var(--w-ink);border:1px solid var(--w-line);border-radius:8px;padding:8px 10px;font-size:14px;resize:vertical}
.wr-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
@media(max-width:767px){.wc-avatar{width:34px;height:34px}.wp-avatar{width:64px;height:64px;font-size:26px}.wp-who h1{font-size:22px}}
/* YouTube-parity: thumbs on comments, hearts, held comments, creator and channel controls. */
.wc-vote.is-voted{color:var(--w-accent)}
.wc-heart{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:999px;background:transparent;border:0;color:var(--w-muted);cursor:pointer}
button.wc-heart:hover{background:var(--w-raise2);color:#ff6b8b}
.wc-heart.is-on{color:#ff4f79}
span.wc-heart{cursor:default}
.wc-held-tag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#ffcf6b;background:#ffcf6b1f;border-radius:999px;padding:0 8px}
.wc-owner{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.wc-setting select{background:var(--w-raise2);color:var(--w-ink);border:1px solid var(--w-line);border-radius:8px;padding:5px 10px;font-size:13px}
.wc-held{background:var(--w-raise);border:1px solid var(--w-line);border-radius:10px;padding:12px 14px;margin:-4px 0 18px}
.wc-held[hidden]{display:none}
.wc-held-item{padding:10px 0;border-bottom:1px solid var(--w-line)}
.wc-held-item:last-child{border-bottom:0}
.wc-held-bar{display:flex;gap:8px;margin-top:8px}
.wp-actions{display:flex;gap:8px;flex-wrap:wrap}
.wp-settings{background:var(--w-raise);border:1px solid var(--w-line);border-radius:12px;padding:18px 20px;margin:-6px 0 24px;max-width:640px;display:flex;flex-direction:column;gap:14px}
.wp-settings[hidden]{display:none}
.wp-settings h2{font-size:18px;font-weight:700;margin:0;color:var(--w-ink)}
.wp-settings h3{font-size:14px;font-weight:700;margin:0 0 6px;color:var(--w-ink)}
.wp-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--w-ink)}
.wp-field small{font-weight:400;color:var(--w-muted)}
.wp-field textarea,.wp-handle{background:var(--w-bg);color:var(--w-ink);border:1px solid var(--w-line);border-radius:8px;padding:8px 10px;font-size:14px;font-weight:400}
.wp-handle{display:flex;align-items:center;gap:2px}
.wp-handle input{flex:1;min-width:0;background:transparent;border:0;color:var(--w-ink);outline:none;font-size:14px}
.wp-handle:focus-within,.wp-field textarea:focus{border-color:var(--w-accent);outline:none}
.wp-check{display:flex;gap:10px;align-items:center;font-size:14px}
.wp-check input{accent-color:#d3ff62}
.wp-hidden ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.wp-hidden li{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
.wp-hidden a{color:var(--w-ink)}
.wp-settings h2,.wp-settings h3{letter-spacing:0}
.wc-own-likes{display:inline-flex;align-items:center;gap:6px;color:var(--w-muted);font-size:13px;padding:0 8px}.watch-vote .watch-chip[disabled]{cursor:default;opacity:.8}
/* Player upgrades (watch-player.js): the bar under the picture, the settings
   menu, the 2x badge, and theater mode. */
.watch-playerbar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.watch-playerbar .watch-chip[aria-pressed="true"]{border-color:var(--w-accent);color:var(--w-accent)}
.player-settings,.short-speed{position:relative}
.pm-quality{font-size:11px;font-weight:700;color:var(--w-accent);margin-left:2px}
.pm-quality[hidden]{display:none}
.player-menu{position:absolute;z-index:30;right:0;top:calc(100% + 6px);min-width:210px;max-height:min(70vh,460px);overflow-y:auto;background:#151513f7;border:1px solid var(--w-line,#ffffff17);border-radius:12px;padding:6px 0;box-shadow:0 16px 48px #000d}
.player-menu[hidden]{display:none}
.pm-group+.pm-group{border-top:1px solid var(--w-line,#ffffff17);margin-top:4px;padding-top:4px}
.pm-title{margin:6px 14px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--w-muted,#a3a59b)}
.pm-item{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:0;color:var(--w-ink,#f1f1ea);text-align:left;padding:7px 14px 7px 32px;font-size:14px;cursor:pointer;position:relative}
.pm-item:hover,.pm-item:focus-visible{background:#ffffff12;outline:none}
.pm-item.is-on::before{content:"";position:absolute;left:13px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--w-accent,#d3ff62)}
.watch-rate-badge{position:absolute;z-index:3;top:14px;left:50%;transform:translateX(-50%);background:#000c;color:#fff;font-weight:700;font-size:14px;border-radius:999px;padding:5px 14px;pointer-events:none;display:inline-flex;gap:6px;align-items:center}
.watch-rate-badge[hidden],.watch-rate-flash[hidden]{display:none}
.watch-rate-flash{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);background:#000b;color:#fff;font-weight:700;font-size:18px;border-radius:12px;padding:10px 18px;pointer-events:none}
.watch-stage video{touch-action:manipulation;-webkit-touch-callout:none;user-select:none}
.short-video{-webkit-touch-callout:none;user-select:none}
.short-speed-menu{right:calc(100% + 8px);top:auto;bottom:0}
/* Theater: the player spans the page, the rail moves below. */
.watch-layout.is-theater{grid-template-columns:minmax(0,1fr)}
.watch-layout.is-theater .watch-player{max-height:calc(100vh - 150px)}
.watch-layout.is-theater .watch-related{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.watch-layout.is-theater .watch-related>h2,.watch-layout.is-theater .watch-related>.watch-side-shorts,.watch-layout.is-theater .watch-related>.watch-chip{grid-column:1/-1}
@media(max-width:1100px){.watch-playerbar [data-theater]{display:none}}
/* Up next, autoplay, playlists, end screens (watch-next.js) and Your videos (watch-studio.js). */
.up-next-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 4px}
.up-next-head h2{font-size:16px;font-weight:600;margin:0;color:var(--w-ink)}
.autoplay-switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--w-muted);cursor:pointer;position:relative}
.autoplay-switch input{position:absolute;opacity:0;width:36px;height:20px;right:0;margin:0;cursor:pointer}
.switch-track{width:36px;height:20px;border-radius:999px;background:var(--w-raise2);border:1px solid var(--w-line);position:relative;transition:background .15s}
.switch-track::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--w-muted);transition:transform .15s,background .15s}
.autoplay-switch input:checked+.switch-track{background:#d3ff6233;border-color:var(--w-accent)}
.autoplay-switch input:checked+.switch-track::after{transform:translateX(16px);background:var(--w-accent)}
.autoplay-switch input:focus-visible+.switch-track{outline:2px solid var(--w-accent);outline-offset:2px}
/* The playlist panel beside the player */
.pl-panel{border:1px solid var(--w-line);border-radius:12px;background:var(--w-raise);overflow:hidden;margin-bottom:12px}
.pl-head{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--w-line);flex-wrap:wrap}
.pl-head h2{font-size:16px;margin:0 0 2px}
.pl-head h2 a{color:var(--w-ink)}
.pl-controls{display:flex;gap:6px;align-items:center}
.pl-controls .watch-chip{padding:5px 9px}
.pl-controls .watch-chip.is-active{background:transparent;color:var(--w-accent);border-color:var(--w-accent)}
.pl-items{list-style:none;margin:0;padding:4px 0;max-height:360px;overflow-y:auto}
.pl-items a{display:flex;align-items:center;gap:10px;padding:6px 12px;color:var(--w-ink)}
.pl-items a:hover{background:#ffffff0d;color:var(--w-ink)}
.pl-items li.is-current a{background:#d3ff6214}
.pl-n{width:18px;text-align:center;font-size:12px;color:var(--w-muted);flex:none}
.pl-items li.is-current .pl-n{color:var(--w-accent)}
.pl-art{flex:none;width:96px;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--w-raise2)}
.pl-art img,.pl-art .watch-noart{width:100%;height:100%;object-fit:cover;display:block}
.pl-text{display:flex;flex-direction:column;min-width:0}
.pl-title{font-size:13px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pl-page{padding-top:28px}
.pl-page-head h1{font-size:30px;font-weight:800;letter-spacing:-.02em;margin:6px 0;color:var(--w-ink);overflow-wrap:anywhere}
.pl-page-head .watch-card-meta a{color:var(--w-ink)}
.pl-page-actions{display:flex;gap:8px;margin:14px 0 22px;flex-wrap:wrap}
.pl-page-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;max-width:900px}
.pl-page-list li{display:flex;align-items:center;gap:12px}
.pl-page-list .watch-card{flex:1}
.pl-count{position:absolute;z-index:3;right:0;top:0;bottom:0;width:38%;display:grid;place-items:center;background:#000b;color:#fff;font-weight:700;font-size:14px}
.wp-tabs{margin:0 0 20px}
/* Save to playlist */
.ws-lists{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:300px;overflow-y:auto}
.ws-item{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}
.ws-item input{accent-color:#d3ff62}
.ws-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-new{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:end;border-top:1px solid var(--w-line);padding-top:12px}
.ws-new input,.ws-new select,.ys-new-list input,.ys-new-list select,.ys-list-head input,.ys-list-head select,.ys-row textarea,.es-row select,.es-row input,.ys-form input,.ys-form select,.ys-form textarea{background:var(--w-bg);color:var(--w-ink);border:1px solid var(--w-line);border-radius:8px;padding:7px 10px;font-size:14px}
/* Autoplay countdown and end screen, over the picture */
.up-next-overlay{position:absolute;inset:0;z-index:6;display:grid;place-items:center;background:#000c;padding:16px}
.up-next-overlay[hidden]{display:none}
.un-card{display:flex;gap:18px;align-items:center;max-width:620px;width:100%}
.un-art{flex:none;width:44%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--w-raise2);border:1px solid #d3ff6261}
.un-art img,.un-art .watch-noart{width:100%;height:100%;object-fit:cover;display:block}
.un-label{margin:0 0 4px;font-size:13px;color:var(--w-muted);font-variant-numeric:tabular-nums}
.un-title{margin:0;font-size:18px;font-weight:700;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.un-by{margin:4px 0 12px;font-size:13px;color:var(--w-muted)}
.un-buttons{display:flex;gap:8px}
.es-layer{position:absolute;z-index:5;top:8%;bottom:14%;left:5%;right:5%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:3%;pointer-events:none}
.es-layer[hidden]{display:none}
.es-el{pointer-events:auto;align-self:center;justify-self:center;width:100%;max-width:300px;display:flex;flex-direction:column;gap:6px;color:#fff;text-decoration:none;animation:es-in .25s ease both}
.es-el[hidden]{display:none}
.es-cell-0{grid-area:1/1}.es-cell-1{grid-area:1/2}.es-cell-2{grid-area:1/3}.es-cell-3{grid-area:2/1}.es-cell-4{grid-area:2/2}.es-cell-5{grid-area:2/3}
.es-art{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--w-raise2);border:2px solid #ffffff40;box-shadow:0 10px 30px #000a;transition:border-color .15s}
.es-el:hover .es-art,.es-el:focus-visible .es-art{border-color:var(--w-accent)}
.es-art img,.es-art .watch-noart{width:100%;height:100%;object-fit:cover;display:block}
.es-count{position:absolute;right:0;top:0;bottom:0;width:36%;display:grid;place-items:center;background:#000b;font-weight:700;font-size:13px}
.es-title{font-size:13px;font-weight:600;text-shadow:0 1px 6px #000;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.es-channel{flex-direction:row;align-items:center;gap:10px}
.es-avatar{width:64px;height:64px;font-size:26px;border:2px solid #fff;flex:none}
.es-caption{display:flex;flex-direction:column;font-size:12px;text-shadow:0 1px 6px #000}
.es-caption strong{font-size:14px}
.es-el.is-draft{aspect-ratio:16/9;border:2px dashed var(--w-accent);border-radius:8px;display:grid;place-items:center;background:#0009;font-size:12px;font-weight:700}
@keyframes es-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.es-el{animation:none}}
@media(max-width:767px){.un-card{flex-direction:column;text-align:center}.un-art{width:70%}.un-buttons{justify-content:center}.es-title{display:none}}
/* Your videos */
.ys{padding-top:24px}
.ys-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.ys-head h1{font-size:30px;font-weight:800;margin:4px 0 0;color:var(--w-ink)}
.ys-tabs{margin-bottom:16px}
.ys-panel[hidden]{display:none}
.ys-row{border:1px solid var(--w-line);border-radius:12px;background:var(--w-raise);margin-bottom:10px;overflow:hidden}
.ys-row-head{display:grid;grid-template-columns:160px minmax(0,1fr) 110px 110px auto;gap:14px;align-items:center;width:100%;padding:10px 12px;background:transparent;border:0;color:var(--w-ink);text-align:left;cursor:pointer}
.ys-row-head:hover{background:#ffffff08}
.ys-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--w-raise2)}
.ys-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ys-main{display:flex;flex-direction:column;min-width:0;gap:2px}
.ys-title{font-weight:700;font-size:15px}
.ys-vis,.ys-date{font-size:13px;color:var(--w-muted)}
.ys-vis.is-down{color:#ff8a8a;font-weight:700}
.ys-stats{display:flex;gap:12px;font-size:13px;color:var(--w-muted);font-variant-numeric:tabular-nums}
.ys-held{color:#ffcf6b}
.ys-body{padding:4px 14px 16px;border-top:1px solid var(--w-line)}
.ys-body[hidden],.ys-pane[hidden]{display:none}
.ys-subtabs{margin:12px 0}
.ys-down{background:#ff8a8a1a;border:1px solid #ff8a8a55;border-radius:10px;padding:10px 12px;color:#ffb3b3;margin:12px 0 0}
.ys-form{max-width:none;margin:0}
.ys-h3{font-size:14px;font-weight:700;margin:14px 0 8px;color:var(--w-ink)}
.es-editor{display:grid;gap:12px}
.es-preview{position:relative;border-radius:10px;overflow:hidden;background:#000;max-width:720px}
.es-preview video{display:block;width:100%;aspect-ratio:16/9}
.es-layer-edit{bottom:18%}
.es-row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.es-row .wp-field{font-weight:400;font-size:12px}
.es-row input[type=number]{width:90px}
.ys-new-list{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}
.ys-list-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px}
.ys-list-head input{flex:1;min-width:180px}
.ys-row>textarea{display:block;width:calc(100% - 24px);margin:0 12px 10px}
.ys-items{list-style:none;margin:0;padding:0 12px 12px;display:flex;flex-direction:column;gap:6px}
.ys-items li{display:flex;gap:6px;align-items:center}
.ys-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.ys-channel{max-width:640px}
@media(max-width:900px){.ys-row-head{grid-template-columns:120px minmax(0,1fr)}.ys-vis,.ys-date,.ys-stats{grid-column:2}}
.ys-head h1,.pl-page-head h1{letter-spacing:-.02em}
