:root{
  --bg:#050608;--text:#fff;--muted:#a9adb5;--line:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
body{overscroll-behavior-y:none}
.topbar{
  position:fixed;left:0;right:0;top:0;height:64px;z-index:100;
  display:flex;align-items:center;justify-content:space-between;padding:0 18px;
  background:linear-gradient(to bottom,rgba(0,0,0,.72),transparent);
  pointer-events:none
}
.brand{display:flex;align-items:center;gap:10px;text-shadow:0 2px 12px #000;pointer-events:auto}
.brand-mark{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fff;color:#050608;font-size:12px}
.brand strong{font-size:16px;letter-spacing:2px}
.icon-btn{
  pointer-events:auto;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);
  color:#fff;width:40px;height:40px;border-radius:50%;font-size:16px;cursor:pointer;
  backdrop-filter:blur(10px)
}
.feed{
  width:100%;height:100dvh;overflow-y:auto;overflow-x:hidden;
  scroll-snap-type:y mandatory;scroll-behavior:smooth;overscroll-behavior-y:contain
}
.short{
  position:relative;width:100%;height:100dvh;min-height:100dvh;
  scroll-snap-align:start;scroll-snap-stop:always;background:#000;
  display:flex;align-items:center;justify-content:center
}
.media{
  position:relative;width:100%;height:100%;overflow:hidden;background:#000
}
.yt-player,.yt-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-player{z-index:1}
.overlay{
  position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.82),transparent 35%,rgba(0,0,0,.08))
}
.info{position:absolute;left:18px;right:82px;bottom:28px;z-index:5;text-shadow:0 2px 10px #000}
.info h2{margin:0 0 8px;font-size:17px;line-height:1.3}
.info p{margin:0;color:#e2e4e8;font-size:12px}
.actions{
  position:absolute;right:14px;bottom:28px;z-index:6;display:flex;flex-direction:column;gap:12px
}
.action{
  width:46px;height:46px;border:1px solid rgba(255,255,255,.18);border-radius:50%;
  background:rgba(0,0,0,.36);color:#fff;display:grid;place-items:center;
  cursor:pointer;font-size:18px;backdrop-filter:blur(8px)
}
.action.liked{background:#fff;color:#050608}
.loading{
  position:fixed;inset:0;z-index:200;display:grid;place-items:center;align-content:center;
  gap:12px;background:#050608;color:#fff;font-size:12px
}
.loading span{width:34px;height:34px;border:3px solid rgba(255,255,255,.15);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.loading.hidden{display:none}
.error{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:300;
  max-width:90%;padding:18px;border:1px solid var(--line);border-radius:16px;
  background:rgba(10,10,12,.96);text-align:center;color:#fff
}
.error.hidden{display:none}
@keyframes spin{to{transform:rotate(360deg)}}

@media(min-width:769px){
  .feed{width:100vw;height:100dvh;background:#000}
  .short{width:100vw;height:100dvh;min-height:100dvh;background:#000}
  .media{width:100vw;height:100dvh;box-shadow:none}
}
@media(max-width:768px){
  .feed,.short,.media{width:100vw;height:100dvh;min-height:100dvh}
}
}
@media(prefers-reduced-motion:reduce){
  .feed{scroll-behavior:auto}
}