:root {
  --bg-obsidian: #040711;
  --bg-surface: #0b1122;
  --bg-elevated: #131c36;
  --bg-glass: rgba(11, 17, 34, 0.86);
  --crimson: #7c3aed;
  --crimson-bright: #8b5cf6;
  --crimson-glow: rgba(139, 92, 246, 0.38);
  --gold: #06b6d4;
  --gold-bright: #22d3ee;
  --emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(139, 92, 246, 0.32);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Sticky Glass Header ─── */
.vd-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.vd-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.vd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vd-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 4px 18px var(--crimson-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}

.vd-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.vd-brand-text small {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: var(--gold-bright);
  margin-top: 3px;
}

.vd-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.vd-search input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 42px;
  color: var(--text-main);
  font-size: 13.5px;
  transition: all 0.2s;
}

.vd-search input:focus {
  outline: none;
  border-color: var(--crimson-bright);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.vd-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.vd-lang-select {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ─── Provider Filter Bar ─── */
.vd-provider-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(11, 17, 34, 0.72);
}

.vd-provider-scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vd-provider-scroll::-webkit-scrollbar {
  display: none;
}

.vd-prov-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.18s;
}

.vd-prov-pill:hover, .vd-prov-pill.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(6, 182, 212, 0.18));
  border-color: var(--crimson-bright);
  color: #fff;
  transform: translateY(-1px);
}

.vd-prov-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ─── Main Container & Hero ─── */
.vd-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.vd-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.vd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.3);
  transform: scale(1.15);
  z-index: 0;
}

.vd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 17, 0.95) 0%, rgba(11, 17, 34, 0.78) 60%, rgba(11, 17, 34, 0.45) 100%);
  z-index: 1;
}

.vd-hero-content {
  position: relative;
  z-index: 2;
}

.vd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.vd-badge-crimson {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.vd-badge-gold {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--gold-bright);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.vd-badge-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.vd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 12px;
}

.vd-hero-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 680px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 8px 25px var(--crimson-glow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.vd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55);
}

.vd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.vd-hero-poster-card {
  position: relative;
  z-index: 2;
  width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.vd-hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-hero-play-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 25px var(--crimson);
}

/* ─── Sections & Drama Cards Grid ─── */
.vd-section {
  margin-bottom: 40px;
}

.vd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vd-section-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.vd-section-more, .vd-section-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-bright);
}

.vd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 18px;
}

.vd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.vd-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.vd-card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0d152a;
  overflow: hidden;
  display: block;
}

.vd-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vd-card:hover .vd-card-poster {
  transform: scale(1.06);
}

.vd-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 7, 17, 0.94) 0%, transparent 45%);
}

.vd-card-provider {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(4, 7, 17, 0.85);
  border-left: 3px solid var(--prov-color, var(--crimson));
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
}

.vd-card-eps {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
}

.vd-card-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}

.vd-card:hover .vd-card-play-btn {
  opacity: 1;
  transform: scale(1);
}

.vd-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vd-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.vd-card-watch-link {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ─── Detail Page ─── */
.vd-detail-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
}

.vd-detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.vd-detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.vd-detail-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.vd-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vd-genre-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
}

.vd-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.vd-ep-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.18s;
}

.vd-ep-chip:hover {
  border-color: var(--crimson-bright);
  background: var(--bg-elevated);
}

.vd-ep-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.16);
  color: var(--gold-bright);
}

/* ─── VERTICAL THEATRE VIDEO PLAYER (MOBILE & DESKTOP UNIFIED) ─── */
.vd-player-body {
  min-height: 100dvh;
  background: #02040a;
}

.vd-cinema-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(340px, 480px) 1fr;
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.vd-stage-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.vd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - 100px);
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  margin: 0 auto;
}

.vd-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.vd-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.vd-player-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vd-player-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  max-width: 55%;
}

.vd-player-back span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-player-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vd-ep-indicator {
  background: rgba(4, 7, 17, 0.72);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}

.vd-sound-pill {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--crimson-glow);
}

/* ─── Instant 1-Tap Unmute Callout (Clickable!) ─── */
.vd-unmute-callout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  background: rgba(11, 17, 34, 0.94);
  backdrop-filter: blur(12px);
  border: 2px solid var(--crimson-bright);
  border-radius: 999px;
  padding: 14px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.55);
  animation: vdPulse 1.8s infinite ease-in-out;
}

.vd-unmute-callout[hidden] {
  display: none !important;
}

.vd-unmute-pulse {
  font-size: 26px;
}

.vd-unmute-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.vd-unmute-text strong {
  font-size: 15px;
  font-weight: 800;
}

.vd-unmute-text small {
  font-size: 11.5px;
  color: #cbd5e1;
}

@keyframes vdPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* ─── Right-Side Vertical Rail ─── */
.vd-side-rail {
  position: absolute;
  right: 12px;
  bottom: 92px;
  z-index: 28;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-rail-btn {
  width: 48px;
  height: 52px;
  border-radius: 14px;
  background: rgba(11, 17, 34, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}

.vd-rail-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson-bright);
}

.vd-rail-btn small {
  font-size: 10px;
  font-weight: 700;
}

/* ─── Bottom Scrubber & Transport Controls ─── */
.vd-controls-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 29;
  padding: 18px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-seek {
  width: 100%;
  accent-color: var(--gold-bright);
  height: 5px;
  cursor: pointer;
}

.vd-transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vd-transport-left, .vd-transport-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vd-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vd-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.vd-ctrl-select {
  background: rgba(11, 17, 34, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.vd-time {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

/* ─── Loading Spinner ─── */
.vd-loader {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(4, 7, 17, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.vd-loader[hidden] {
  display: none !important;
}

.vd-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold-bright);
  animation: vdSpin 0.8s linear infinite;
}

@keyframes vdSpin {
  to { transform: rotate(360deg); }
}

/* ─── 10-EPISODE / 4-PRESS VIP UNLOCK GATE ─── */
.vd-gate-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(4, 7, 17, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vd-gate-backdrop[hidden] {
  display: none !important;
}

.vd-gate-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, #131c36 0%, #090e1d 100%);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(124, 58, 237, 0.3);
}

.vd-gate-crown {
  display: inline-block;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.vd-gate-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.vd-gate-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.vd-gate-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.vd-gate-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0.55;
  transition: all 0.25s;
}

.vd-gate-step.active {
  opacity: 1;
  border-color: var(--gold-bright);
  background: rgba(6, 182, 212, 0.15);
}

.vd-gate-step.done {
  opacity: 1;
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.vd-gate-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.vd-gate-step small {
  font-size: 10px;
  font-weight: 700;
}

.vd-gate-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.vd-gate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold-bright), var(--emerald));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.vd-gate-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.vd-gate-cta {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--crimson-glow);
  transition: all 0.2s;
}

.vd-gate-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.55);
}

.vd-gate-cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.vd-gate-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── High-Intent Direct Link Action Bar ─── */
.vd-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vd-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  transition: all 0.18s;
}

.vd-action-hd {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--gold-bright);
}

.vd-action-dl {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.vd-action-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-elevated);
}

/* ─── Player Sidebar / Episode Pack Drawer ─── */
.vd-sidebar-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.vd-sidebar-col::-webkit-scrollbar,
.vd-sidebar-desc::-webkit-scrollbar {
  width: 6px;
}

.vd-sidebar-col::-webkit-scrollbar-track,
.vd-sidebar-desc::-webkit-scrollbar-track {
  background: transparent;
}

.vd-sidebar-col::-webkit-scrollbar-thumb,
.vd-sidebar-desc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.vd-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vd-sidebar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.vd-drawer-close {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.vd-sidebar-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-height: 112px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.vd-pack-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.vd-legend-free { color: #34d399; }
.vd-legend-pack { color: var(--gold-bright); }

.vd-sidebar-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.vd-ep-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s;
}

.vd-ep-btn:hover {
  border-color: var(--crimson-bright);
}

.vd-ep-btn.active {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-color: var(--gold-bright);
  color: #fff;
}

.vd-banner-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  min-height: 10px;
}

/* ─── Footer ─── */
.vd-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
  background: var(--bg-surface);
}

.vd-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.vd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.vd-footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Responsive Mobile Layout ─── */
@media (max-width: 900px) {
  .vd-header-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .vd-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }
  .vd-brand-text {
    font-size: 15px;
  }
  .vd-brand-text small {
    font-size: 7.5px;
    letter-spacing: 1.8px;
  }
  .vd-search {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  .vd-search input {
    padding: 7px 10px 7px 30px;
    font-size: 12px;
  }
  .vd-search-icon {
    left: 10px;
    width: 13px;
    height: 13px;
  }
  .vd-lang-select {
    padding: 6px 8px;
    font-size: 11px;
    max-width: 92px;
  }
  .vd-provider-scroll {
    padding: 6px 10px;
    gap: 6px;
  }
  .vd-prov-pill {
    padding: 4px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .vd-main {
    padding: 8px 8px 28px;
  }
  .vd-hero {
    grid-template-columns: 1fr 56px;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .vd-hero-badges {
    gap: 4px;
    margin-bottom: 4px;
  }
  .vd-badge-crimson,
  .vd-badge-gold,
  .vd-badge-glass {
    padding: 2px 7px;
    font-size: 9px;
  }
  .vd-hero-title {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vd-hero-desc,
  .vd-hero-actions .vd-btn-secondary {
    display: none;
  }
  .vd-btn-primary {
    padding: 6px 12px;
    font-size: 11px;
    gap: 5px;
  }
  .vd-hero-poster-card {
    width: 56px;
    border-radius: 8px;
    border-width: 1px;
  }
  .vd-hero-play-ring {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .vd-banner-slot {
    margin: 4px 0;
    min-height: 0;
  }
  .vd-section {
    margin-bottom: 16px;
  }
  .vd-section-head {
    margin-bottom: 8px;
  }
  .vd-section-title {
    font-size: 14.5px;
  }
  .vd-section-more,
  .vd-section-count {
    font-size: 11px;
  }
  /* 4-Column Compact Mobile Grid -> 8 to 12 Cards Visible Per Screen */
  .vd-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .vd-card {
    border-radius: 8px;
  }
  .vd-card-poster-wrap {
    aspect-ratio: 2 / 2.8;
  }
  .vd-card-provider {
    top: 4px;
    left: 4px;
    padding: 1.5px 4px;
    font-size: 7.5px;
    border-left-width: 2px;
    border-radius: 4px;
    max-width: calc(100% - 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vd-card-eps {
    bottom: 4px;
    right: 4px;
    padding: 1.5px 4px;
    font-size: 7.5px;
    border-radius: 4px;
  }
  .vd-card-play-btn {
    display: none;
  }
  .vd-card-body {
    padding: 5px 5px 6px;
    gap: 2px;
  }
  .vd-card-title {
    font-size: 10.5px;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    min-height: 25px;
  }
  .vd-card-meta {
    display: none;
  }
  .vd-detail-hero {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 12px;
  }
  .vd-detail-poster {
    max-width: 96px;
    margin: 0;
  }
  .vd-detail-title {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .vd-detail-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vd-ep-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .vd-ep-chip {
    padding: 8px 6px;
    font-size: 11px;
  }
  .vd-ep-badge {
    font-size: 8.5px;
    padding: 1px 4px;
  }
  .vd-player-body {
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .vd-cinema-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }
  .vd-stage-col {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
  }
  .vd-stage {
    aspect-ratio: unset !important;
    width: 100% !important;
    max-width: 100vw !important;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    border-radius: 0;
    border: none;
    margin: 0;
  }
  .vd-player-topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    width: 100%;
  }
  .vd-player-back {
    font-size: 13px;
    max-width: 50%;
  }
  .vd-ep-indicator {
    padding: 4px 8px;
    font-size: 11px;
  }
  .vd-sound-pill {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .vd-side-rail {
    right: 10px;
    bottom: 72px;
    gap: 8px;
  }
  .vd-rail-btn {
    width: 42px;
    height: 44px;
    border-radius: 12px;
    font-size: 13px;
  }
  .vd-rail-btn small {
    font-size: 9px;
  }
  .vd-controls-bar {
    padding: 12px 10px 8px;
    width: 100%;
    direction: ltr;
  }
  .vd-transport-row {
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }
  .vd-ctrl-sound {
    display: none;
  }
  .vd-ctrl-btn {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .vd-ctrl-select {
    padding: 3px 5px;
    font-size: 10.5px;
  }
  .vd-time {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .vd-action-bar {
    flex-shrink: 0;
    width: 100%;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    background: #040711;
  }
  .vd-action-btn {
    padding: 8px 6px;
    font-size: 11px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vd-sidebar-col {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    max-height: 75dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    transition: transform 0.28s ease;
  }
  .vd-sidebar-col.open {
    transform: translateY(0);
  }
  .vd-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ─── Full-Screen Browser & DNS AdBlocker Wall ─── */
.vd-adblock-wall {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 7, 17, 0.96);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vd-adblock-card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, #131c36 0%, #090e1d 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.65);
  border-radius: 24px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(124, 58, 237, 0.28);
  color: #f8fafc;
}

.vd-adblock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  border: 2px solid #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
}

.vd-adblock-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.vd-adblock-sub {
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.vd-adblock-steps {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vd-adblock-steps div strong {
  color: #22d3ee;
}

.vd-adblock-alert {
  font-size: 12.5px;
  font-weight: 700;
  color: #fb7185;
  margin-bottom: 12px;
  min-height: 18px;
}

.vd-adblock-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.vd-adblock-btn:hover {
  transform: translateY(-1px);
}

.vd-adblock-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
