/* Botflix TV live captions (preview) */
.cc-wrap{position:relative}
.cc-wrap>.tv-player{position:relative}
/* TV-style: ~5% of the picture height from the bottom (2.8% of a 16:9 width); lifts above YouTube's control bar while the pointer is on the player */
.cc-layer{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;justify-content:center;padding:0 4% 2.8%;z-index:3;transition:padding-bottom .2s ease}
.cc-wrap:hover .cc-layer{padding-bottom:calc(2.8% + 46px)}
.cc-layer[hidden]{display:none}
.cc-box{max-width:min(92%,1100px);opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s}
.cc-box.on{opacity:1;transform:none}
.cc-line{margin:0;padding:.28em .7em .32em;border-radius:.35em;background:rgba(0,0,0,.82);color:#fff;font-weight:600;line-height:1.35;text-align:center;
  font-size:clamp(15px,calc(var(--cc-w,800px) * .031),40px);text-shadow:0 1px 2px #000;box-decoration-break:clone;-webkit-box-decoration-break:clone;white-space:pre-line}
.cc-box.music .cc-line{background:rgba(0,0,0,.55);font-size:clamp(16px,calc(var(--cc-w,800px) * .03),34px);padding:.1em .6em}
.cc-box.pending .cc-line{opacity:.82}
.cc-line[dir=rtl]{direction:rtl}
.cc-wrap:fullscreen{background:#000;display:flex;align-items:center;justify-content:center}
.cc-wrap:fullscreen>.tv-player{width:100%;max-height:100vh;aspect-ratio:16/9;margin:auto}
.cc-wrap:fullscreen .cc-layer{padding-bottom:max(2.8%, 5vh)}
.cc-wrap:fullscreen:hover .cc-layer{padding-bottom:calc(max(2.8%, 5vh) + 52px)}
.cc-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 10px;margin-top:10px}
.cc-row>.ry-strip{margin-top:0;flex:1 1 280px;min-width:0}
.cc-bar{position:relative;display:flex;align-items:stretch;gap:8px;flex:0 0 auto}
.cc-bar[hidden]{display:none}
.cc-btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:6px 12px 6px 7px;border:1.5px solid var(--lime,#bbf777);border-radius:999px;background:#111a05;color:#fff;
  font:inherit;cursor:pointer;transition:background .15s,transform .1s;white-space:nowrap;text-align:left}
.cc-btn:hover{background:#1b2a08}.cc-btn:active{transform:scale(.98)}
.cc-btn:focus-visible,.cc-opt:focus-visible,.cc-fs:focus-visible,.cc-offbtn:focus-visible,.cc-x:focus-visible{outline:3px solid #fff;outline-offset:2px}
.cc-btn.on{background:var(--lime,#bbf777);color:#0b0f02}
.cc-globe{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--lime,#bbf777);color:#0b0f02;flex:none}
.cc-btn.on .cc-globe{background:#0b0f02;color:var(--lime,#bbf777)}
.cc-globe svg{width:20px;height:20px}
.cc-glyph{font-weight:800;font-size:15px;letter-spacing:-.02em;line-height:1}
.cc-btn-txt{font-size:15px;font-weight:700}
.cc-state{flex:none;font-size:12.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.12);max-width:9em;overflow:hidden;text-overflow:ellipsis}
.cc-btn.on .cc-state{background:#0b0f02;color:var(--lime,#bbf777)}
.cc-fs{display:grid;visibility:hidden;place-items:center;width:46px;min-height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;flex:none}
.cc-fs{visibility:visible}
.cc-fs svg{width:20px;height:20px}
.cc-pick{position:absolute;left:0;bottom:calc(100% + 8px);z-index:40;width:min(640px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto;padding:14px;border-radius:16px;
  background:#0d1104;border:1px solid rgba(187,247,119,.45);box-shadow:0 18px 60px rgba(0,0,0,.6);color:#fff}
.cc-pick[hidden]{display:none}
.cc-pick-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:17px}
.cc-x{width:40px;height:40px;border-radius:10px;border:0;background:rgba(255,255,255,.08);color:#fff;font-size:18px;cursor:pointer}
.cc-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.cc-opt{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:48px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;text-align:start}
.cc-opt[dir=rtl]{align-items:flex-end}
.cc-opt:hover{background:rgba(187,247,119,.14)}
.cc-opt.sug{border-color:var(--lime,#bbf777)}
.cc-opt.cur{background:var(--lime,#bbf777);color:#0b0f02}
.cc-opt small{font-size:11px;font-weight:600;opacity:.75;margin-top:2px}
.cc-offbtn{margin-top:10px;width:100%;min-height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;font:inherit;cursor:pointer}
.cc-pick-note{margin:10px 0 0;font-size:12px;opacity:.7}
@media (max-width:640px){
  .cc-pick{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-height:75vh}
  .cc-layer{padding-bottom:3%}
  .cc-line{font-size:clamp(14px,calc(var(--cc-w,360px) * .042),22px)}
}
@media (prefers-reduced-motion:reduce){.cc-box{transition:none}}
.cc-search{position:sticky;top:-14px;z-index:1;display:flex;align-items:center;gap:8px;margin:0 -14px 10px;padding:8px 14px;background:#0d1104}
.cc-search svg{width:20px;height:20px;flex:none;opacity:.7}
.cc-search input{flex:1;min-width:0;min-height:46px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:#000;color:#fff;font:inherit;font-size:17px}
.cc-search input:focus{outline:2px solid var(--lime,#bbf777);outline-offset:1px}
.cc-sug{margin-bottom:8px}.cc-sug .cc-opt{width:100%}.cc-sug.dim{opacity:.55}
.cc-opt.act{outline:2px solid #fff;outline-offset:1px}
.cc-opt[hidden]{display:none}
.cc-none{margin:8px 2px;font-size:14px;opacity:.8}
/* captions on/off switch: one tap, clear state (Off = grey knob left, On = lime track, knob right) */
.cc-sw{display:inline-flex;align-items:center;gap:7px;min-height:46px;padding:6px 12px;border-radius:999px;border:1.5px solid rgba(255,255,255,.32);background:rgba(255,255,255,.06);
  color:#fff;font:inherit;cursor:pointer;flex:none;white-space:nowrap;transition:background .15s,border-color .15s}
.cc-sw:hover{background:rgba(255,255,255,.12)}
.cc-sw:focus-visible{outline:3px solid #fff;outline-offset:2px}
.cc-sw-lbl{font-size:13px;font-weight:800;letter-spacing:.02em}
.cc-sw-track{position:relative;width:38px;height:22px;border-radius:999px;background:#555;flex:none;transition:background .15s}
.cc-sw-knob{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.5);transition:transform .15s}
.cc-sw-txt{min-width:2.1em;font-size:13px;font-weight:800;text-transform:uppercase}
.cc-sw.on{border-color:var(--lime,#bbf777);background:#111a05}
.cc-sw.on .cc-sw-track{background:var(--lime,#bbf777)}
.cc-sw.on .cc-sw-knob{transform:translateX(16px);background:#0b0f02}
.cc-sw.on .cc-sw-txt{color:var(--lime,#bbf777)}
@media (prefers-reduced-motion:reduce){.cc-sw-knob,.cc-sw-track{transition:none}}
/* phones: never wider than the screen; the switch drops its "CC" word (track + ON/OFF stay, aria-label says Captions) */
@media (max-width:520px){.cc-bar{flex-wrap:wrap;max-width:100%;min-width:0}.cc-sw-lbl{display:none}.cc-sw{padding:6px 10px;gap:6px}.cc-btn{gap:6px;padding-right:9px}.cc-state{max-width:6.5em}}
@media (max-width:400px){.cc-btn-txt{font-size:14px}.cc-sw{padding:6px 8px}}
@media (min-width:521px) and (max-width:1100px){.cc-row>.ry-strip{flex-basis:200px}.cc-sw-lbl{display:none}.cc-sw{padding:6px 10px}}
/* On/Off never changes size or position (Oct 15): fixed-width language pill (ellipsis), the full-screen slot is always
   reserved (only becomes visible when on), only colours and the knob move, 150 ms. */
.cc-btn{transition:background-color .15s,color .15s,border-color .15s,transform .1s}
.cc-globe,.cc-state{transition:background-color .15s,color .15s}
.cc-state{box-sizing:border-box;width:5.6em;max-width:none;padding:3px 6px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-sw-track,.cc-sw-knob{transition-duration:.15s}
@media (max-width:520px){.cc-state{width:4.7em}}
.cc-row{align-items:center}.cc-bar{align-items:center}.cc-btn,.cc-sw,.cc-fs{box-sizing:border-box;height:46px}
@media (max-width:520px){.cc-state{width:5.9em;font-size:11.5px;padding:3px 4px}.cc-btn{gap:5px;padding-left:6px;padding-right:7px}.cc-sw{padding:6px 8px}}
/* Lighter caption backing (Oct 15): faint translucent box with tight padding; a soft dark outline + shadow keeps text
   readable over bright/busy scenes. */
.cc-line{background:rgba(0,0,0,.3);padding:.08em .4em .12em;border-radius:.25em;
  text-shadow:0 0 1px #000,0 0 2px #000,0 0 3px rgba(0,0,0,.85),0 1px 4px rgba(0,0,0,.8),0 0 8px rgba(0,0,0,.45)}
.cc-box.music .cc-line{background:rgba(0,0,0,.22);padding:.06em .4em}

/* Full screen always visible (Oct 15) + full-window fallback where element full screen isn't available (iPhone Safari) */
.cc-pfs-x{display:none}
.cc-wrap.cc-pfs{position:fixed;inset:0;z-index:2147483000;background:#000;display:flex;align-items:center;justify-content:center;margin:0}
.cc-wrap.cc-pfs>.tv-player{width:100%;max-height:100%;aspect-ratio:16/9;margin:auto}
.cc-wrap.cc-pfs .cc-layer{padding-bottom:max(2.8%, 5vh)}
.cc-wrap.cc-pfs .cc-pfs-x{display:grid;place-items:center;position:absolute;top:max(10px, env(safe-area-inset-top));right:max(10px, env(safe-area-inset-right));z-index:5;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.6);color:#fff;font-size:20px;cursor:pointer}
html.cc-pfs-lock,html.cc-pfs-lock body{overflow:hidden}
@media (max-width:520px){.cc-fs{width:42px}.cc-bar{gap:6px}}
/* full-window fallback: the site header, cookie bar etc. live in other stacking contexts, so hide everything that is not
   the player wrapper or one of its ancestors while it's open */
html.cc-pfs-lock body *:not(.cc-pfs):not(:has(.cc-pfs)):not(.cc-pfs *){visibility:hidden!important}
/* narrow phones: tighten the CC row so Translate / CC + switch + full screen fit one line at 390 px (wraps below that) */
@media (max-width:440px){.cc-bar{gap:5px}.cc-btn{gap:4px;padding-left:5px;padding-right:6px}.cc-btn-txt{font-size:13.5px}.cc-glyph{font-size:13.5px}.cc-state{width:5.2em;font-size:11px}.cc-sw{padding:6px 5px;gap:4px}.cc-fs{width:38px}.cc-globe{width:25px;height:25px}.cc-globe svg{width:17px;height:17px}}
.cc-beta{display:inline-block;margin-left:6px;padding:0 5px;border-radius:6px;border:1px solid currentColor;font-size:10px;font-weight:700;line-height:14px;letter-spacing:.02em;opacity:.9;vertical-align:1px}
.cc-beta.solo{margin-left:0}
