.css-video-dialog{width:min(1120px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:clamp(12px,2vw,24px);border:2px solid #c7ff34;border-radius:10px;background:#171a1c;color:#ffffff;box-shadow:0 24px 80px #000b;overflow:auto}
.css-video-dialog::backdrop{background:#000d}
.css-video-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:clamp(12px,2vw,24px)}
.css-video-stage{width:100%;aspect-ratio:16/9;background:#000;align-self:start}
.css-video-frame{display:block;width:100%;height:100%;border:0}
.css-video-details{min-width:0}
.css-video-title{font-size:clamp(1.1rem,2vw,1.55rem);line-height:1.25;margin:0 0 8px}
.css-video-creator{opacity:.8;margin:0 0 10px}
.css-video-notes{line-height:1.45;white-space:pre-wrap}
.css-video-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.css-video-controls button,.css-video-up-next{padding:9px 12px;background:#272d30;color:inherit;border:1px solid #667177;border-radius:5px;cursor:pointer}
.css-video-controls button:disabled{opacity:.35;cursor:default}
.css-video-upcoming-list{display:grid;gap:8px}
.css-video-up-next{text-align:left}
@media(max-width:760px){.css-video-layout{grid-template-columns:minmax(0,1fr)}.css-video-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:8px}.css-video-details{padding:4px 6px}.css-video-title{font-size:1.1rem}}

/* Keep playback prominent; detailed notes are available on demand. */
.css-video-layout{grid-template-columns:minmax(0,1fr)}
.css-video-details{display:flex;flex-direction:column;gap:10px}
.css-video-title{margin:0}
.css-video-creator{margin:0}
.css-video-controls{margin:4px 0}
.css-video-upcoming{order:1}
.css-video-evidence{order:2;border-top:1px solid #596367;padding-top:12px}
.css-video-evidence summary{cursor:pointer;font-weight:600;padding:6px 0}
.css-video-evidence .css-video-notes{margin:10px 0}
.css-video-mini{position:fixed;inset:auto 12px 12px auto;width:min(420px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 24px);margin:0;padding:10px}
.css-video-mini .css-video-upcoming,.css-video-mini .css-video-evidence{display:none}
.css-video-mini .css-video-title{font-size:1rem}
@media(max-width:760px){.css-video-dialog{background:#171a1cf7}.css-video-title{font-size:1.05rem}.css-video-controls button{flex:1 1 auto}}

/* Orientation-based theater mode works even where automatic native fullscreen is blocked. */
.css-video-dialog.css-video-landscape{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;overflow:hidden;background:#000}
.css-video-landscape .css-video-layout{display:block;width:100%;height:100%}
.css-video-landscape .css-video-stage{width:100%;height:100%;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
.css-video-landscape .css-video-frame{width:100%;height:100%;aspect-ratio:16/9;object-fit:contain}
.css-video-landscape .css-video-details{display:none}
.css-video-stage:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;background:#000}

/* CSS control palette: charcoal, neon green, white and amber. */
.css-video-dialog{border-color:#c7ff34;background:#171a1c;color:#fff;box-shadow:0 24px 80px #000c,0 0 0 1px #ffffff22}
.css-video-controls{gap:8px}
.css-video-controls button{background:#272d30;color:#fff;border:1px solid #667177;border-radius:7px;font-weight:700;letter-spacing:.015em;transition:background-color .15s,border-color .15s,transform .15s}
.css-video-controls button:not(:disabled):active,.css-video-up-next:active{transform:translateY(1px)}
.css-video-controls button:not(:disabled):hover,.css-video-up-next:hover{border-color:#c7ff34;background:#343c3e}
.css-video-controls button:nth-child(1),.css-video-controls button:nth-child(2){background:#c7ff34;color:#101416;border-color:#c7ff34}
.css-video-controls button:nth-child(1):not(:disabled):hover,.css-video-controls button:nth-child(2):not(:disabled):hover{background:#e0ff91}
.css-video-controls button[aria-pressed="true"]{background:#f5ad32;color:#111;border-color:#f5ad32}
.css-video-controls button:last-child{border-color:#f5ad32;color:#f5ad32}
.css-video-controls button:disabled{opacity:.35}
.css-video-up-next{background:#272d30;color:#fff;border:1px solid #667177;border-left:3px solid #f5ad32;border-radius:7px}
.css-video-upcoming h3{color:#c7ff34}
.css-video-evidence{border-top-color:#596367}

/* Compact auto-next switch, DVD transport, matching utility buttons. */
.css-video-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"auto close" "transport transport" "utility utility";align-items:center;gap:10px;margin:4px 0}
.css-video-controls .css-video-autonext{grid-area:auto;justify-self:start;padding:6px 10px;font-size:.76rem;border-radius:999px;font-weight:600;background:#272d30;color:#fff}
.css-video-controls .css-video-transport{grid-area:transport;display:flex;justify-content:center;align-items:center;gap:10px}
.css-video-controls .css-video-transport button{flex:0 1 96px;min-height:52px;font-size:1.8rem;line-height:1;padding:8px 12px;border:1px solid #c7ff34;background:#272d30;color:#c7ff34;border-radius:12px}
.css-video-controls .css-video-transport .css-video-pause{background:#c7ff34;color:#171a1c;min-width:70px}
.css-video-controls .css-video-utility{grid-area:utility;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.css-video-controls .css-video-utility button{width:100%;min-height:42px;background:#272d30;color:#fff;border-color:#667177}
.css-video-controls > button:last-child{grid-area:close;justify-self:end;padding:6px 12px;border-color:#f5ad32;color:#f5ad32}
.css-video-controls .css-video-transport button:not(:disabled):hover{background:#c7ff34;color:#171a1c}
.css-video-controls .css-video-transport .css-video-pause:not(:disabled):hover{background:#e0ff91}
@media(max-width:760px){.css-video-controls .css-video-transport button{flex:0 1 82px;min-height:48px}.css-video-controls .css-video-utility button{flex:none}}

/* Monochrome transport glyphs drawn in CSS, not emoji. Pause is neutral. */
.css-video-controls .css-video-transport button{position:relative;background:#272d30;color:#fff;border-color:#667177}
.css-video-controls .css-video-transport .css-video-pause{background:#272d30;color:#fff;border-color:#667177;min-width:70px}
.css-video-transport button::before,.css-video-transport button::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.css-video-previous::before{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:15px solid #fff;margin-left:-6px}
.css-video-previous::after{width:4px;height:22px;background:#fff;margin-left:-18px}
.css-video-next::before{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:15px solid #fff;margin-left:6px}
.css-video-next::after{width:4px;height:22px;background:#fff;margin-left:18px}
.css-video-pause::before{width:5px;height:21px;background:#fff;margin-left:-6px}
.css-video-pause::after{width:5px;height:21px;background:#fff;margin-left:6px}
.css-video-pause[data-state="paused"]::before{width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:17px solid #fff;background:none;margin-left:3px}
.css-video-pause[data-state="paused"]::after{display:none}
.css-video-controls .css-video-transport button:not(:disabled):hover{background:#343c3e;color:#fff;border-color:#c7ff34}
.css-video-controls .css-video-transport .css-video-pause:not(:disabled):hover{background:#343c3e}
.css-video-search{display:grid;gap:6px}
.css-video-search-input{box-sizing:border-box;width:100%;min-height:42px;border:1px solid #667177;border-radius:7px;background:#252b2e;color:#fff;padding:9px 12px;font:inherit}
.css-video-search-input:focus-visible{outline:2px solid #c7ff34;outline-offset:2px}
.css-video-search-input::placeholder{color:#c3cbcf}
.css-video-search-results{display:grid;gap:5px}
.css-video-search-result{width:100%;padding:9px 12px;text-align:left;border:1px solid #596367;border-left:3px solid #c7ff34;border-radius:6px;background:#272d30;color:#fff;cursor:pointer}
.css-video-search-result:hover{border-color:#c7ff34}
.css-video-search-results p{margin:4px 0;color:#c3cbcf}

/* Five-icon DVD transport: previous, rewind, pause, fast forward, next. */
.css-video-controls .css-video-transport{gap:clamp(4px,1.5vw,16px)}
.css-video-controls .css-video-transport button,
.css-video-controls .css-video-transport .css-video-pause{flex:0 1 62px;min-width:0;min-height:48px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none}
.css-video-controls .css-video-transport button:not(:disabled):hover,
.css-video-controls .css-video-transport .css-video-pause:not(:disabled):hover{background:transparent;color:#c7ff34;border:0}
.css-video-transport button::before,.css-video-transport button::after{pointer-events:none}
.css-video-previous::before,.css-video-rewind::before{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:14px solid currentColor;margin-left:-5px}
.css-video-previous::after{width:4px;height:22px;background:currentColor;margin-left:-18px}
.css-video-next::before,.css-video-forward::before{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:14px solid currentColor;margin-left:5px}
.css-video-next::after{width:4px;height:22px;background:currentColor;margin-left:18px}
.css-video-rewind::after{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:14px solid currentColor;margin-left:9px}
.css-video-forward::after{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:14px solid currentColor;margin-left:-9px}
.css-video-pause::before,.css-video-pause::after{background:currentColor}
.css-video-pause[data-state="paused"]::before{border-left-color:currentColor}
@media(max-width:760px){.css-video-controls .css-video-transport button{flex:1 1 0;min-height:48px}}

/* Refine DVD transport: slim glyphs, breathing room, no visible button chrome. */
.css-video-controls .css-video-transport{justify-content:center;gap:clamp(12px,3vw,32px);padding:8px 4px}
.css-video-controls .css-video-transport button,
.css-video-controls .css-video-transport .css-video-pause{flex:0 0 clamp(34px,7vw,48px);min-height:48px;opacity:.92}
.css-video-controls .css-video-transport button::before,
.css-video-controls .css-video-transport button::after{filter:none}
.css-video-previous::before,.css-video-rewind::before{border-top-width:8px;border-bottom-width:8px;border-right-width:12px}
.css-video-next::before,.css-video-forward::before{border-top-width:8px;border-bottom-width:8px;border-left-width:12px}
.css-video-rewind::after{border-top-width:8px;border-bottom-width:8px;border-right-width:12px}
.css-video-forward::after{border-top-width:8px;border-bottom-width:8px;border-left-width:12px}
.css-video-previous::after,.css-video-next::after{width:3px;height:19px}
.css-video-pause::before,.css-video-pause::after{width:4px;height:19px}
.css-video-controls .css-video-transport button:not(:disabled):hover{opacity:1}
@media(max-width:760px){.css-video-controls .css-video-transport{gap:clamp(8px,2.7vw,18px)}.css-video-controls .css-video-transport button{flex:0 1 48px;min-width:35px}}

/* Quiet status toggle; compact, low-profile transport. */
.css-video-controls .css-video-autonext{display:inline-flex;align-items:center;gap:6px;padding:2px 4px;background:transparent;border:0;border-radius:4px;color:#c9ced0;font-size:.67rem;font-weight:500;letter-spacing:0;min-height:28px}
.css-video-controls .css-video-autonext:hover{background:transparent;border:0;color:#fff}
.css-video-auto-indicator{display:inline-block;position:relative;width:24px;height:12px;border:1px solid #777e80;border-radius:999px;background:#3b4245}
.css-video-auto-indicator::after{content:"";position:absolute;left:2px;top:2px;width:6px;height:6px;border-radius:50%;background:#e65d4d;box-shadow:0 0 3px #e65d4d}
.css-video-autonext[aria-pressed="true"] .css-video-auto-indicator::after{left:14px;background:#c7ff34;box-shadow:0 0 4px #c7ff34}
.css-video-controls .css-video-autonext[aria-pressed="true"]{background:transparent;border:0;color:#c9ced0}
.css-video-controls .css-video-transport{gap:clamp(10px,2.6vw,25px);padding:1px 2px}
.css-video-controls .css-video-transport button,.css-video-controls .css-video-transport .css-video-pause{flex:0 1 40px;min-height:36px}
.css-video-controls{gap:6px}
@media(max-width:760px){.css-video-controls .css-video-transport{gap:clamp(8px,2.2vw,15px)}.css-video-controls .css-video-transport button{min-height:38px}}

.css-video-forward{touch-action:manipulation;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.css-video-controls .css-video-transport .css-video-forward.css-video-speed-active{color:#c7ff34;opacity:1}

/* Compact mobile-first viewer. Keep playback and queue logic unchanged. */
.css-video-dialog{position:relative;border:1px solid #4b5558;border-radius:12px;padding:12px;box-shadow:0 20px 60px #000b}
.css-video-details{gap:7px;padding-right:0}
.css-video-title{padding-right:28px;font-size:clamp(1rem,1.6vw,1.3rem);line-height:1.3}
.css-video-creator{font-size:.83rem;color:#b7c0c3}
.css-video-controls{position:relative;grid-template-columns:1fr auto;grid-template-areas:"auto utility" "transport transport";gap:2px;margin:0}
.css-video-controls .css-video-autonext,
.css-video-controls .css-video-autonext[aria-pressed="true"]{background:transparent!important;color:#c9ced0!important;border:0!important;box-shadow:none!important;padding:3px 0!important;font-size:.72rem}
.css-video-controls .css-video-utility{display:flex;gap:4px;align-items:center;justify-content:flex-end}
.css-video-controls .css-video-utility button{position:relative;width:32px;height:32px;min-height:32px;padding:0;background:transparent;border:0;color:#c7ff34;font-size:0;line-height:1}
.css-video-controls .css-video-utility button::before{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;font-weight:400}
.css-video-mini-button::before{content:"↙"}
.css-video-fullscreen-button::before{content:"↗"}
.css-video-mini .css-video-mini-button::before{content:"↗"}
.css-video-controls > .css-video-close-button{position:absolute;right:-4px;top:-100px;z-index:2;width:32px;height:32px;min-height:32px;padding:0;border:0;background:#171a1cdd;color:#c7ff34;font-size:26px;font-weight:400;line-height:1}
.css-video-controls .css-video-transport{gap:clamp(8px,2.2vw,20px);padding:0;justify-content:center}
.css-video-controls .css-video-transport button,
.css-video-controls .css-video-transport .css-video-pause{flex:0 1 36px;min-height:36px;height:36px;color:#c7ff34;opacity:1}
.css-video-previous::before,.css-video-rewind::before{border-top-width:5px;border-bottom-width:5px;border-right-width:8px}
.css-video-next::before,.css-video-forward::before{border-top-width:5px;border-bottom-width:5px;border-left-width:8px}
.css-video-rewind::after{border-top-width:5px;border-bottom-width:5px;border-right-width:8px}
.css-video-forward::after{border-top-width:5px;border-bottom-width:5px;border-left-width:8px}
.css-video-previous::after,.css-video-next::after{width:2px;height:12px}
.css-video-pause::before,.css-video-pause::after{width:3px;height:12px}
.css-video-pause[data-state="paused"]::before{border-top-width:7px;border-bottom-width:7px;border-left-width:11px}
.css-video-search-input{min-height:36px;padding:7px 10px;font-size:.9rem}
.css-video-upcoming h3{font-size:1rem;margin:8px 0}
.css-video-upcoming-list{gap:4px}
.css-video-up-next{padding:7px 10px;border:0;border-bottom:1px solid #485155;border-left:2px solid #c7ff34;border-radius:3px;font-size:.88rem}
.css-video-evidence{padding-top:7px}
@media(max-width:760px){
.css-video-dialog{width:calc(100vw - 12px);padding:8px;border-width:1px}
.css-video-details{padding:3px 2px;gap:6px}
.css-video-title{font-size:1rem;padding-right:26px}
.css-video-controls .css-video-transport button{min-height:34px;height:34px;min-width:30px;flex:0 1 36px}
.css-video-controls > .css-video-close-button{top:-94px;right:0}
.css-video-controls .css-video-utility button{flex:none}
}

/* Mobile viewer usability: spacious, evenly distributed transport; quiet fallback. */
@media(max-width:760px){
  .css-video-controls .css-video-transport{
    width:100%;
    justify-content:space-between;
    gap:0;
    padding:16px 2px 18px;
    min-height:82px;
    box-sizing:border-box;
  }
  .css-video-controls .css-video-transport button,
  .css-video-controls .css-video-transport .css-video-pause{
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
  }
  .css-video-controls .css-video-mini-button{display:none}
  .css-video-controls .css-video-utility{gap:0}
  .css-video-controls .css-video-fullscreen-button,
  .css-video-controls .css-video-fullscreen-button:hover,
  .css-video-controls .css-video-fullscreen-button:active{
    width:28px;height:28px;min-height:28px;
    color:#a9b2b5;background:transparent;border:0;
    box-shadow:none;transform:none;opacity:.75;
  }
  .css-video-controls .css-video-fullscreen-button::before{font-size:17px}
  .css-video-search-input{font-size:16px;line-height:1.3}
  .css-video-dialog{overscroll-behavior:contain}
}

/* Exit control for the manual fullscreen fallback only. */
.css-video-stage{position:relative}
.css-video-theater-exit{display:none}
.css-video-manual-theater .css-video-theater-exit{
  display:block;position:absolute;top:max(8px,env(safe-area-inset-top));right:12px;z-index:3;
  width:34px;height:34px;border:0;border-radius:50%;
  background:#171a1caa;color:#fff;font-size:26px;line-height:30px;
}


/* Bounded video selection: swipeable topic chips, no mobile keyboard. */
.css-video-topic-list{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:5px 2px 10px;scrollbar-width:thin}
.css-video-topic-chip{flex:0 0 auto;scroll-snap-align:start;min-height:36px;padding:7px 13px;border:1px solid #647074;border-radius:999px;background:#20272a;color:#e3e8e9;font:inherit;font-size:.85rem;white-space:nowrap;cursor:pointer}
.css-video-topic-chip[aria-pressed="true"]{border-color:#c7ff34;color:#c7ff34;background:#303a2c}
.css-video-topic-chip:focus-visible{outline:2px solid #c7ff34;outline-offset:2px}
.css-video-search-results:empty{display:none}
@media(max-width:760px){.css-video-topic-chip{min-height:40px}}

