/* Self-contained light/dark palette; excluded from automatic theme recoloring. */
.md-watch{--wv-bg:#f6f8f8;--wv-card:#fff;--wv-text:#182c32;--wv-muted:#526970;--wv-line:#cad9dc;--wv-accent:#1c2433;--wv-on-accent:#fff;--wv-active:#fff;color:var(--wv-text);font-family:inherit;padding:8px 0 16px}
html[data-theme="dark"] .md-watch{--wv-bg:#000;--wv-card:#000;--wv-text:#ededed;--wv-muted:#a1a1a1;--wv-line:rgba(255,255,255,.18);--wv-accent:#ededed;--wv-on-accent:#000;--wv-active:#161616}
.md-watch .md-watch-title{font-size:14px;font-weight:650;letter-spacing:.04em;line-height:1.5;margin:0 0 12px;color:var(--wv-accent)}
.md-watch-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body .md-watch .md-watch-option{position:relative;container-type:inline-size;min-width:0;border:2px solid var(--wv-line);border-radius:10px;background:var(--wv-card)!important;transition:border-color .16s,background .16s}
html body .md-watch .md-watch-option[data-selected="true"]{border-color:var(--wv-accent);background:var(--wv-active)!important}
html body .md-watch button.md-watch-card{position:static;display:block;text-align:center;min-width:0;min-height:40px;width:100%;margin:0;padding:6px 26px;border:0!important;border-radius:8px;background:transparent!important;color:var(--wv-text)!important;font:inherit;line-height:1.5;cursor:pointer;box-shadow:none}
/* Extend the native depth button over the card; role buttons stay above it. */
.md-watch-card::after{content:"";position:absolute;inset:0;border-radius:8px}
html body .md-watch button.md-watch-card:hover{color:var(--wv-accent)!important}
.md-watch-card-top{display:flex;align-items:center;justify-content:center;gap:10px}
.md-watch-choice{position:absolute;right:10px;top:11px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:11px;line-height:1;color:var(--wv-accent);border:1px solid var(--wv-line);border-radius:50%}
[aria-pressed="true"]>.md-watch-card-top .md-watch-choice{border-color:var(--wv-accent)}
.md-watch-name{font-size:clamp(14px,6.1cqi,26px);font-weight:650;letter-spacing:-.025em;line-height:1.2}
.md-watch-perspectives{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:0 8px 8px}
.md-watch-short-name{display:none}
.md-watch-transcript{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:var(--wv-text);text-underline-offset:3px}
.md-watch-player::cue{color:#fff;background:rgba(0,0,0,.92);font-family:Arial,sans-serif;font-size:16px}
.md-watch-frame .md-watch-subtitles{flex:none;box-sizing:border-box;width:100%;min-height:4.5em;padding:10px 14px;background:#000;color:#fff;text-align:center;white-space:pre-line;font-family:Arial,sans-serif;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.md-watch-frame .md-watch-subtitles[hidden]{display:none!important}
@media(max-width:640px){.md-watch-frame .md-watch-subtitles{font-size:.875rem;padding:8px 12px}.md-watch-player::cue{font-size:14px}}
html body .md-watch button.md-watch-perspective{position:relative;z-index:1;max-width:100%;min-height:32px;margin:0;padding:3px 7px;border:1px solid var(--wv-line);border-radius:5px;background:var(--wv-card)!important;color:var(--wv-text)!important;font:inherit;font-size:clamp(14px,4.5cqi,18px)!important;font-weight:500;text-align:center;line-height:1.2;white-space:normal;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-perspective:hover{border-color:var(--wv-accent)}
html body .md-watch button.md-watch-perspective[aria-pressed="true"]{border-color:var(--wv-accent);background:var(--wv-accent)!important;color:var(--wv-on-accent)!important}
.md-watch-detail{margin-top:16px}
.md-watch-stage{min-width:0}
.md-watch-player{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:10px}
.md-watch [hidden]{display:none!important}
.md-watch-state{display:flex;flex-direction:column;justify-content:center;min-height:215px;padding:25px;background:var(--wv-card);border:1px dashed var(--wv-line);border-radius:10px}
.md-watch-state.md-watch-pending{min-height:0;padding:16px 18px}
.md-watch .md-watch-state-title{font-size:18px;line-height:1.35;margin:0 0 12px;color:var(--wv-text)}
.md-watch .md-watch-state-copy{font-size:14px;line-height:1.65;color:var(--wv-muted);margin:0 0 20px}
.md-watch-actions{display:flex;gap:10px;flex-wrap:wrap}
html body .md-watch button.md-watch-action{padding:10px 14px;min-height:44px;margin:0;border:1px solid var(--wv-accent);background:var(--wv-active)!important;color:var(--wv-text)!important;font:inherit;font-size:13px;border-radius:8px;cursor:pointer}
html body .md-watch button.md-watch-action-secondary{background:transparent!important;border-color:var(--wv-line)}
.md-watch .md-watch-caption{font-size:12px;line-height:1.65;color:var(--wv-muted);margin:12px 0 0}
.md-watch button:focus-visible{outline:3px solid var(--wv-accent)!important;outline-offset:4px}
.md-watch button.md-watch-card:focus-visible{outline:none!important}
.md-watch-card:focus-visible::after{outline:3px solid var(--wv-accent);outline-offset:4px}
.md-watch-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:760px){
 .md-watch-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .md-watch[data-page-perspective="true"] .md-watch-perspectives{display:none}
 .md-watch .md-watch-title{margin-bottom:6px;font-size:12px;letter-spacing:0}
 .md-watch-name{display:none}
 .md-watch-short-name{display:block;font-size:14px;font-weight:650;line-height:1.2}
 html body .md-watch button.md-watch-card{min-height:44px;padding:8px 16px 8px 6px}
 .md-watch-choice{right:4px;top:15px;width:12px;height:12px;font-size:9px}
 .md-watch-detail{margin-top:10px}
 .md-watch-state{padding:16px;min-height:160px}
}
@media(prefers-reduced-motion:reduce){.md-watch-option{transition:none!important}}

/* Player chrome. Sections live on the bar, not under the video. */
.md-watch-frame{position:relative;background:#000;border-radius:10px;overflow:hidden}
.md-watch-frame .md-watch-player{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:0}
.md-watch-nowrow{display:flex;align-items:baseline;gap:8px;min-width:0}
.md-watch-now{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:1.15em;font-size:13px;font-weight:650;letter-spacing:.01em;color:#fff}
.md-watch-version{display:block;margin:10px 2px 2px;font-size:14px;font-weight:650;letter-spacing:.02em;line-height:1.35;color:var(--wv-text,#182c32);text-align:left}html body .md-watch p.md-watch-version:not([hidden]){display:block!important;margin:10px 2px 2px;font-size:14px;font-weight:650;letter-spacing:.02em;line-height:1.35;color:#182c32;text-align:left}html[data-theme="dark"] body .md-watch p.md-watch-version:not([hidden]){color:#ededed}
.md-watch-bigplay{position:absolute;z-index:3;left:50%;top:46%;transform:translate(-50%,-50%);width:68px;height:68px;margin:0;padding:0;border:0!important;border-radius:50%;background:rgba(0,0,0,.5)!important;color:#fff!important;font-size:26px;line-height:1;cursor:pointer;box-shadow:none}
.md-watch-chrome{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:6px;padding:28px 12px 10px;background:linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,0));color:#fff;opacity:0;pointer-events:none;transition:opacity .18s ease}
.md-watch-frame:hover .md-watch-chrome,
.md-watch-frame:focus-within .md-watch-chrome,
.md-watch-frame.md-watch-paused .md-watch-chrome,
.md-watch-frame.md-watch-reveal .md-watch-chrome,
.md-watch-frame.md-watch-menus .md-watch-chrome{opacity:1;pointer-events:auto}
.md-watch-bar{display:flex;align-items:center;gap:8px;min-width:0}
.md-watch-cluster{display:flex;align-items:center;flex:none;gap:2px}
.md-watch-times{display:inline-flex;align-items:center;gap:.35em;margin:0 4px 0 2px;color:#fff;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.md-watch-slash{opacity:.72;font-size:12px}
.md-watch-time{font-size:13px;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.92);min-width:0}
html body .md-watch button.md-watch-icon{display:inline-flex!important;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0!important;border:0!important;border-radius:6px;background:transparent!important;color:#fff!important;line-height:0;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-icon svg,.md-watch-bigplay svg{width:18px;height:18px;display:block;pointer-events:none}
.md-watch-skip svg{width:26px;height:26px}
.md-watch-bigplay{display:flex!important;align-items:center;justify-content:center}
.md-watch-bigplay svg{width:28px;height:28px}
html body .md-watch button.md-watch-icon:hover{background:rgba(255,255,255,.12)!important}
html body .md-watch button.md-watch-icon[aria-pressed="true"]{background:rgba(255,255,255,.16)!important}
.md-watch-rail{position:relative;z-index:4;flex:1 1 auto;min-width:64px;height:22px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.md-watch-rail[hidden]{display:none!important}
.md-watch-track{position:relative;width:100%;height:3px;border-radius:99px;background:rgba(255,255,255,.35)}
.md-watch-ticks{position:absolute;left:0;right:0;top:-8px;height:20px;pointer-events:none}
.md-watch-fill,.md-watch-buffer{position:absolute;left:0;top:0;height:100%;width:0;border-radius:99px;pointer-events:none}
.md-watch-buffer{background:rgba(255,255,255,.38)}
.md-watch-fill{background:#fff}
.md-watch-thumb{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#fff;pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.4)}
html body .md-watch button.md-watch-tick{position:absolute;top:50%;width:10px;height:20px;margin:-10px 0 0 -5px;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;min-height:0!important;min-width:0!important;cursor:pointer;pointer-events:auto}
html body .md-watch button.md-watch-tick::after{content:"";position:absolute;left:4px;top:4px;width:2px;height:12px;border-radius:1px;background:#fff}
html body .md-watch button.md-watch-tick[aria-current="true"]::after{width:3px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.45)}
.md-watch-preview{position:absolute;z-index:6;bottom:20px;width:112px;transform:translateX(-50%);display:flex;flex-direction:column;gap:3px;pointer-events:none}
.md-watch-preview-video{width:112px;height:63px;object-fit:cover;background:#000;border:1px solid rgba(255,255,255,.4);border-radius:4px;display:block}
.md-watch-preview .md-watch-tip{position:static;transform:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;text-align:center}
.md-watch-tip{position:absolute;bottom:16px;transform:translateX(-50%);padding:3px 7px;border-radius:4px;background:#111;color:#fff;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none}
.md-watch-volwrap{position:relative;display:flex}
.md-watch-volpop{position:absolute;z-index:6;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:36px;height:116px;padding:10px 0;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(8,8,8,.96)}
.md-watch-volpop .md-watch-volume{writing-mode:vertical-lr;direction:rtl;width:22px;height:96px;margin:0;accent-color:#fff;cursor:ns-resize;touch-action:none}
.md-watch-preview[hidden],.md-watch-volpop[hidden]{display:none!important}
.md-watch-menu{position:absolute;z-index:5;left:8px;right:8px;bottom:72px;box-sizing:border-box;max-height:calc(100% - 84px);overflow:auto;padding:6px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(8,8,8,.96);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.35)}
html body .md-watch button.md-watch-chapter{display:flex;width:100%;gap:8px;margin:0;padding:7px 8px;border:0!important;border-radius:6px;background:transparent!important;color:#fff!important;font:inherit;font-size:13px;line-height:1.35;text-align:left;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-chapter[aria-current="true"]{background:rgba(255,255,255,.14)!important}
html body .md-watch button.md-watch-chapter:hover{background:rgba(255,255,255,.08)!important}
.md-watch-setrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:5px 4px}
.md-watch-setlabel{min-width:64px;font-size:12px;color:rgba(255,255,255,.62)}
html body .md-watch button.md-watch-setbtn{margin:0;padding:4px 8px;border:1px solid rgba(255,255,255,.22)!important;border-radius:6px;background:transparent!important;color:#fff!important;font:inherit;font-size:12px;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-setbtn[aria-pressed="true"]{background:#fff!important;color:#000!important;border-color:#fff!important}
.md-watch-volume{width:120px;height:16px;accent-color:#fff}
.md-watch-help{margin:4px;font-size:12px;line-height:1.45;color:rgba(255,255,255,.68)}
.md-watch-frame:fullscreen,.md-watch-frame:-webkit-full-screen{display:flex;align-items:center;width:100%;height:100%;background:#000;border-radius:0}
.md-watch-frame:fullscreen .md-watch-player,.md-watch-frame:-webkit-full-screen .md-watch-player{max-height:100%;height:100%;object-fit:contain}
@media(max-width:640px){
 html body .md-watch button.md-watch-icon{width:28px;min-width:28px;height:32px;min-height:32px}
 html body .md-watch button.md-watch-skip,
 html body .md-watch button.md-watch-pip{position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden;clip-path:inset(50%);pointer-events:none}
 .md-watch-now{font-size:12px}
 .md-watch-bar{gap:6px}
 .md-watch-times{font-size:12px;margin:0 2px}
 .md-watch-menu{bottom:64px;max-height:calc(100% - 76px)}
}
@media(max-width:380px){
 html body .md-watch button.md-watch-icon{width:26px;min-width:26px;height:30px;min-height:30px}
 .md-watch-time,.md-watch-times{font-size:11px}
 .md-watch-bar{gap:4px}
}
@media(prefers-reduced-motion:reduce){.md-watch-chrome{transition:none}}

/* Film evidence: two views, one section picker, citation notes visible in place. */
html body .md-watch details.md-watch-sources{margin:16px 0 4px;border:1px solid var(--wv-line);border-radius:12px;background:var(--wv-card);color:var(--wv-text);overflow:hidden}
html body .md-watch details.md-watch-sources>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:16px;list-style:none;cursor:pointer;font-size:16px;line-height:1.4}
html body .md-watch details.md-watch-sources>summary::-webkit-details-marker{display:none}
html body .md-watch details.md-watch-sources>summary::marker{content:""}
html body .md-reading-layout .md-watch details.md-watch-sources>summary::before,
html body .md-watch details.md-watch-sources>summary::before{content:"";display:inline-block;width:.42em;height:.42em;margin:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);flex:none}
html body .md-reading-layout .md-watch details.md-watch-sources[open]>summary::before,
html body .md-watch details.md-watch-sources[open]>summary::before{transform:rotate(45deg)}
.md-watch-sources-label{font-weight:650}
.md-watch-sources-meta{margin-left:auto;padding:3px 9px;border-radius:6px;background:var(--wv-bg);color:var(--wv-muted);font-size:13px;font-weight:550}
.md-watch-sources-body{padding:0 20px 20px;border-top:1px solid var(--wv-line)}
.md-watch .md-watch-sources-intro{margin:16px 0;color:var(--wv-text);font-size:15px;line-height:1.55}
.md-watch-source-views{display:flex;gap:4px;padding:4px;border-radius:10px;background:var(--wv-bg);border:1px solid var(--wv-line)}
html body .md-watch button.md-watch-source-view{flex:1;min-width:0;min-height:44px;margin:0;padding:9px 12px;border:1px solid transparent!important;border-radius:7px;background:transparent!important;color:var(--wv-muted)!important;font:inherit;font-size:14px;font-weight:600;line-height:1.35;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-source-view[aria-pressed="true"]{border-color:var(--wv-accent)!important;background:var(--wv-accent)!important;color:var(--wv-on-accent)!important}
.md-watch-sources-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
html body .md-watch input.md-watch-source-find{flex:1 1 200px;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;box-sizing:border-box;border:1px solid var(--wv-line);border-radius:8px;background:var(--wv-card);color:var(--wv-text);font:inherit;font-size:15px;box-shadow:none}
.md-watch-source-find::placeholder{color:var(--wv-muted);opacity:1}
.md-watch-source-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;margin-top:16px}
.md-watch-source-select-label{grid-column:1/-1;color:var(--wv-muted);font-size:13px;font-weight:600}
html body .md-watch select.md-watch-source-select{min-width:0;width:100%;max-width:100%;min-height:44px;margin:0;padding:10px 32px 10px 10px;border:1px solid var(--wv-line);border-radius:8px;background-color:var(--wv-card);color:var(--wv-text);font:inherit;font-size:15px;text-overflow:ellipsis;box-sizing:border-box;color-scheme:light}
html[data-theme="dark"] body .md-watch select.md-watch-source-select{color-scheme:dark}
html body .md-watch button.md-watch-source-tool{min-height:44px;margin:0;padding:8px 10px;border:1px solid var(--wv-line)!important;border-radius:8px;background:var(--wv-card)!important;color:var(--wv-text)!important;font:inherit;font-size:13px;font-weight:550;line-height:1.35;cursor:pointer;box-shadow:none}
html body .md-watch button.md-watch-source-tool:hover{border-color:var(--wv-accent)!important;background:var(--wv-bg)!important}
.md-watch .md-watch-source-count,.md-watch .md-watch-source-empty{margin:12px 0;color:var(--wv-muted);font-size:13px;line-height:1.5}
.md-watch-source-empty{padding:20px;border:1px dashed var(--wv-line);border-radius:8px}
.md-watch-source-scene{margin-top:16px}
.md-watch .md-watch-source-scene-title,.md-watch .md-watch-source-all-title{margin:0 0 10px;color:var(--wv-text);font-size:17px;font-weight:650;line-height:1.4}
.md-watch .md-watch-source-picture{margin:0 0 12px;padding:10px 12px;border-radius:8px;background:var(--wv-bg);color:var(--wv-muted);font-size:13px;line-height:1.55}
.md-watch-source-k{font-weight:650;color:var(--wv-text)}
.md-watch-source-kind{grid-column:2;justify-self:start;padding:2px 7px;border:1px solid var(--wv-line);border-radius:5px;color:var(--wv-muted);font-size:12px;font-weight:650;line-height:1.5}
.md-watch-source-kind-qualification,.md-watch-source-kind-gap,.md-watch-source-kind-mismatch{border-color:var(--wv-muted);border-left:3px solid var(--wv-accent);color:var(--wv-text);background:var(--wv-bg)}
.md-watch-source-kind-illustration{border-style:dashed}
.md-watch-source-type{display:inline-block;margin:4px 0 0 10px;padding:2px 7px;border:1px solid var(--wv-line);border-radius:5px;color:var(--wv-muted);font-size:12px;font-weight:600;line-height:1.5;vertical-align:middle}
.md-watch .md-watch-source-edition{margin:14px 0;padding:12px;border:1px solid var(--wv-muted);border-left:3px solid var(--wv-accent);border-radius:7px;background:var(--wv-bg);color:var(--wv-text);font-size:14px;line-height:1.6}
html body .md-watch button.md-watch-source-time:disabled,html body .md-watch button.md-watch-source-tool:disabled{opacity:.55;cursor:default;text-decoration:none}
.md-watch-source-lines{list-style:none;margin:0;padding:0}
.md-watch-source-line{display:grid;grid-template-columns:3.5rem minmax(0,1fr);gap:6px 14px;padding:18px 12px;border-top:1px solid var(--wv-line);overflow-wrap:anywhere}
.md-watch-source-line.is-current{background:var(--wv-bg);box-shadow:inset 3px 0 0 var(--wv-accent);border-radius:8px}
.md-watch-source-line.has-flag{border:1px dashed var(--wv-muted);border-radius:8px;margin:8px 0}
html body .md-watch button.md-watch-source-time{grid-column:1;grid-row:1;align-self:start;justify-self:start;min-height:44px;margin:-10px 0 -4px;padding:8px 2px;border:0!important;border-radius:4px;background:transparent!important;color:var(--wv-accent)!important;font:inherit;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;text-decoration:underline;text-underline-offset:3px;cursor:pointer;box-shadow:none}
.md-watch .md-watch-source-say{grid-column:2;margin:0;color:var(--wv-text);font-size:16px;line-height:1.6}
.md-watch .md-watch-source-where{grid-column:2;margin:0;color:var(--wv-muted);font-size:14px;line-height:1.55}
.md-watch .md-watch-source-flag{grid-column:2;margin:0;padding:8px 10px;border-left:2px solid var(--wv-accent);background:var(--wv-bg);color:var(--wv-text);font-size:14px;line-height:1.55}
.md-watch-source-chips{grid-column:2;display:flex;flex-wrap:wrap;gap:4px 12px}
html body .md-watch a.md-watch-source-chip{display:inline-flex;align-items:center;min-height:36px;max-width:100%;padding:2px 0;color:var(--wv-accent);font-size:13px;font-weight:550;line-height:1.5;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.md-watch-source-all{margin-top:16px}
.md-watch .md-watch-source-library-help{margin:0 0 12px;color:var(--wv-muted);font-size:13px;line-height:1.5}
.md-watch-source-index{margin:0;padding-left:26px}
.md-watch-source-index li{padding:14px 4px 14px 6px;border-top:1px solid var(--wv-line);font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.md-watch-source-index li::marker{color:var(--wv-muted);font-variant-numeric:tabular-nums}
html body .md-watch .md-watch-source-index a{padding:4px 0;color:var(--wv-accent);font-weight:650;text-underline-offset:3px}
.md-watch .md-watch-source-detail{margin:6px 0 0;color:var(--wv-muted);font-size:14px;line-height:1.6}
.md-watch-source-record{margin-top:20px;padding-top:14px;border-top:1px solid var(--wv-line)}
.md-watch .md-watch-source-checked,.md-watch .md-watch-sources-note{margin:0 0 8px;color:var(--wv-muted);font-size:12px;line-height:1.6}
.md-watch-source-checked{font-weight:600}
html body .md-watch .md-watch-sources :is(button,input,select,a,summary):focus-visible{outline:2px solid var(--wv-accent)!important;outline-offset:3px}
@media(max-width:640px){
 .md-watch-sources-body{padding:0 12px 14px}
 html body .md-watch details.md-watch-sources>summary{padding:14px 12px}
 html body .md-watch button.md-watch-source-view{padding:8px;font-size:13px}
 .md-watch-source-navigation{grid-template-columns:minmax(0,1fr)}
 .md-watch-source-navigation .md-watch-source-tool{justify-self:start}
 .md-watch-source-line{grid-template-columns:2.8rem minmax(0,1fr);gap:6px 8px;padding:16px 6px}
 .md-watch .md-watch-source-say{font-size:15px}
 .md-watch .md-watch-source-where,.md-watch .md-watch-source-flag{font-size:13px}
}

/* Subtitle-safe controls: picture and controls never share vertical space. */
.md-watch-frame{display:flex;flex-direction:column;overflow:visible}
.md-watch-frame .md-watch-player{flex:none;min-height:0;object-fit:contain}
.md-watch-frame .md-watch-chrome{position:relative;inset:auto;flex:none;opacity:1;pointer-events:auto;padding:8px 12px;background:#111;transition:none;border-radius:0 0 10px 10px;box-sizing:border-box;width:100%}
.md-watch-bar{justify-content:space-between;flex-wrap:wrap;gap:4px}
.md-watch-nowrow:empty{display:none}
.md-watch-rail{flex:none;width:100%;min-width:0;height:28px}
html body .md-watch button.md-watch-icon{width:44px;min-width:44px;height:44px;min-height:44px}
.md-watch-frame .md-watch-menu{position:relative;inset:auto;flex:none;width:100%;max-height:260px;margin:0;box-sizing:border-box;border-radius:0;padding:12px}
html body .md-watch button.md-watch-setbtn,html body .md-watch button.md-watch-chapter{min-height:44px;min-width:44px;font-size:14px}
.md-watch-help{font-size:13px}
.md-watch-bigplay{top:35%}
.md-watch-frame:fullscreen,.md-watch-frame:-webkit-full-screen{flex-direction:column;justify-content:center;overflow:auto}
.md-watch-frame:fullscreen .md-watch-player,.md-watch-frame:-webkit-full-screen .md-watch-player{flex:1 1 0;height:0;min-height:0;width:100%;max-height:100%;object-fit:contain}
.md-watch-frame:fullscreen .md-watch-menu{max-height:35vh}
@media(max-width:640px){
 .md-watch-frame .md-watch-chrome{padding:6px 8px}
 .md-watch-cluster{gap:0}
 .md-watch-times{font-size:12px;margin:0 2px}
 html body .md-watch button.md-watch-skip{display:none!important}
 .md-watch-ticks{display:none}
 .md-watch-now{font-size:12px}
 .md-watch-frame .md-watch-menu{max-height:300px}
 .md-watch-bar{column-gap:0}
}
@media(max-width:380px){
 .md-watch-bar{justify-content:center}
 .md-watch-bar>.md-watch-cluster:first-child{width:100%;justify-content:space-between}
 .md-watch-bar>.md-watch-cluster:last-child{width:100%;justify-content:space-between}
}

/* Fade controls without collapsing the subtitle-safe control area. */
.md-watch-frame .md-watch-chrome{transition:opacity .12s ease}
.md-watch-frame.md-watch-idle:not(.md-watch-paused):not(.md-watch-menus) .md-watch-chrome{opacity:0!important;visibility:hidden;pointer-events:none!important}
.md-watch-frame.md-watch-idle:not(.md-watch-paused):not(.md-watch-menus) .md-watch-player{cursor:none}
@media(prefers-reduced-motion:reduce){.md-watch-frame .md-watch-chrome{transition:none}}

/* Compact, subtitle-safe controls and viewport-contained settings. */
.md-watch-nowrow{justify-content:space-between;min-height:20px;gap:12px}
.md-watch-now{font-size:12px}
.md-watch-frame .md-watch-chrome{gap:0;padding:4px 8px}
.md-watch-rail{height:22px}
.md-watch-bar{flex-wrap:nowrap;justify-content:space-between}
.md-watch-bar>.md-watch-cluster{width:auto!important}
.md-watch-frame .md-watch-menu{position:fixed;z-index:10000;inset:auto 16px 16px auto;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:16px;border-radius:12px;border:1px solid #666;box-shadow:0 8px 32px #0009}
.md-watch-frame:fullscreen .md-watch-menu{max-height:calc(100dvh - 32px)}
html body .md-watch button.md-watch-close{display:block;min-height:44px;margin:8px 0 0 auto;padding:8px 16px;background:#fff!important;color:#111!important;border:1px solid #777;border-radius:6px;font:inherit;cursor:pointer}
.md-watch-keyhelp{font-size:13px;color:#ddd;margin-top:12px}
.md-watch-keyhelp summary{min-height:32px;cursor:pointer}
.md-watch-setlabel{color:#ddd;min-width:52px}
.md-watch-bigplay{top:calc((100% - 94px)/2)}
@media(max-width:640px){
 .md-watch-frame .md-watch-chrome{padding:4px 8px}
 .md-watch-bar{gap:0;justify-content:space-between}
 .md-watch-frame .md-watch-menu{inset:auto 8px 8px 8px;width:calc(100% - 16px);max-height:60dvh}
 .md-watch-frame:fullscreen .md-watch-menu{max-height:60dvh}
 .md-watch-keyhelp{display:none}
}

.md-watch-picture{position:relative;flex:none;min-height:0;width:100%;line-height:0}
.md-watch-picture .md-watch-bigplay{top:50%}
.md-watch-frame:fullscreen .md-watch-picture,.md-watch-frame:-webkit-full-screen .md-watch-picture{flex:1 1 0;min-height:0}
.md-watch-frame:fullscreen .md-watch-picture .md-watch-player,.md-watch-frame:-webkit-full-screen .md-watch-picture .md-watch-player{height:100%;width:100%;aspect-ratio:auto}

.md-watch-frame .md-watch-menu{background:#111!important;color:#fff!important}
html body .md-watch .md-watch-keyhelp summary,html body .md-watch .md-watch-help{color:#ddd!important}
html body .md-watch button.md-watch-close{position:sticky;top:0;z-index:2;margin:0 0 8px auto}

.md-watch-media-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#111;color:#fff;font-size:14px;line-height:1.4;flex:none}
.md-watch-media-notice[hidden],.md-watch-gesture[hidden]{display:none!important}
html body .md-watch button.md-watch-retry{min-height:44px;margin:0;padding:8px 12px;border:1px solid #aaa;border-radius:6px;background:#fff!important;color:#111!important;font:inherit;cursor:pointer}
.md-watch-gesture{position:absolute;top:40%;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:8px;background:#111e;color:#fff;font-size:16px;line-height:1.4;pointer-events:none}
.md-watch-caption-notice,.md-watch-touch-help{color:#ddd!important;font-size:13px;line-height:1.5}
.md-watch-touch-help{display:none}
@media(pointer:coarse){.md-watch-picture{touch-action:pan-y pinch-zoom}.md-watch-touch-help{display:block}}

/* Video cards provide the visible perspective choices. Keep the page controller
   in the DOM for existing reading/FAQ synchronization, without a duplicate row. */
html body:has(.md-watch) .md-sticky-search > :is(.profile-choices,#perspective.perspective,.md-page-perspective){display:none!important}
@media(max-width:760px){
 .md-watch[data-page-perspective="true"] .md-watch-perspectives{display:flex;padding:0 2px 6px;gap:4px}
 html body .md-watch button.md-watch-perspective{flex:1 0 100%;min-height:44px;padding:6px 2px;font-size:13px!important;overflow-wrap:anywhere}
}
