.feed { position:absolute; inset:0; overflow-y:auto; scroll-snap-type:y mandatory; overscroll-behavior:contain; scrollbar-width:none; }
.feed::-webkit-scrollbar { display:none; }
.slide { height:100%; display:flex; justify-content:center; scroll-snap-align:start; scroll-snap-stop:always; container-type:size; }
.reel { position:relative; width:min(100cqw, calc(100cqh * 9 / 16)); height:100%; overflow:hidden; background:#0c0d10; user-select:none; -webkit-user-select:none; }
.reel video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .2s; }
.reel.ready video { opacity:1; }
.reel video.fit { object-fit:contain; }
.shade { position:absolute; inset:0; pointer-events:none; background:linear-gradient(rgba(0,0,0,.55), transparent 22%, transparent 65%, rgba(0,0,0,.65)); }
.spinner { position:absolute; top:50%; left:50%; width:38px; height:38px; margin:-19px; border:3px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; opacity:0; animation:spin .8s linear infinite; pointer-events:none; }
.buffering .spinner { opacity:1; }
@keyframes spin { to { transform:rotate(360deg); } }
.paused-mark { position:absolute; top:50%; left:50%; margin:-32px; width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:rgba(0,0,0,.45); opacity:0; pointer-events:none; }
.paused .paused-mark { opacity:1; }
.paused-mark svg { width:30px; height:30px; }
.info { max-height:45%; overflow:hidden; position:absolute; z-index:3; left:12px; right:68px; bottom:42px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; pointer-events:none; }
.info a { pointer-events:auto; }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-weight:700; text-shadow:0 1px 6px rgba(0,0,0,.8); }
.row svg { width:17px; height:17px; }
.actions { position:absolute; z-index:3; right:10px; bottom:46px; display:flex; flex-direction:column; gap:14px; }
.progress { position:absolute; z-index:4; left:12px; right:12px; bottom:0; height:36px; touch-action:none; cursor:pointer; }
.progress::before, .progress i { content:""; position:absolute; left:0; bottom:8px; height:6px; border-radius:3px; }
.progress::before { right:0; background:rgba(255,255,255,.3); }
.progress i { width:0; background:var(--accent); }
.progress i::after { content:""; position:absolute; right:-8px; top:50%; width:16px; height:16px; margin-top:-8px; border-radius:50%; background:var(--accent); box-shadow:0 0 6px rgba(0,0,0,.6); }
.scrubbing .progress::before, .scrubbing .progress i { height:10px; bottom:6px; border-radius:5px; }
.scrubbing .progress i::after { width:22px; height:22px; margin-top:-11px; right:-11px; }
.time { position:absolute; z-index:5; left:50%; bottom:48px; transform:translateX(-50%); padding:6px 14px; border-radius:999px; background:rgba(0,0,0,.75); font-size:1.1rem; font-weight:700; white-space:nowrap; opacity:0; pointer-events:none; }
.scrubbing .time { opacity:1; }
.scrubbing .info, .scrubbing .actions { opacity:.15; }
.live .progress { display:none; }
.failure { position:absolute; z-index:2; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:24px; text-align:center; background:rgba(0,0,0,.7); }
.failed .failure { display:flex; }
.feed-head { position:absolute; z-index:6; top:0; left:50%; width:min(100cqw, calc(100cqh * 9 / 16)); transform:translateX(-50%); display:flex; align-items:center; gap:10px; padding:calc(12px + env(safe-area-inset-top)) 12px 8px; pointer-events:none; }
.feed-head > * { pointer-events:auto; }
.brand { margin:0; font:800 1.5rem/1 var(--brand); letter-spacing:-.04em; text-shadow:0 2px 14px rgba(0,0,0,.6); }
.brand span { color:var(--accent); }
.volume { flex:none; display:flex; align-items:center; gap:8px; }
.volume input { width:clamp(64px, 22vw, 110px); height:28px; margin:0; appearance:none; background:none; cursor:pointer; touch-action:none; }
.volume input::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(90deg, #fff var(--level), rgba(255,255,255,.35) var(--level)); box-shadow:0 0 6px rgba(0,0,0,.5); }
.volume input::-webkit-slider-thumb { appearance:none; width:14px; height:14px; margin-top:-5px; border-radius:50%; background:#fff; }
.volume input::-moz-range-track { height:4px; border-radius:2px; background:rgba(255,255,255,.35); }
.volume input::-moz-range-progress { height:4px; background:#fff; }
.volume input::-moz-range-thumb { width:14px; height:14px; border:0; border-radius:50%; background:#fff; }
.feed-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:0; font-size:1rem; text-shadow:0 1px 8px rgba(0,0,0,.8); }
.spacer { flex:1; }
.feed-nav { position:absolute; z-index:6; top:50%; left:calc(50% + min(50cqw, calc(100cqh * 9 / 32)) + 16px); transform:translateY(-50%); display:none; flex-direction:column; gap:12px; }
.feed-nav .icon-btn { width:48px; height:48px; background:var(--soft); }
.feed-nav .icon-btn:hover:enabled { background:var(--line); }
.feed-nav .icon-btn:disabled { opacity:.35; cursor:default; }
@media (min-width:700px) { .feed-nav { display:flex; } }
.reel { -webkit-touch-callout:none; }
.info { right:76px; }
.caption { pointer-events:auto; max-width:100%; padding:0; border:0; background:none; text-align:left; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; text-shadow:0 1px 6px rgba(0,0,0,.8); }
.caption.open { -webkit-line-clamp:8; }
.actions { align-items:center; }
.action { display:flex; flex-direction:column; align-items:center; gap:3px; padding:0; border:0; background:none; font-size:.7rem; font-weight:600; text-shadow:0 1px 4px rgba(0,0,0,.9); }
.action .icon-btn { width:46px; height:46px; }
.action svg { width:25px; height:25px; }
.action.liked[aria-pressed="true"] svg { color:var(--accent); fill:var(--accent); }
.action.saved[aria-pressed="true"] svg { color:#ffd23f; fill:#ffd23f; }
.burst { position:absolute; z-index:5; margin:-45px; pointer-events:none; color:var(--accent); animation:burst .8s ease both; }
.burst svg { width:90px; height:90px; fill:currentColor; }
@keyframes burst { 0% { opacity:0; transform:scale(.4); } 25% { opacity:1; transform:scale(1.15); } 60% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:translateY(-50px) scale(1); } }
.speed { position:absolute; z-index:4; top:76px; left:50%; transform:translateX(-50%); padding:5px 14px; border-radius:999px; background:rgba(0,0,0,.6); font-weight:700; opacity:0; pointer-events:none; }
.fast .speed { opacity:1; }
@media (max-height:500px) {
  .reel, .feed-head { width:min(100cqw, 420px); }
  .reel video { object-fit:contain; }
  .feed-nav { left:calc(50% + min(50cqw, 210px) + 16px); }
  .actions { bottom:42px; gap:6px; }
  .action { font-size:0; }
  .action .icon-btn { width:40px; height:40px; }
}
