/* ==========================================================================
   AV91 ONLINE PWA INSTALLER - DESIGN SYSTEM & STYLESHEET
   Domain: av91.online
   ========================================================================== */

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

:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color System */
  --bg-dark: #070a11;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(6, 182, 212, 0.4);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;

  --gradient-brand: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(6, 182, 212, 0.25) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 80%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Core Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.25), transparent),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12), transparent 40%),
    radial-gradient(circle at 10% 40%, rgba(168, 85, 247, 0.15), transparent 40%);
  background-attachment: fixed;
}

/* Ambient Light Animation Background */
.ambient-glow {
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 500px;
  background: var(--gradient-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 30px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  border: 1px solid var(--glass-border);
}

.brand-text {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domain-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Standalone Mode Banner */
.standalone-notice {
  display: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 25px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.standalone-notice.active {
  display: flex;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 50px 0;
}

@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.highlight-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 520px;
}

@media (max-width: 868px) {
  .hero-subtitle {
    margin: 0 auto 30px auto;
  }
}

/* Primary PWA Install Card */
.install-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.install-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 60%);
  pointer-events: none;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.app-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.app-details h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.app-domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 4px;
}

.btn-install {
  width: 100%;
  padding: 16px 28px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--gradient-btn);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-install:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.5);
}

.btn-install:active {
  transform: translateY(1px) scale(0.99);
}

.btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.install-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feature-pill strong {
  color: var(--text-main);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Smartphone Device Frame Mockup for Hero Section */
.phone-frame {
  width: 100%;
  max-width: 320px;
  height: 580px;
  background: #000000;
  border-radius: 44px;
  box-shadow: 
    0 0 0 4px #1f293d,
    0 0 0 8px #0f172a,
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.phone-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 0 0 4px #06b6d4,
    0 0 0 8px #0f172a,
    0 30px 70px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(6, 182, 212, 0.4);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #070a11;
}

.hero-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.phone-live-badge {
  position: absolute;
  top: 48px;
  left: 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  z-index: 5;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: blink 1.5s infinite;
}

/* Video Server Selector Pills */
.server-selector-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.server-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.server-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.server-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.server-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--text-dim);
}

.server-pill.active .server-dot {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.media-player-container, #player-root {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  max-height: 780px;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 10;
  touch-action: none;
}

.media-player-container.iframe-active {
  aspect-ratio: auto;
  min-height: 540px;
  height: 70vh;
  max-height: 750px;
}

#iframe-container {
  width: 100%;
  height: 250px;
  min-height: 250px;
  background-color: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}

#promo-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .media-player-container.iframe-active {
    min-height: 480px;
    height: 65vh;
  }
}

/* TikTok Player Interactive UI Styles */
#video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.video-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 0;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #000;
  object-fit: contain;
}

.tiktok-ui {
  position: absolute;
  right: 12px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  user-select: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.action-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  font-size: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.action-btn:hover .action-icon {
  transform: scale(1.1);
  border-color: var(--accent-cyan);
}

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

.action-btn.liked .action-icon {
  background: rgba(236, 72, 153, 0.25);
  border-color: var(--accent-pink);
}

.video-info {
  position: absolute;
  bottom: 55px;
  left: 15px;
  max-width: calc(100% - 90px);
  z-index: 100;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
  color: white;
}

.username {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.caption {
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-main);
  word-break: break-word;
}

.music {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.music-icon {
  margin-right: 6px;
  font-size: 14px;
}

.progress-container {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0px 15px;
  box-sizing: border-box;
  z-index: 100;
  pointer-events: none;
}

.progress-bar-wrapper {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto;
  transition: height 0.2s ease;
}

.progress-bar-wrapper:hover {
  height: 6px;
}

.progress {
  height: 100%;
  background: var(--gradient-btn);
  width: 0%;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.navigation-buttons {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 101;
}

.navigation-buttons button {
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  transition: var(--transition-fast);
}

.navigation-buttons button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.navigation-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.double-tap-heart {
  position: absolute;
  font-size: 70px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: heartBeat 0.8s forwards;
  z-index: 1000;
  transform: translate(-50%, -50%);
}

@keyframes heartBeat {
  0% { transform: translate(-50%, -50%) scale(0); }
  30% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

#history-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1001;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#history-overlay.active {
  display: flex;
  opacity: 1;
}

#history-list-container {
  background-color: #0f172a;
  border: 1px solid var(--glass-border-glow);
  padding: 24px;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 440px;
  max-height: 75vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

#history-list-container h2 {
  margin-top: 0;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--text-main);
}

.history-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

#close-history-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 14px 22px;
  font-size: 0.88rem;
  z-index: 105;
  background-color: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--glass-border-glow);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.player-message.error {
  color: #ff6b6b;
  border-color: rgba(239, 68, 68, 0.4);
}

.player-message.instruction {
  color: var(--accent-cyan);
}

/* Mobile Sticky Bottom Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border-glow);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
  z-index: 9900;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  gap: 10px;
}

.mobile-bar-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-bar-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-bar-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

/* Mobile Responsive Breakpoints */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: 75px; /* Offset for floating bottom bar */
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-section {
    padding: 16px 6px;
    border-radius: var(--radius-lg);
  }

  .media-player-container, #player-root {
    height: 78vh;
    min-height: 520px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }

  .video-wrapper video {
    object-fit: contain;
  }

  .video-info {
    bottom: 60px;
    left: 10px;
    max-width: calc(100% - 70px);
  }

  .tiktok-ui {
    right: 8px;
    bottom: 60px;
  }

  .media-controls-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .media-controls-bar div {
    justify-content: center;
  }

  .server-selector-container {
    justify-content: center;
  }

  .install-card {
    padding: 20px;
  }

  .phone-frame {
    max-width: 280px;
    height: 520px;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 0;
  }

  .domain-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .nav-status {
    font-size: 0.78rem;
    padding: 4px 10px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 25px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .install-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .feature-pill {
    font-size: 0.68rem;
  }

  .feature-pill strong {
    font-size: 0.76rem;
  }

  .app-icon-large {
    width: 60px;
    height: 60px;
  }

  .audio-toggle-badge {
    bottom: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .ios-drawer {
    padding: 22px 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom, 22px));
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 35px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Floating PWA Push Notification Toast Banner */
.pwa-push-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 99999;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-120%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.pwa-push-banner.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.push-banner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.push-banner-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ff6b6b;
}

.push-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.push-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.push-app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.push-live-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background-color: var(--accent-emerald);
  border: 2px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.push-text-info {
  flex-grow: 1;
}

.push-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.push-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.push-install-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-btn);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transition: var(--transition-bounce);
}

.push-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.5);
}

@media (max-width: 768px) {
  .pwa-push-banner {
    top: auto;
    bottom: 80px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    transform: translateY(120%) scale(0.9);
  }
  .pwa-push-banner.active {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Thumbnail Banner Showcase (index & video post)
   ========================================================================== */
.thumbnail-banner-wrapper {
  margin: 0 auto 24px auto;
  text-align: center;
  max-width: 360px;
}

.thumbnail-banner-link {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.thumbnail-banner-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.45);
  border-color: var(--accent-cyan);
}

.thumbnail-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.thumbnail-banner-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.5);
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.thumbnail-banner-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: blink 1.5s infinite;
}


