/* videos.css — /videos reels. Loaded after base.css on /videos only.
   Split from docs/redesign/source/mockup-v2/styles.css (R1-01); values unchanged,
   "Lnnn" markers = source line; the mockup comments live there. */

/* L451 13. VIDEOS PAGE */
.reels{position:relative;height:100vh;background:#0c0606;color:var(--text);overflow:hidden;}
.reels-glow{display:none;}
.reels-scroll{position:absolute;inset:0;z-index:1;overflow-y:auto;scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;}
.reels-scroll::-webkit-scrollbar{display:none;}
.reel{position:relative;height:100vh;scroll-snap-align:center;scroll-snap-stop:always;
  display:flex;align-items:center;justify-content:center;}
.reel-video{position:relative;height:100vh;aspect-ratio:9/16;max-width:100vw;overflow:hidden;}
.reel-video .sheen{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 34%,rgba(255,255,255,0.06),transparent 60%);}
.reel-video .fade{position:absolute;left:0;right:0;bottom:0;height:38%;background:linear-gradient(180deg,transparent,rgba(0,0,0,0.45));}
.reel-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:78px;height:78px;border-radius:50%;
  border:3px solid rgba(255,255,255,0.92);background:rgba(255,255,255,0.14);display:flex;align-items:center;justify-content:center;}
.reel-rail{position:absolute;right:24px;bottom:104px;z-index:5;width:48px;display:flex;flex-direction:column;align-items:center;gap:26px;}
.reel-rail .stat{display:flex;flex-direction:column;align-items:center;gap:5px;}
.reel-rail .stat span{font-size:13px;font-weight:700;color:#fff;}
.reel-rail button{background:none;border:none;cursor:pointer;padding:0;display:flex;flex-direction:column;align-items:center;gap:5px;color:#fff;}
.reel-menu{position:relative;display:flex;}
.reel-menu .pop{position:absolute;right:calc(100% + 16px);top:50%;transform:translateY(-50%);z-index:9;
  background:#1c1010;border:1px solid rgba(255,255,255,0.09);border-radius:16px;padding:8px;display:none;
  flex-direction:column;gap:2px;min-width:150px;box-shadow:none;}
.reel-menu.open .pop{display:flex;}
.reel-menu .pop button{flex-direction:row;align-items:center;gap:13px;padding:11px 14px;border-radius:11px;
  color:#fff;font-family:var(--font-body);font-size:15px;font-weight:600;white-space:nowrap;transition:background .14s;}
.reel-menu .pop button:hover{background:rgba(255,255,255,0.07);}
.reel-info{position:absolute;left:28px;bottom:40px;z-index:5;width:max(280px,min(440px,calc((100vw - 56.25vh)/2 - 40px)));}
.reel-info .who{display:flex;align-items:center;gap:13px;}
.reel-info .avatar{width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,0.9);flex:none;}
.reel-info .name{display:flex;align-items:center;gap:7px;}
.reel-info .name b{font-family:var(--font-head);font-weight:800;font-size:19px;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.reel-info .handle{font-size:14px;font-weight:600;color:#d8c8c2;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.reel-info .bio{font-size:14px;line-height:1.45;color:#f3e6e1;margin-top:12px;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.reel-info .btn{height:46px;width:210px;margin-top:16px;border-radius:12px;font-family:var(--font-head);}
.reel-time{position:absolute;right:26px;bottom:14px;z-index:5;font-size:13px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;}
.reel-progress{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:5;background:rgba(255,255,255,0.18);}
.reel-progress .bar{height:100%;background:var(--accent);}
.reels-side{position:fixed;top:22px;right:24px;z-index:30;display:flex;flex-direction:column;align-items:center;gap:14px;}
.reels-side a:hover,.reels-side button:hover{background:rgba(58,35,35,0.9);border-color:rgba(255,255,255,0.2);}

/* L2238 SPICY POLISH — satin / velvet finish */
.reel{border:1px solid rgba(255,255,255,0.1)!important;}

/* R1-10, not in the mockup. The mockup page had no layout chrome, no footer and no data; here:
   - the layout header is hidden on this page only (the feed snaps to the window height, anything
     above it would shift the frame); the bottom nav is not rendered here at all (bottom-nav.blade.php),
     so the space .page, main and the phone footer keep for it is dropped;
   - height 100dvh with a 100vh fallback: on iOS Safari 100vh is taller than the visible area;
   - the footer comes after the feed (decision 2026-09-17), so the side buttons and the crumbs are
     pinned to the feed (absolute), not to the window: fixed, they would float over the footer;
   - crumbs (ADR-025, $bcOverlay) are selected by their landmark, not by the component's class
     names, which the crumbs component owns; the strip lets the swipe through, only links take it;
   - a real <video>, the avatar photo with a lettered fallback, a play button for a paused clip,
     load/empty/error states and the "Link copied" note. */
body[data-page="videos"] .site-header{display:none!important;}
body[data-page="videos"] .page,body[data-page="videos"] .reels{padding-bottom:0;}
@media(max-width:700px){body[data-page="videos"] .site-footer.sf{padding-bottom:24px;}}
.reels,.reel,.reel-video{height:100vh;height:100dvh;}
/* a drag that starts on a side button must not scroll the page away from the feed */
.reels-side{position:absolute;touch-action:none;}
.reels-side .reels-up{margin-top:8px;}
.reels-side button:disabled{opacity:.35;cursor:default;}
.reels nav[aria-label="Breadcrumb"]{position:absolute;top:22px;left:24px;right:96px;height:48px;margin:0;padding:0;border:0;z-index:30;
  display:flex;align-items:center;pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.9);}
.reels nav[aria-label="Breadcrumb"] a,.reels nav[aria-label="Breadcrumb"] [aria-current]{pointer-events:auto;}
/* the Share pop opens to the left, over .reel-info (same z-index, later in the DOM) */
.reel-rail{z-index:6;}
.reel-video{background:#000;}
.reel-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;cursor:pointer;}
.reel-video .fade{pointer-events:none;}
.reel-play{z-index:2;padding:0;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s;}
.reel.is-paused .reel-play,.reel-play:focus-visible{opacity:1;pointer-events:auto;}
.reel-play .ico-pause,.reel.is-playing .reel-play .ico-play{display:none;}
.reel.is-playing .reel-play .ico-pause{display:block;}
.reel-info .btn[hidden],.reels-state[hidden],.reels-state .btn[hidden]{display:none;}
.reel-rail button[data-mute] .ico-sound,.reels.is-sound .reel-rail button[data-mute] .ico-muted{display:none;}
.reels.is-sound .reel-rail button[data-mute] .ico-sound{display:block;}
.reel-info .avatar{display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:linear-gradient(135deg,#ff3625,#8f1711);font-family:var(--font-head);font-weight:800;font-size:20px;color:#fff;}
.reel-info .avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.reel-info .who-text{min-width:0;}
.reel-info .btn svg{flex:none;}
.reels-state{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;padding:24px;text-align:center;color:var(--text-2);font-size:16px;}
.reels-state p{margin:0;}
.reels-spin{width:44px;height:44px;border-radius:50%;border:3px solid rgba(232,51,35,0.3);border-top-color:var(--accent);
  animation:reelsSpin .8s linear infinite;}
.reels-state.is-done .reels-spin{display:none;}
@keyframes reelsSpin{to{transform:rotate(360deg);}}
.reels-toast{position:absolute;left:50%;top:86px;z-index:40;transform:translateX(-50%);padding:11px 18px;border-radius:12px;
  background:#1c1010;border:1px solid rgba(255,255,255,0.09);color:#fff;font-size:15px;font-weight:600;white-space:nowrap;
  opacity:0;transition:opacity .2s;pointer-events:none;}
.reels-toast.is-on{opacity:1;}
