/* AO3 homepage video viewer (#lb): near-black, rounded 15/10px screen, white AO3 mark, calm glow (owner-reviewed 2026-10-23)
   Consolidated by Claude from the owner-approved handoff AO3-Studio-Contact-FINAL-v106 (its integration/*-approved-reference.css cascade,
   in the same order). Only rules that can never apply were removed (selectors needing a class/id/element absent from this
   page and its scripts; declarations overridden later by the same selector in the same context; unused or redefined
   keyframes). "from x.css" marks the original source file of each run of rules. */
/* from viewer-minimal.css */
.lb{background:#020304!important;isolation:isolate}
.lb .box{position:relative;isolation:isolate;display:flex;flex-direction:column;width:min(1280px,calc(100vw - 112px),calc((100svh - 170px)*16/9));padding:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.lb .lb-stage{position:relative;width:100%;aspect-ratio:16/9;background:#000;z-index:1;border:0;overflow:hidden}
.lb .lb-stage video,.lb .lb-stage iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.lb .ao3-screen-chrome{position:relative;display:flex;align-items:center;justify-content:center;height:54px;z-index:2;pointer-events:none}
.lb .ao3-screen-chrome .logo{display:block;width:62px;height:22px;color:#fff;filter:none}
.lb .x{position:absolute;top:-43px;right:0;z-index:5;font-size:10px;letter-spacing:.24em;padding:10px 0 10px 20px;color:#d8d8d8;background:none}
.lb .lb-title{display:none}
.lb .minimal-glow{position:absolute;top:0;left:0;width:100%;height:calc(100% - 54px);z-index:-1;pointer-events:none}
.lb .box:fullscreen{width:100%;height:100%;padding:44px 24px 0;box-sizing:border-box;justify-content:center;align-items:center;background:#020304}
.lb .box:fullscreen .lb-stage{width:min(100%,calc((100svh - 120px)*16/9));flex-shrink:0}
.lb .box:fullscreen .x{top:8px;right:24px}
@media(max-width:768px),(pointer:coarse){
  .lb .box{width:min(calc(100vw - 24px),calc((100dvh - 130px)*16/9))}
  .lb .minimal-glow{display:none}
  .lb .ao3-screen-chrome{height:42px}
  .lb .ao3-screen-chrome .logo{width:49px;height:18px}
  .lb .x{top:-42px;min-height:40px}
  .lb .lb-fs{top:auto;bottom:-42px;left:0}
}
@media(prefers-reduced-motion:reduce){
  .lb .minimal-glow{display:none}
}
.lb .lb-stage{border-radius:15px;box-shadow:0 0 30px 8px rgba(78,131,176,.22),0 0 80px 20px rgba(43,79,112,.16)}
.lb .lb-stage video,.lb .lb-stage iframe,.lb .lb-poster{border-radius:inherit}
.lb .minimal-glow{border-radius:18px;transform:scale(1.06);filter:blur(32px) saturate(.95);opacity:.48}
@media(max-width:768px),(pointer:coarse){
  .lb .lb-stage{border-radius:10px;box-shadow:0 0 26px 6px rgba(78,131,176,.28),0 0 55px 12px rgba(43,79,112,.15)}
}
.lb .ao3-screen-chrome .logo-progress{color:#fff!important}
.lb .has-live-glow .lb-stage{box-shadow:0 0 2px rgba(255,255,255,.08)}
.lb .has-live-glow .minimal-glow{transform:scale(1.06);filter:blur(46px) saturate(.7) brightness(1.1);opacity:.34}
/* integration fixes (Claude, 2026-10-23), fullscreen only (not measured in the review):
   - the site's own rule pins the Fullscreen action to the top; the phone placement above (bottom:-42px) must not also
     apply there, or the button stretches over the whole frame;
   - the site's fullscreen picture fills the screen (styles.css: the stage flexes to the full height, the video is
     letterboxed inside it); keep it full width too, rather than the 16:9 width cap above */
.lb .box:fullscreen .lb-fs{bottom:auto}
.lb .box:fullscreen .lb-stage{width:100%}
/* integration fix (Claude, 2026-10-23): a phone held landscape (short screen) has no room for the Fullscreen action
   below the picture (it was cut off): there it sits above the picture, top left, opposite Close */
@media (pointer:coarse) and (max-height:500px),(max-width:768px) and (max-height:500px){
  .lb .lb-fs{top:-42px;bottom:auto;min-height:40px}
}

/* Neutral glass behind playback, with no blue or sampled colour halo. */
.lb{background:rgba(6,6,6,.74)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
.lb .lb-stage,.lb .has-live-glow .lb-stage{box-shadow:none!important}
.lb .minimal-glow{display:none!important}
