/* ==========================================================
   VERSION 3 (STABLE) — TikTok / Reels Vertical Video Stylesheet
   Modern, Dark Mode, Glassmorphic, Mobile-First
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.75);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.45);
  --cyan: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(15, 20, 32, 0.65);
  --radius-full: 9999px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  user-select: none;
}

/* App Container */
#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 10%, #151c2e 0%, #07090e 80%);
}

/* Feed Container (Vertical Snap Scroll) */
.feed-container {
  width: 100%;
  max-width: 500px; /* Mobile Reels aspect ratio on desktop */
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Top Modern Brand Header (Popular Live Videos + Subtle LIVE Badge) */
.top-brand-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.top-brand-header:hover {
  background: rgba(15, 20, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: livePulseAnim 1.6s infinite ease-in-out;
}

@keyframes livePulseAnim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
    box-shadow: 0 0 12px rgba(239, 68, 68, 1);
  }
}

.live-text {
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.8px;
  line-height: 1;
}

.top-brand-header .brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Dynamic Top Banner Ad Container (Strictly conditional & Responsive) */
.top-banner-wrapper {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 92%;
  max-width: min(460px, calc(100vw - 88px));
  display: none; /* Hidden by default until custom ad content is loaded */
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-inner {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--glass-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-inner:empty {
  display: none !important;
}

.banner-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(99, 102, 241, 0.25);
}

/* Responsive Adsterra / Iframe / Image Banner Container */
.banner-ad-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4px;
}

.banner-inner iframe,
.banner-inner img,
.banner-inner embed,
.banner-inner object {
  max-width: 100% !important;
  border: none !important;
  display: block !important;
  margin: 0 auto !important;
}

.banner-inner > div,
.banner-inner [id^="container-"] {
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 100% !important;
}

/* Top Action Controls (Sound & Admin Links) - Elevated above banners */
.top-controls {
  position: fixed;
  top: 68px;
  right: calc(50% - 240px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 520px) {
  .top-controls {
    right: 16px;
    top: 76px;
  }
}

.icon-btn-blur {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 20, 32, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.icon-btn-blur:hover {
  transform: scale(1.1);
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.6);
}

.icon-btn-blur svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating Middle Up/Down Video Navigation Arrows */
.feed-nav-arrows {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: calc(50% - 240px + 10px);
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none; /* Container passes touches through to feed */
}

.nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto; /* Buttons are clickable */
  outline: none;
}

.nav-arrow-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
  color: #25f4ee;
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.nav-arrow-btn:active {
  transform: scale(0.92);
}

/* Desktop with wide screen: position arrows cleanly on the right side of the feed */
@media (min-width: 650px) {
  .feed-nav-arrows {
    right: calc(50% - 295px);
  }
}

/* Mobile: position arrows on the middle-upper right, clear of the bottom action bar */
@media (max-width: 649px) {
  .feed-nav-arrows {
    right: 12px;
    top: 38%;
    transform: translateY(-50%);
  }
}

/* Video Card (Snap Unit) */
.video-card {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centered Black Background Wrapper for Video (Dynamic 9:16 & 16:9 Support) */
.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* The HTML5 Video Element with Dynamic Aspect Ratio Support */
.video-player {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Full Screen Locking Glass Overlay (Subtle semi-transparent frosted blur to show underlying video frame) */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.28) 0%, rgba(7, 9, 14, 0.45) 50%, rgba(7, 9, 14, 0.68) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  transition: opacity 0.45s ease, visibility 0.45s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.video-overlay.countdown-active {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.55) 0%, rgba(7, 9, 14, 0.72) 50%, rgba(7, 9, 14, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

/* Locked Initial State: Play Button & Details */
.overlay-locked-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.play-glow-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-glow-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.7;
  filter: blur(12px);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.play-btn-circle {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-glow-ring:hover {
  transform: scale(1.12);
}

.play-glow-ring:active {
  transform: scale(0.96);
}

.play-icon-svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 5px; /* Visual optical center for play triangle */
}

.overlay-title {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.overlay-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.4;
}

.overlay-ad-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* 10-Second Ad Verification Countdown State View */
.overlay-countdown-view {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.countdown-timer-circle {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.timer-bg-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.timer-active-stroke {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear;
}

.countdown-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px var(--primary);
}

.countdown-msg {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 320px;
  line-height: 1.35;
}

.countdown-warning-badge {
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: var(--radius-full);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: fadeIn 0.3s ease;
  max-width: 320px;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.countdown-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.4;
}

.reopen-ad-btn {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.reopen-ad-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Bottom Gradient Scrim for TikTok Video Feed Contrast */
.video-scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

/* Bottom Metadata (Creator, Title, Tags, Music Marquee) */
.video-meta-overlay {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 76px;
  z-index: 18;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.author-handle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.verified-badge {
  width: 15px;
  height: 15px;
  fill: #20d5ec; /* TikTok cyan verified check */
  flex-shrink: 0;
}

.follow-pill-btn {
  display: inline-block;
  padding: 2px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.follow-pill-btn:hover {
  background: #fe2c55;
  border-color: #fe2c55;
}

.follow-pill-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #94a3b8;
}

.video-caption {
  font-size: 14px;
  line-height: 1.4;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.caption-tags {
  display: none !important;
}

.video-soundtrack {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.sound-note-icon {
  animation: pulse 1.5s infinite;
}

.soundtrack-marquee {
  width: 220px;
  overflow: hidden;
  white-space: nowrap;
}

.soundtrack-marquee span {
  display: inline-block;
  animation: marquee 11s linear infinite;
}

/* Right Sidebar Floating Actions (TikTok Authentic Style) */
.video-actions-sidebar {
  position: absolute;
  right: 12px;
  bottom: 24px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Avatar with "+" Follow Badge */
.avatar-action-item {
  position: relative;
  margin-bottom: 6px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-follow-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fe2c55; /* TikTok Red */
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.7);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
}

.avatar-follow-badge:hover {
  transform: translateX(-50%) scale(1.2);
}

.avatar-follow-badge.followed {
  background: #10b981;
}

.avatar-follow-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Action Buttons (Like, Comment, Share) */
.action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover {
  transform: scale(1.15);
}

.action-btn:active {
  transform: scale(0.92);
}

.icon-btn-blur:active {
  transform: scale(0.92);
}

/* Secret Admin Shortcut Button (Hidden by default from regular visitors) */
#admin-shortcut-btn {
  display: none;
}

#admin-shortcut-btn.show-admin {
  display: flex !important;
  animation: adminShortcutFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminShortcutFadeIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.action-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.action-btn.liked svg {
  fill: #fe2c55; /* TikTok Heart Red */
  filter: drop-shadow(0 0 10px rgba(254, 44, 85, 0.85));
  transform: scale(1.1);
}

.action-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.2px;
}

/* Vinyl Music Disc with Floating Notes */
.vinyl-disc {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(#111 0deg, #2a2a2a 45deg, #111 90deg, #2a2a2a 135deg, #111 180deg, #2a2a2a 225deg, #111 270deg, #2a2a2a 315deg, #111 360deg);
  border: 4px solid #1a1a1a;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 4s linear infinite;
  animation-play-state: paused;
  margin-top: 4px;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

.vinyl-center-art {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.music-note-float {
  position: absolute;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
}

.vinyl-disc.playing .note-1 {
  animation: floatNote 2.4s infinite ease-out;
}

.vinyl-disc.playing .note-2 {
  animation: floatNote 2.4s infinite ease-out 1.2s;
}

@keyframes floatNote {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-20px, -40px) scale(1.1);
    opacity: 0;
  }
}

/* Bottom Progress Bar */
.video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 25;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--accent);
}

/* Floating Like Hearts Animation (Double Tap) */
.floating-heart {
  position: absolute;
  width: 80px;
  height: 80px;
  fill: #f43f5e;
  filter: drop-shadow(0 0 15px rgba(244, 63, 94, 0.8));
  pointer-events: none;
  z-index: 50;
  animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Empty State / Loading State */
.feed-empty-state {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.feed-empty-state h3 {
  font-size: 22px;
  margin-top: 16px;
}

.feed-empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.btn-primary {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Keyframes */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heartPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) scale(1.6) rotate(15deg);
  }
}
