*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#062018;color:#F2F1ED;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
header{position:fixed;inset:0 0 auto 0;z-index:20;padding:calc(env(safe-area-inset-top) + 10px) 12px 8px;
  background:linear-gradient(#062018ee 60%,#06201800);display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.brand{text-decoration:none;font-weight:800;font-size:20px;letter-spacing:-.02em;color:#D0EF5A;display:flex;align-items:center;line-height:1}
.brand img{height:28px;width:auto;display:block}
.brand span{font-weight:500;font-size:12px;color:#A3B8AD;margin-left:8px;text-transform:uppercase;letter-spacing:.12em}
.actions{display:flex;gap:8px}
.actions button{width:38px;height:38px;border-radius:50%;background:#ffffff1a;font-size:18px;display:grid;place-items:center}
.actions button:hover{background:#ffffff33}
.actions button.on{background:#D0EF5A;color:#062018}
#chips{grid-column:1/-1;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
#chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;padding:6px 12px;border-radius:999px;background:#ffffff14;font-size:13px;white-space:nowrap;border:1px solid #ffffff1f}
.chip.tag{color:#C2D2C9}
.chip.active{background:#D0EF5A;color:#062018;border-color:#D0EF5A;font-weight:600}
#feed{height:100dvh;overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;outline:none}
#feed::-webkit-scrollbar{display:none}
.slide{height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:grid;place-items:center;padding-top:96px}
.stage{position:relative;height:calc(100dvh - 120px);aspect-ratio:9/16;max-width:100vw;background:#000 center/cover no-repeat;border-radius:14px;overflow:hidden}
.slide.wide .stage{aspect-ratio:16/9;height:auto;width:min(100vw,1100px,calc((100dvh - 220px)*16/9))}
.stage .player,.stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.stage .shade{position:absolute;inset:0;background:#0006}
/* transparent layer so swipes/wheel scroll the feed instead of being swallowed by the iframe */
.hit{position:absolute;inset:0;z-index:2}
.paused-icon{position:absolute;inset:0;display:none;place-items:center;font-size:64px;z-index:3;pointer-events:none;text-shadow:0 2px 12px #000}
.slide.paused .paused-icon{display:grid}
.meta{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:40px 14px calc(env(safe-area-inset-bottom) + 14px);
  background:linear-gradient(#0000,#000c);pointer-events:none}
.slide.wide .meta{position:static;background:none;padding:12px 4px 0}
.slide.wide{align-content:center}
.meta h2{font-size:15px;font-weight:650;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta .by{font-size:13px;color:#D0EF5A;margin-top:4px}
.meta .tags{font-size:12px;color:#A3B8AD;margin-top:4px}
.meta a{pointer-events:auto;color:#fff;font-size:12px;text-decoration:none;display:inline-block;margin-top:8px;padding:4px 10px;border:1px solid #ffffff40;border-radius:999px}
#empty{position:fixed;inset:0;display:grid;place-items:center;color:#A3B8AD}
#empty[hidden]{display:none}
@media (min-width:900px){.brand img{height:34px}}

.brandrow{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.toplinks{display:flex;gap:12px}
.toplinks a{color:#d6dbd5;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap}
.toplinks a:hover{color:#D0EF5A}
@media (max-width:420px){.toplinks{gap:9px}.toplinks a{font-size:12px}.brand span{display:none}}
header{background:linear-gradient(#062018f0 60%,#06201800)}
/* viral ticker (ticker.css) reserves var(--tk-h) at the top: shrink the feed to fit */
#feed{height:calc(100dvh - var(--tk-h,0px))}
.slide{height:calc(100dvh - var(--tk-h,0px))}
.stage{height:calc(100dvh - 120px - var(--tk-h,0px))}
.slide.wide .stage{width:min(100vw,1100px,calc((100dvh - 220px - var(--tk-h,0px))*16/9))}
#empty{top:var(--tk-h,0px)}
