:root {
  --bg: #080a0f;
  --surface: #11151f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f5f9;
  --muted: #8b95a7;
  --accent: #22c55e;
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(6, 9, 15, 0.18) 0%, rgba(6, 9, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.25) 0%, rgba(6, 9, 15, 0.38) 55%, rgba(6, 9, 15, 0.68) 100%),
    url("/vsl-assets/bg.jpg?v=3") center center / cover no-repeat;
}
.shell {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  padding: 20px 14px 44px;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #e2e8f0;
  background: rgba(12, 16, 26, 0.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sync-badge { font-size: 12px; color: #cbd5e1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.title {
  margin: 0 0 18px; font-size: clamp(20px, 3.6vw, 30px);
  line-height: 1.22; font-weight: 700; letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}
.card {
  background: rgba(14, 18, 28, 0.78); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius); padding: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.hidden { display: none !important; }

/* Player */
.player-shell {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  user-select: none;
}
.player-shell.ios-cinema {
  position: fixed !important; inset: 0 !important; z-index: 9999 !important;
  width: 100dvw !important; height: 100dvh !important;
  aspect-ratio: auto !important; border-radius: 0 !important; border: none !important;
}
video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

.big-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 15, 0.45); backdrop-filter: blur(2px); cursor: pointer;
}
.big-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; border-radius: 999px; padding: 14px 26px;
  background: var(--accent); color: #052e16; font-weight: 700; font-size: 16px;
  cursor: pointer; box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
  transition: transform 0.15s ease;
}
.big-play-btn:active { transform: scale(0.97); }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.seek-track {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); cursor: pointer; margin-bottom: 10px;
  touch-action: none;
}
.seek-unlocked {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.38); pointer-events: none;
}
.seek-current {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: var(--accent); pointer-events: none;
}
.seek-thumb {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.ctrl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ctrl-left, .ctrl-right { display: flex; align-items: center; gap: 6px; }
.ctrl-btn {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: none;
  border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.2); }
.time-label { font-size: 12px; color: #e2e8f0; font-variant-numeric: tabular-nums; margin-left: 4px; }

.toast {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc; padding: 8px 14px; border-radius: 10px; font-size: 13px;
  z-index: 20; text-align: center; max-width: 90%;
}
.superseded-banner {
  position: absolute; inset: 0; z-index: 25;
  background: rgba(8, 10, 15, 0.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 20px;
}
.mini-btn {
  background: var(--accent); color: #052e16; border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; cursor: pointer;
}

.under-player-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 13px;
}
.muted { color: var(--muted); }
.link-btn {
  background: none; border: none; color: var(--muted); text-decoration: underline;
  cursor: pointer; font-size: 13px; padding: 0;
}
.trouble-hint { margin-top: 10px; font-size: 13px; color: #cbd5e1; line-height: 1.5; }

/* CTA & Curator */
.cta-card, .curator-card {
  margin-top: 20px; text-align: center;
  animation: fadeUp 0.4s ease forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cta-headline { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.cta-btn {
  display: inline-block; width: 100%; max-width: 440px;
  background: var(--accent); color: #052e16; text-decoration: none;
  border: none; border-radius: 12px; padding: 16px 24px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
}
.cta-btn:disabled { opacity: 0.6; cursor: wait; }
.cta-desc { margin: 12px auto 0; max-width: 540px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.curator-badge {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 8px;
  background: rgba(34, 197, 94, 0.14); color: #86efac; font-size: 12px; font-weight: 700;
}
.error-box { border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; text-align: center; }
.legal { margin-top: 32px; text-align: center; font-size: 11px; color: #64748b; }
