:root {
  --neon-pink: #ff00ff;
  --neon-green: #00ff9f;
  --bg: #000;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.feed-shell {
  min-height: 100vh;
  background: radial-gradient(900px 420px at 18% 18%, rgba(255,0,255,0.22), transparent 60%),
              radial-gradient(900px 420px at 82% 22%, rgba(0,255,159,0.16), transparent 60%),
              #000;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feed-stage {
  width: 100vw;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  min-height: 100vh;
}
  @media (max-width: 480px) {
    .feed-shell, .feed-stage, .feed-card {
      width: 100vw !important;
      max-width: 100vw !important;
      min-width: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .feed-card {
      min-height: unset !important;
      border-radius: 12px !important;
      box-shadow: 0 0 18px var(--neon-pink, #ff00ff33), 0 0 18px var(--neon-green, #00ff9f33);
      margin: 0 auto 12px auto !important;
    }
    .feed-media {
      width: 100vw !important;
      max-width: 100vw !important;
      height: 48vw !important;
      min-height: 180px !important;
      max-height: 320px !important;
      border-radius: 12px 12px 0 0 !important;
      overflow: hidden !important;
    }
    .feed-media img, .feed-media video {
      width: 100vw !important;
      max-width: 100vw !important;
      height: 48vw !important;
      min-height: 180px !important;
      max-height: 320px !important;
      object-fit: cover !important;
      border-radius: 12px 12px 0 0 !important;
    }
    .feed-overlay {
      padding: 1rem 0.7rem 1.2rem 0.7rem !important;
      font-size: 0.98em !important;
    }
    .feed-user .feed-avatar {
      width: 32px !important;
      height: 32px !important;
    }
  }
  @media (max-width: 412px) {
    .feed-media, .feed-media img, .feed-media video {
      height: 44vw !important;
      max-height: 260px !important;
    }
  }
  @media (max-width: 390px) {
    .feed-media, .feed-media img, .feed-media video {
      height: 40vw !important;
      max-height: 220px !important;
    }
  }
  @media (max-width: 360px) {
    .feed-media, .feed-media img, .feed-media video {
      height: 36vw !important;
      max-height: 180px !important;
    }
  }

.snap-section {
  scroll-snap-align: start;
}

.feed-loading, .feed-error {
  color: rgba(232,246,255,0.85);
  padding: 2.2rem 1.2rem;
  border: 1px solid rgba(0,255,159,0.18);
  border-radius: 16px;
  background: rgba(10,18,38,0.85);
  margin: 2rem auto;
  max-width: 420px;
  text-align: center;
}

.feed-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #e8f6ff;
}
.feed-empty-state .empty-illustration {
  width: 120px;
  height: 120px;
  background: url('/static/images/default-banner.jpg') center/cover no-repeat;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  box-shadow: 0 0 30px var(--neon-pink), 0 0 30px var(--neon-green);
}
.feed-empty-state .feed-cta, .feed-empty-state .feed-cta-alt {
  margin-top: 1.2rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-green));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.feed-empty-state .feed-cta-alt {
  background: rgba(0,255,159,0.18);
  color: var(--neon-green);
  margin-left: 0.7rem;
}

.feed-card {
  min-height: 100vh;
  width: 100vw;
  max-width: 480px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #07070a;
  box-shadow: 0 0 30px rgba(255,0,255,0.08), 0 0 30px rgba(0,255,159,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feed-media {
  position: relative;
  width: 100vw;
  max-width: 480px;
  height: 100vh;
  background: #07070a;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feed-media video,
.feed-media img {
  width: 100vw;
  max-width: 480px;
  height: 100vh;
  object-fit: cover;
  display: block;
  aspect-ratio: 9 / 16;
  background: #111;
}

.feed-video { outline: none; }

.feed-action-bar {
  position: absolute;
  right: 18px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 10;
}
.feed-action-bar .action {
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  padding: 0.4rem 0.9rem;
  box-shadow: 0 0 8px var(--neon-pink, #ff00ff33);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mute-btn {
  position: absolute;
  left: 18px;
  bottom: 120px;
  z-index: 11;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 0 8px var(--neon-green, #00ff9f33);
  transition: background 0.2s;
}
.mute-btn.active {
  background: var(--neon-green);
  color: #000;
}

.feed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 1.2rem 2.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.0) 70%);
  color: #e8f6ff;
  z-index: 9;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.feed-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,255,0.55);
  box-shadow: 0 0 14px rgba(255,0,255,0.2);
  object-fit: cover;
}

.feed-user a {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 800;
}

.feed-caption {
  font-size: 1.08rem;
  color: rgba(232,246,255,0.98);
  white-space: pre-wrap;
  margin-bottom: 0.3rem;
}

.feed-hashtags {
  color: var(--neon-pink);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.feed-meta {
  color: var(--neon-green);
  font-size: 0.93rem;
  margin-bottom: 0.3rem;
}

.feed-stats {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.7rem;
  color: rgba(232,246,255,0.7);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .feed-shell {
    background: radial-gradient(900px 420px at 18% 18%, rgba(255,0,255,0.22), transparent 60%),
                radial-gradient(900px 420px at 82% 22%, rgba(0,255,159,0.16), transparent 60%),
                #000;
  }
  .feed-stage {
    max-width: 480px;
    margin: 0 auto;
  }
  .feed-card, .feed-media video, .feed-media img {
    max-width: 480px;
    margin: 0 auto;
  }
}
