.bfw{--watch-line:#333b35;--watch-muted:#b0b7af;--watch-accent:#d9f570;color:#f4f6ee;width:min(1440px,100%);margin-inline:auto}
.bfw[hidden],.bfw [hidden]{display:none!important}
.bfw *{box-sizing:border-box}
.bfw button,.bfw select,.bfw a{font:inherit;color:inherit}
.bfw button,.bfw .bfw-actions a,.bfw select{background:#1b211c;border:1px solid #454e46;border-radius:5px;padding:.62rem .84rem;min-height:44px;text-decoration:none}
.bfw button{cursor:pointer}
.bfw button:hover,.bfw .bfw-actions a:hover{background:#30392d}
.bfw :is(button,a,summary,select):focus-visible{outline:3px solid var(--watch-accent);outline-offset:3px}
.bfw button:disabled{opacity:.4}
.bfw-nav,.bfw-actions,.bfw-transport,.bfw-frames,.bfw-cut{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.bfw-nav{justify-content:space-between;margin:0 0 1rem}
.bfw-nav a{display:inline-flex;align-items:center;min-height:44px;margin-inline-end:auto;padding-inline:.35rem;color:var(--watch-muted);text-decoration:none}
.bfw-nav a:hover{color:var(--watch-accent);text-decoration:underline}
.bfw-nav button{border:0;background:transparent;padding-inline:.15rem}
.bfw-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,24%);grid-template-areas:"stage queue" "info queue";column-gap:clamp(1rem,3vw,3rem);align-items:start}
.bfw-wide .bfw-layout{grid-template-areas:"stage stage" "info queue"}
.bfw-main{grid-area:info}
.bfw-queue{grid-area:queue}
.bfw-wide .bfw-queue{margin-top:1.3rem}
.bfw-main,.bfw-queue{min-width:0}
.bfw-stage{grid-area:stage;min-width:0;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#070907}
.bfw-live{width:100%;color:#f5f6f0;background:#0d110f;min-width:0}
.bfw-screen{width:100%;position:relative;isolation:isolate;display:grid;place-items:center;aspect-ratio:16/9;max-height:var(--film-height,72svh);background:#080b09}
.bfw-live-frame,.bfw-live-poster{position:absolute;inset:0;border:0;width:100%;height:100%}
.bfw-live-poster{object-fit:cover;filter:brightness(.66)}
.bfw-live-frame{pointer-events:none}
.bfw-live-frame.bfw-audio-permission{pointer-events:auto}
.bfw-live-label{position:absolute;top:12px;left:14px;padding:.28rem .55rem;background:#0a110cdd;color:#d9f570;border-radius:4px;text-transform:uppercase;font-size:.65rem;font-weight:750;letter-spacing:.12em}
.bfw-live-label::before{content:"";display:inline-block;width:.44rem;height:.44rem;background:currentColor;border-radius:100%;margin-right:.42rem;vertical-align:.03rem}
.bfw .bfw-premiere{position:relative;background:#edf7cc;color:#172006;border:0;font-weight:750;box-shadow:0 4px 25px #0008;padding:.7rem 1.15rem}
.bfw .bfw-premiere:hover{background:#d9f570}
.bfw .bfw-live-fallback{position:absolute;left:50%;top:calc(50% + 25px);transform:translateX(-50%);white-space:nowrap;font-size:.85rem;background:#172016}
.bfw-screen:has(.bfw-live-fallback:not([hidden])) .bfw-live-status{top:10%;bottom:auto}
.bfw-live-status:not(:empty){position:absolute;bottom:10%;padding:.4rem .7rem;border-radius:4px;background:#111b14e8;color:#f2f4e9;font-size:.85rem}
.bfw-live-bar{display:flex;align-items:center;gap:.7rem;padding:.15rem .75rem;font-size:.77rem;font-variant-numeric:tabular-nums;color:#d9decd}
.bfw .bfw-live-bar button{border:0;background:transparent;color:#eef3e2;min-width:44px;padding:0;font-size:1.13rem}
.bfw .bfw-live-bar [data-action=live-mute]{font-size:.8rem;white-space:nowrap}
.bfw [data-action=live-mute][data-blocked=true]{color:var(--watch-accent)}
.bfw-live-bar input{min-width:2rem;flex:1;height:32px;accent-color:var(--watch-accent);cursor:pointer}
.bfw-formats{display:inline-flex;gap:2px;padding:3px;border:1px solid #3e493f;border-radius:6px;background:#151b16;margin-top:.9rem}
.bfw .bfw-formats button{min-height:40px;padding:.45rem .8rem;border:0;background:transparent;color:#c4cabc;font-size:.83rem}
.bfw .bfw-formats [aria-pressed=true]{background:#36442f;color:#ebf6da;font-weight:700}
.bfw-stage:fullscreen,.bfw-stage.bfw-theater{background:black;display:grid;place-items:stretch;width:100%;height:100%;border-radius:0;margin:0}
.bfw-stage.bfw-theater{position:fixed;inset:0;z-index:10000;height:100dvh}
.bfw-theater-open{overflow:hidden}
.bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto}
.bfw-stage:is(:fullscreen,.bfw-theater) .bfw-screen{grid-area:1/1;max-height:none;aspect-ratio:auto;height:100%}
.bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live-bar{grid-area:2/1;padding-bottom:env(safe-area-inset-bottom);background:#0d110f}
/* Use a side gutter on wide phones so the whole film retains its native height. */
@media(aspect-ratio > 2/1) and (min-height:300px){
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live{grid-template-columns:minmax(0,1fr) 52px}
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-angle-strip{grid-column:1/-1}
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live-bar{
    grid-area:1/2;align-self:center;justify-self:end;z-index:2;
    flex-direction:column;gap:0;width:52px;height:100%;max-height:410px;padding:4px;
  }
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live-bar input{
    writing-mode:vertical-lr;direction:rtl;min-height:24px;width:40px;
  }
}
/* A near-16:9 display has no gutter. Reveal the controls over the picture on interaction. */
@media(min-aspect-ratio:17/10) and (max-aspect-ratio:2/1){
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live-bar{
    grid-area:1/1;align-self:end;z-index:2;background:linear-gradient(transparent,#090c0bef);
  }
  .bfw-stage:is(:fullscreen,.bfw-theater)[data-controls-idle] .bfw-live-bar:not(:has(:focus-visible)):not(:active){
    opacity:0;pointer-events:none;
  }
}
body:has(.bfw[data-format=live]:not([hidden])) .bfc-mark:not([aria-pressed=true]){display:none}
.bfw video:fullscreen{width:100vw;height:100dvh;max-width:none;max-height:none;object-fit:contain;background:#000}
.bfw video{display:block;width:100%;height:auto;max-height:var(--film-height,72svh);max-width:calc(var(--film-height,72svh) * var(--film-ratio,8));object-fit:contain;color-scheme:dark}
.bfw-heading{margin:1.3rem 0 .95rem}
.bfw-heading h1{font:inherit;font-size:clamp(1.8rem,4vw,3.3rem);font-weight:750;letter-spacing:-.045em;line-height:1.04;margin:.36rem 0 .6rem}
.bfw-meta,.bfw-synopsis,.bfw-credit{margin:0;color:var(--watch-muted)}
.bfw-meta,.bfw-episode small,.bfw-chapter small,.bfw-frames{font-variant-numeric:tabular-nums}
.bfw-meta{font-size:.85rem;line-height:1.4}
.bfw-synopsis{line-height:1.5;max-width:72ch}
.bfw-actions{font-size:.9rem}
.bfw-hero-takes,.bfw-hero-takes [data-part=hero-buttons]{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.bfw-hero-takes{margin:.8rem 0 1rem}
.bfw-hero-takes button{min-height:44px;font-size:.9rem}
.bfw-hero-takes button[aria-pressed=true]{border-color:var(--watch-accent);color:var(--watch-accent)}
.bfw-angle-strip{display:flex;align-items:center;gap:.8rem;padding:0 .8rem .55rem;background:#131714}
.bfw-angle-strip label{display:flex;align-items:center;gap:.65rem;flex:1;font-size:.83rem;font-weight:650}
.bfw-angle-strip input{flex:1;min-width:0;height:44px;accent-color:var(--watch-accent);cursor:ew-resize}
.bfw-angle-strip button{font-size:.83rem;min-height:44px}
.bfw-actions button:first-child:not([aria-pressed="true"]){color:#172006;background:var(--watch-accent);border-color:var(--watch-accent);font-weight:700}
.bfw-actions a{display:inline-flex;align-items:center}
.bfw-transport{background:#202b1c;border-inline-start:3px solid var(--watch-accent);padding:.6rem .8rem;justify-content:space-between}
.bfw-transport button{font-weight:650;color:var(--watch-accent)}
.bfw-queue h2,.bfw-chapters h2{font-size:1.06rem;line-height:1.25;margin:0 0 .65rem}
.bfw-queue ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--watch-line)}
.bfw-queue li{border-bottom:1px solid var(--watch-line)}
.bfw-episode{display:grid;grid-template-columns:1.15rem 4.2rem minmax(0,1fr) auto;align-items:center;gap:.55rem;min-height:55px;padding:.45rem .28rem;text-decoration:none;font-size:.9rem!important}
.bfw-episode[aria-current=page]{background:#232c20;box-shadow:inset 2px 0 var(--watch-accent)}
.bfw-episode:hover{background:#252d26}
.bfw-episode img,.bfw-chapter img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:3px}
.bfw-number,.bfw-episode small,.bfw-chapter small{font-size:.75rem;color:var(--watch-muted)}
.bfw-number{text-align:center}
.bfw-episode-title{line-height:1.24}
.bfw-chapters{margin:1.4rem 0}
.bfw [data-part=chapters]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.45rem;padding:3px}
.bfw .bfw-chapter{display:flex;align-items:center;text-align:left;gap:.6rem;min-width:0;background:transparent;border:1px solid var(--watch-line);padding:.35rem}.bfw-chapter span{min-width:0;overflow-wrap:anywhere}
.bfw-chapter[aria-current=true]{border-color:var(--watch-accent)}
.bfw-chapter img{width:4.2rem;flex:none}
.bfw-chapter :is(small,b){display:block}.bfw-chapter b{font-size:.86rem}
.bfw-details{border-block:1px solid var(--watch-line);margin:1.1rem 0;padding:0 0 .15rem}
.bfw-details summary{cursor:pointer;padding:.8rem 0;width:fit-content}
.bfw-cut,.bfw-credit,.bfw-frames{margin:.35rem 0 .9rem;font-size:.85rem;line-height:1.5}
.bfw-cut select{max-width:100%}
.bfw-credit a,.bfw-frames a{text-decoration:underline;text-underline-offset:3px}
.bfw-frames{justify-content:space-between}.bfw-frames button{font-size:.8rem}
.bfw-wide{--film-height:calc(100svh - 7rem)}
@media(max-width:880px){.bfw-layout,.bfw-wide .bfw-layout{grid-template-columns:1fr;grid-template-areas:"stage" "info" "queue"}.bfw-queue{margin-top:1.3rem}.bfw-queue ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:0 1rem}}
@media(max-width:540px){.bfw-nav{margin-bottom:.4rem;gap:.2rem;font-size:clamp(.75rem,3.4vw,.93rem)}.bfw-nav a{margin-inline-end:0}.bfw-heading{margin-top:.85rem}.bfw-actions{gap:.4rem;font-size:.82rem}.bfw-actions button,.bfw .bfw-actions a{padding:.55rem .65rem}.bfw [data-part=chapters]{grid-template-columns:1fr}.bfw-chapter img{width:4.8rem}.bfw-episode{grid-template-columns:1.35rem 4.8rem minmax(0,1fr) auto}.bfw-queue ol{grid-template-columns:1fr}}

.bfw{padding:clamp(12px,2.5vw,36px)}
@media(max-width:540px){
  .bfw{padding:8px 14px 20px}
  .bfw-stage{margin-inline:-14px;border-radius:0}
}

@media(orientation:landscape) and (max-height:520px){
  .bfw{--film-height:calc(100svh - 50px - env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 18px max(12px,env(safe-area-inset-left))}
  .bfw-nav{margin-bottom:6px}
  .bfw-stage{margin-inline:0}
  .bfw-stage:not(:fullscreen,.bfw-theater) .bfw-live:has(.bfw-angle-strip:not([hidden])){
    display:grid;
    max-height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    grid-template-rows:minmax(0,1fr) auto auto;
  }
  .bfw-stage:not(:fullscreen,.bfw-theater) .bfw-live:has(.bfw-angle-strip:not([hidden])) .bfw-screen{height:100%;min-height:0}
}

@media(max-width:450px){
  .bfw-stage:is(:fullscreen,.bfw-theater) .bfw-live-bar{min-width:0;gap:.3rem;padding-inline:.35rem}
}
