/* Postbook Core v1.1.12 — News Feed infinite-continuation maintenance release; behavior/design frozen from v1.1.6.9.31.
   Desktop Full keeps the same owner, controls, action rail, and contextual information
   design/relative placement used by the normal desktop Video surface, anchored to the
   same Video stage edges. Mobile and playback/fullscreen behavior remain frozen. */
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls{position:absolute;z-index:57;top:72px;right:16px;display:grid;gap:7px;width:max-content;pointer-events:auto}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-sound-toggle,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-fullscreen-toggle{position:static;display:flex;align-items:center;justify-content:center;gap:6px;min-width:82px;min-height:36px;padding:7px 10px;border:1px solid rgba(255,255,255,.36);border-radius:999px;background:rgba(0,0,0,.52);color:#fff;font:800 10px/1 Arial,Helvetica,sans-serif;box-shadow:0 5px 18px rgba(0,0,0,.22);cursor:pointer;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);-webkit-tap-highlight-color:transparent;touch-action:manipulation;pointer-events:auto}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-sound-toggle>span,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-fullscreen-toggle>span{font-size:23px;line-height:1}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-sound-toggle[aria-pressed=true],.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-fullscreen-toggle[aria-pressed=true]{border-color:rgba(255,255,255,.62);background:rgba(0,0,0,.64)}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls button:hover{border-color:rgba(255,255,255,.72);background:rgba(15,19,28,.78)}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls button:focus{outline:0}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls button:focus-visible{outline:3px solid rgba(255,255,255,.94);outline-offset:2px;background:rgba(15,19,28,.78)}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls button:active{transform:scale(.97)}
.postbook-stable-video-sound-prompt{position:absolute;z-index:58;top:50%;left:50%;display:grid;width:58px;min-width:58px;height:58px;min-height:58px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(0,0,0,.64);color:#fff;transform:translate(-50%,-50%);cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.postbook-stable-video-sound-prompt[hidden]{display:none!important}.postbook-stable-video-sound-prompt>span{font-size:28px;line-height:1}
@media(min-width:821px){
  .postbook-stable-video-sound-prompt[data-desktop-playback="recovery"]{opacity:1;transition:opacity .16s ease,transform .16s ease,background .16s ease;pointer-events:auto}
  .postbook-stable-video-sound-prompt[data-desktop-playback="direct"]{transition:opacity .16s ease,transform .16s ease,background .16s ease;pointer-events:auto}
  .postbook-stable-video-sound-prompt[data-desktop-playback="direct"][data-playback-state="play"]{opacity:1}
  .postbook-stable-video-sound-prompt[data-desktop-playback="direct"][data-playback-state="pause"]{opacity:0;transform:translate(-50%,-50%) scale(.94)}
  .postbook-stable-video-card:hover .postbook-stable-video-sound-prompt[data-desktop-playback="direct"][data-playback-state="pause"],.postbook-stable-video-sound-prompt[data-desktop-playback="direct"][data-playback-state="pause"]:focus-visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
  .postbook-stable-video-sound-prompt[data-desktop-playback="direct"][data-playback-state="pause"]>span{font-size:24px;letter-spacing:-4px}
}
@media(max-width:820px){.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls{top:64px;right:10px;gap:6px}.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-sound-toggle,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-fullscreen-toggle{min-width:72px;min-height:34px;padding:6px 8px;font-size:9px}.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-sound-toggle>span,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-video-top-controls .postbook-stable-video-fullscreen-toggle>span{font-size:21px}.postbook-stable-video-sound-prompt{width:52px;min-width:52px;height:52px;min-height:52px}.postbook-stable-video-sound-prompt>span{font-size:25px}}

/* Desktop Full — direct LiDia Edu Course viewer model translated to Postbook selectors.
   Same viewer, same cards, one runtime, application-owned Full state, 100dvh slides,
   mandatory snap, exact-card navigation, persistent Sound and direct Full/Minimize ownership. */
@media(min-width:821px){
  html.postbook-video-fullscreen-open,body.postbook-video-fullscreen-open{overflow:hidden!important;background:#000!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen{position:fixed!important;z-index:2147483001!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;scroll-behavior:smooth!important;scroll-snap-type:y mandatory!important;scrollbar-width:none!important;isolation:isolate!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen::-webkit-scrollbar{display:none!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-stable-video-feed{width:100%!important;height:auto!important;margin:0!important;padding:0!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-stable-video-card{position:relative!important;display:block!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;color:#1c2a3d!important;overflow:hidden!important;scroll-margin:0!important;scroll-snap-align:start!important;scroll-snap-stop:always!important;box-shadow:none!important;opacity:1!important;transform:none!important;isolation:isolate!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-video-stage{position:relative!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;background:#000!important;overflow:hidden!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-video-media-layer{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;background:#000!important;overflow:hidden!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-video-media-layer .postbook-video.ratio-9-16{width:auto!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;aspect-ratio:9/16!important;background:#000!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-video-media-layer .postbook-video.ratio-16-9,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-video-media-layer .postbook-external-video-card{width:min(100vw,177.7778dvh)!important;height:auto!important;max-width:100vw!important;max-height:100dvh!important;min-height:0!important;aspect-ratio:16/9!important;background:#000!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-stable-video-player iframe,.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-stable-video-player video{background:#000!important;box-shadow:none!important;object-fit:contain!important}

  /* Desktop overlay parity is intentionally inheritance-based.
     Full does not restyle or reposition identity, Sound/Minimize, reactions, context, or
     the sound prompt: the exact normal desktop Video rules continue to apply inside the
     100dvh Full viewer. This makes Full an expanded stage, not a second interface. */
}

@media(min-width:821px) and (prefers-reduced-motion:reduce){
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen{scroll-behavior:auto!important;scroll-snap-type:y proximity!important}
  .postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-viewer.is-postbook-fullscreen .postbook-stable-video-card{scroll-snap-stop:normal!important}
}

/* v1.1.6.9.27 — first-video startup continuity. Keep the YouTube poster visible
 * until the provider confirms PLAYING, then fade it away over the live frame. */
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-startup-cover{opacity:1!important;visibility:visible;transition:opacity .18s ease;background:#05070c!important;pointer-events:none!important}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-startup-cover.is-postbook-startup-cover-leaving{opacity:0!important}
.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-startup-cover>img{width:100%;height:100%;object-fit:cover}
@media(prefers-reduced-motion:reduce){.postbook-video-feed-shell[data-video-engine="stable-v1"] .postbook-stable-video-startup-cover{transition:none}}
