:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #090a08; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #090a08; }
.feed-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .55rem; padding: .65rem .85rem; padding-top: calc(.65rem + env(safe-area-inset-top)); pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.65), transparent); color: #fff; }
.feed-header a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; color: #171814; background: #f0c43b; font-weight: 950; text-decoration: none; pointer-events: auto; }
.feed-header strong { font-size: .86rem; }
.feed-header span { margin-left: auto; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.video-feed { height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; background: #090a08; }
.video-feed::-webkit-scrollbar { display: none; }
.feed-item { position: relative; display: grid; place-items: center; width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100svh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #090a08; }
.feed-item video { display: block; width: 100%; height: 100%; object-fit: cover; background: #090a08; cursor: pointer; }
.feed-item::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.feed-info { position: absolute; z-index: 3; left: 1rem; right: 5rem; bottom: 1.25rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.75); pointer-events: none; }
.feed-info p { margin: 0 0 .32rem; color: #f0c43b; font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.feed-info h1 { margin: 0; font-size: clamp(1.25rem, 6vw, 2rem); line-height: 1.05; }
.feed-info span { display: block; margin-top: .4rem; color: rgba(255,255,255,.78); font-size: .76rem; font-weight: 650; }
.feed-actions { position: absolute; z-index: 5; right: .78rem; bottom: 5.15rem; display: grid; gap: .62rem; pointer-events: auto; }
.feed-action { display: grid; justify-items: center; gap: .22rem; width: 4.15rem; min-height: 4rem; padding: .54rem .22rem; border: 1px solid rgba(255,255,255,.3); border-radius: 1.05rem; color: #fff; background: rgba(0,0,0,.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-shadow: 0 1px 8px rgba(0,0,0,.65); cursor: pointer; }
.feed-action span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 1.28rem; line-height: 1; }
.feed-action b { font-size: .62rem; font-weight: 850; line-height: 1; }
.feed-action[aria-pressed="true"] { border-color: rgba(240,196,59,.82); background: rgba(47,125,50,.56); }
.feed-action[aria-pressed="true"] span { background: rgba(240,196,59,.92); color: #171814; }
.sound-button { position: absolute; z-index: 5; right: 1rem; bottom: 1.35rem; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; color: #fff; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); font-size: 1.15rem; cursor: pointer; }
.play-state { position: absolute; z-index: 4; display: grid; place-items: center; width: 4rem; height: 4rem; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: rgba(0,0,0,.34); font-size: 1.55rem; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.feed-item.paused .play-state { opacity: 1; }
@supports (padding: max(0px)) {
  .feed-header { padding-left: max(.85rem, env(safe-area-inset-left)); padding-right: max(.85rem, env(safe-area-inset-right)); }
  .feed-info { left: max(1rem, env(safe-area-inset-left)); bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .feed-actions { right: max(.78rem, env(safe-area-inset-right)); bottom: calc(5.15rem + env(safe-area-inset-bottom)); }
  .sound-button { right: max(1rem, env(safe-area-inset-right)); bottom: calc(1.35rem + env(safe-area-inset-bottom)); }
}
@media (max-height: 42rem) {
  .feed-actions { bottom: 4.7rem; gap: .45rem; }
  .feed-action { width: 3.7rem; min-height: 3.45rem; border-radius: .9rem; }
  .feed-action span { width: 1.65rem; height: 1.65rem; font-size: 1.05rem; }
  .feed-action b { font-size: .56rem; }
}
@media (max-width: 47.99rem) {
  .feed-actions {
    right: max(.65rem, env(safe-area-inset-right));
    bottom: calc(5.25rem + max(1.35rem, env(safe-area-inset-bottom)));
    gap: .38rem;
  }
  .feed-action {
    width: 3.35rem;
    min-height: 3.05rem;
    padding: .38rem .12rem;
    border-radius: .85rem;
  }
  .feed-action span {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 1rem;
  }
  .feed-action b {
    font-size: .54rem;
  }
  .sound-button {
    right: max(.95rem, env(safe-area-inset-right));
    bottom: calc(1.35rem + max(1.35rem, env(safe-area-inset-bottom)));
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }
}
@media (min-width: 48rem) {
  body { background: #171814; }
  .video-feed { max-width: 34rem; margin: auto; box-shadow: 0 0 5rem rgba(0,0,0,.7); }
  .feed-item video { object-fit: contain; }
  .feed-header { max-width: 34rem; margin: auto; }
}
