
.director-credit { display:inline-block; margin-top:.5rem; color:var(--accent); text-underline-offset:3px; }
#studio-tray { background:var(--panel); padding:14px; }
#studio-filter:not([hidden]) { display:block; margin-bottom:10px; }
#studio-query { box-sizing:border-box; width:100%; border:1px solid var(--edge-strong); background:var(--input-bg); color:var(--ink); border-radius:8px; padding:10px 12px; font:inherit; }
#studio-query::placeholder { color:var(--muted); }
#studio-tray #voice-select { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:6px; max-height:240px; overflow-y:auto; overscroll-behavior:contain; padding:2px; scrollbar-color:var(--edge-strong) var(--input-bg); }
#studio-tray .voice-pick { display:flex; align-items:center; gap:8px; text-align:left; border-radius:7px; font-size:.84rem; line-height:1.25; padding:8px 10px; }
#studio-tray .voice-pick[aria-pressed=true]::before { content:"✓"; font-weight:bold; }
.studio-empty { grid-column:1/-1; color:var(--muted); margin:.4rem; }
dialog:has(.cinema-stream) { width:min(1000px,96vw); background:var(--bg); border:1px solid var(--edge-strong); box-shadow:0 24px 110px #0c0710c9; }
.dialog-inner:has(.cinema-stream) { padding:clamp(15px,2.2vw,30px); }
.dialog-inner:has(.cinema-stream) .detail-head h2 { font-weight:700; letter-spacing:-.045em; }
.dialog-inner:has(.cinema-stream) .meta { color:var(--muted); margin-top:5px; }
.cinema-stream { border:0; padding:0; margin-top:20px; }
.cinema-head { display:flex; align-items:stretch; gap:clamp(11px,2vw,24px); padding:12px clamp(12px,2vw,22px); background:var(--raised); border:1px solid var(--edge); border-bottom:0; border-radius:16px 16px 0 0; }
.cinema-episode,.studio-trigger { display:flex; flex-direction:column; justify-content:center; gap:2px; }
.cinema-episode>span,.studio-trigger small { color:var(--muted); font-size:.8rem; line-height:1.3; font-weight:500; }
.cinema-episode select { padding:2px 24px 2px 0; min-width:48px; max-width:none; background-color:transparent; border:0; font-weight:700; color:var(--ink); }
.cinema-episode select option { background:var(--panel); }
.cinema-divider { width:1px; align-self:stretch; background:var(--edge); }
.studio-trigger { flex-direction:row; align-items:center; gap:13px; padding:2px 8px 2px 0; border-radius:9px; text-align:left; min-width:0; }
.studio-trigger:hover b { color:var(--accent); }
.studio-trigger small,.studio-trigger b { display:block; }
.studio-trigger b { font-size:1.02rem; line-height:1.35; }
.studio-chevron { border:solid var(--accent); border-width:0 1.6px 1.6px 0; width:7px; height:7px; transform:rotate(45deg); margin-left:3px; }
.studio-trigger[aria-expanded=true] .studio-chevron { transform:rotate(225deg); }
.sound-bars { display:inline-flex; align-items:center; justify-content:center; gap:3px; width:34px; height:34px; border-radius:11px; color:var(--accent); background:var(--violet-wash); }
.sound-bars i { width:3px; height:10px; border-radius:3px; background:currentColor; }
.sound-bars i:nth-child(2) { height:18px; }
.sound-bars i:nth-child(3) { height:14px; }
.cinema-head .provider-note { margin:auto 0 auto auto; max-width:43%; text-align:right; color:var(--muted); line-height:1.35; font-size:.85rem; }
#studio-tray { background:var(--panel); padding:12px 16px; border:1px solid var(--edge); }
#studio-tray .voice-picks { margin:0; }
#studio-tray .voice-pick { min-height:34px; background:var(--raised); border-color:var(--edge); }
#studio-tray .voice-pick[aria-pressed=true] { color:var(--on-accent); border-color:var(--rose); background:var(--rose); }
.cinema-screen { background:var(--night); color:var(--ink); border:1px solid var(--edge); border-radius:0 0 16px 16px; overflow:hidden; }
.cinema-screen:empty { display:none; }
.cinema-screen iframe,.cinema-screen video { display:block; width:100%; border:0; border-radius:0; background:var(--night); aspect-ratio:16/9; object-fit:contain; }
.cinema-dock { background:linear-gradient(130deg,var(--raised),var(--input-bg) 68%); padding:12px clamp(12px,2vw,21px); border-top:1px solid var(--edge-strong); }
.dock-timeline,.dock-actions,.dock-volume { display:flex; align-items:center; }
.dock-timeline { gap:11px; }
.dock-timeline time { color:var(--muted); font:500 .82rem/1.3 Consolas,monospace; font-variant-numeric:tabular-nums; min-width:3ch; }
.cinema-dock input[type=range] { appearance:none; border:0; height:24px; padding:0; margin:0; background:transparent; cursor:pointer; accent-color:var(--rose); }
.cinema-dock input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(to right,var(--rose) var(--fill,0%),var(--edge-strong) var(--fill,0%)); }
.cinema-dock input[type=range]::-moz-range-track { height:4px; border-radius:4px; background:var(--edge-strong); }
.cinema-dock input[type=range]::-moz-range-progress { height:4px; background:var(--rose); }
.cinema-dock input[type=range]::-webkit-slider-thumb { appearance:none; width:11px; height:11px; margin-top:-3.5px; border:0; border-radius:50%; background:var(--rose-hover); box-shadow:0 0 0 3px #ffa6cf25; }
.cinema-dock input[type=range]::-moz-range-thumb { width:11px; height:11px; border:0; border-radius:50%; background:var(--rose-hover); }
.cinema-dock input:disabled { cursor:default; opacity:.5; }
.dock-timeline input { flex:1; min-width:20px; }
.dock-actions { gap:10px; margin-top:5px; }
.dock-actions button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:auto; min-width:39px; min-height:38px; padding:7px; background:transparent; color:var(--ink); border-radius:10px; font-size:.86rem; }
.dock-actions button:hover { background:var(--raised); }
.dock-actions svg { width:20px; height:20px; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.dock-actions .dock-play { color:var(--on-accent); min-width:46px; border-radius:22px; background:var(--rose); }
.dock-actions .dock-play:hover { background:var(--rose-hover); }
.dock-volume { gap:2px; }
.dock-volume input { width:clamp(42px,8vw,92px); }
.dock-spacer { flex:1; }
.dock-settings { display:flex; gap:15px; flex-wrap:wrap; align-items:center; padding:13px 0 3px; margin-top:8px; border-top:1px solid var(--edge); }
.dock-settings label { display:flex; align-items:center; gap:7px; font-size:.88rem; }
.dock-settings select { max-width:none; min-width:75px; }
.dock-settings p,.dock-hint { color:var(--muted); font-size:.85rem; line-height:1.45; }
.dock-hint { margin-top:8px; }
.cinema-screen:fullscreen { display:flex; flex-direction:column; justify-content:center; border:0; border-radius:0; }
.cinema-screen:fullscreen>video,.cinema-screen:fullscreen>iframe { flex:1; min-height:0; height:0; }
.cinema-screen:fullscreen .cinema-dock { flex:none; }
@media(max-width:600px) {
  .cinema-head { gap:10px; padding:10px 11px; flex-wrap:wrap; }
  .cinema-head .provider-note { font-size:.76rem; max-width:100%; }
  .studio-trigger { gap:7px; }.sound-bars { width:27px; height:30px; }
  .dock-actions { gap:3px; }.dock-actions button span { display:none; }
  .cinema-dock { padding:7px 10px 9px; }
  .dialog-inner:has(.cinema-stream) { padding:13px; }
  .cinema-stream { margin-top:13px; }
}
.track-group { grid-column:1/-1; font-size:.82rem; color:var(--muted); padding:6px 2px 1px; }
.cinema-head { background:linear-gradient(110deg,var(--panel),var(--input-bg)); }
#studio-tray[hidden],#studio-filter[hidden] { display:none; }
dialog.watch-room { width:min(1240px,97vw); max-height:95dvh; border-radius:22px; border:1px solid var(--edge-strong); background:radial-gradient(ellipse at 0 0,var(--raised) 0,transparent 50%),radial-gradient(ellipse at 100% 0,var(--violet-wash) 0,transparent 43%),var(--bg); box-shadow:0 28px 100px #000a; }
dialog.watch-room::backdrop { background:#0c0710df; backdrop-filter:blur(10px); }
.watch-room .dialog-inner { padding:clamp(14px,1.8vw,27px); }
.watch-room .detail-head { align-items:center; gap:15px; padding-right:48px; }
.watch-room .detail-head img { width:54px; height:73px; border-radius:8px; }
.watch-room .detail-head h2 { font-size:clamp(1.4rem,2.6vw,2.2rem); margin:0; }
.watch-room .detail-head .jp { margin:0 0 3px; color:var(--accent); }
.watch-room .detail-head .meta { font-size:.88rem; }
.watch-room .detail-desc { display:none; }
.watch-room .detail-actions { margin:6px 0 0; }
.watch-room .detail-actions .secondary { padding:.35rem .65rem; font-size:.82rem; }
.watch-room .cinema-stream { margin-top:12px; background:var(--input-bg); border:1px solid var(--edge); border-radius:16px; overflow:hidden; }
.watch-room .cinema-head { background:linear-gradient(135deg,var(--panel),var(--raised)); border:0; border-radius:0; }
.watch-room .cinema-screen { border:0; border-radius:0; }
.watch-room #studio-tray { background:var(--panel); border:0; }
.watch-room .cinema-dock { background:linear-gradient(110deg,var(--raised),var(--input-bg)); }
.watch-room .dock-actions [aria-label="Русские субтитры"][aria-pressed=true] { color:var(--accent); box-shadow:inset 0 -2px var(--rose); }
.watch-room video::cue { background:#110d15db; color:white; }
.original-credit { margin:.8rem .2rem 0; font-size:.86rem; color:var(--muted); }
.original-credit summary { cursor:pointer; }.original-credit a { color:var(--accent); text-decoration:underline; }
@media(min-width:900px) {
 .watch-room .cinema-stream { display:grid; grid-template-columns:minmax(0,1fr) clamp(205px,21vw,280px); grid-template-rows:auto 1fr auto; align-items:start; }
 .watch-room .cinema-screen { grid-column:1; grid-row:1/4; align-self:start; }
 .watch-room .cinema-head { grid-column:2; grid-row:1; flex-wrap:wrap; gap:12px; padding:15px; }
 .watch-room .cinema-head .provider-note { text-align:left; max-width:100%; width:100%; margin:0; }
 .watch-room #studio-tray { grid-column:2; grid-row:2; min-width:0; padding:8px 12px 12px; }
 .watch-room #voice-select { max-height:clamp(180px,29vh,330px); }
 .watch-room .stream-msg:not(:empty),.watch-room .stream-retry:not([hidden]) { grid-column:2; }
}
@media(max-width:600px) {
 dialog.watch-room { width:98vw; border-radius:15px; }
 .watch-room .detail-head img { width:40px; height:56px; }
 .watch-room .detail-head { padding-right:30px; gap:10px; }
 .watch-room .cinema-stream { margin-inline:-5px; }
}
dialog.watch-room .dialog-inner:has(.stream) .detail-head img { display:block; object-fit:cover; box-shadow:0 1px 13px #0b070e70; }
dialog.watch-room .detail-head { border-left:2px solid var(--accent); padding-left:13px; }
@media(min-width:900px) {
 dialog.watch-room .cinema-screen video,dialog.watch-room .cinema-screen iframe:not(.partner-frame) { max-height:min(64dvh,calc(100dvh - 251px)); background:#09070b; }
 dialog.watch-room .cinema-screen:fullscreen video { max-height:none; }
}
.dock-settings label[hidden],.dock-resolution:empty { display:none; }
.dock-resolution { font-variant-numeric:tabular-nums; color:var(--muted); font-size:.88rem; }
@media(max-width:720px), (max-width:960px) and (max-height:520px) {
  dialog.watch-room { width:100%; max-width:100%; max-height:100dvh; margin:auto; border-inline:0; border-radius:14px; }
  .watch-room .dialog-inner { padding:12px max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  .watch-room .detail-head { padding-right:48px; }
  .watch-room .cinema-stream { display:flex; flex-direction:column; align-items:stretch; margin:12px 0 0; }
  .watch-room .cinema-screen { order:-1; width:100%; }
  .watch-room .cinema-head { flex-wrap:wrap; padding:10px 12px; gap:7px 12px; }
  .watch-room .cinema-head .provider-note { width:100%; max-width:none; margin:0; text-align:left; font-size:.875rem; }
  .watch-room .cinema-episode select,.watch-room .studio-trigger,.watch-room .dock-actions button,.watch-room .voice-pick { min-height:44px; }
  .watch-room #studio-query { min-height:44px; font-size:1rem; }
  .watch-room .dock-actions button { min-width:44px; }
  .watch-room .dock-actions button span { display:none; }
  .watch-room .dock-volume input { width:clamp(32px,10vw,65px); }
  .watch-room #studio-tray { padding:10px; }
  .watch-room #voice-select { max-height:35dvh; }
  .watch-room .close { top:8px; right:max(8px,env(safe-area-inset-right)); }
}
@media(max-height:520px) and (orientation:landscape) and (max-width:960px) {
  .watch-room .cinema-screen video,.watch-room .cinema-screen iframe:not(.partner-frame) { max-height:65dvh; }
  .watch-room .stream .cinema-screen iframe.partner-frame {height:65dvh;max-height:65dvh}
  .watch-room .cinema-screen:fullscreen video { max-height:none; }
}

.toolbar #route-name { font-size:clamp(1.65rem,3.4vw,3.2rem); letter-spacing:-.045em; line-height:1.05; color:var(--text); }
@media(min-width:721px){.toolbar:has(#route-name:not([hidden])) { padding-block:clamp(.8rem,2vw,1.7rem); }}
:where(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #f2bcdf; outline-offset:3px; }
@media (max-width:640px) { .phone-nav :is(button,a) { min-height:44px; } dialog { max-height:90dvh; overscroll-behavior:contain; } }
.week-tracks{display:grid;gap:.15rem;margin-top:.3rem;white-space:normal;color:var(--accent,var(--lavender))}
.catalog-facts{display:flex;flex-wrap:wrap;gap:.18rem .65rem;margin:.4rem 0;font-size:.875rem;line-height:1.45;color:var(--muted)}.title-editions{margin:1rem 0}.title-editions button{display:block;text-align:left;min-height:44px}.title-editions summary{cursor:pointer;min-height:44px;align-content:center}
@media(max-width:370px){.phone-nav{grid-template-columns:1fr .95fr 1.08fr 1.22fr .65fr}}
.catalog-facts span{display:inline-block}.card-resume{display:block;color:var(--pink);font-size:.875rem;font-weight:600;margin:.3rem 0}
