/* ==========================================================================
   Dramaly Unified Neo-Noir Obsidian Design System
   Shared Master Stylesheet for all user-facing HTML surfaces:
   - Homepage (/) & Theater (/?view=theater)
   - Canonical Drama Landing Pages (/drama/{series_key})
   - Interactive Visual Sitemap (/sitemap) & Legal (/terms, /privacy, /refund-policy, /aup, /originals)
   - Error & System Pages (404, 403, 500)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Neo-Noir Obsidian Foundations */
  --bg-obsidian: #080a0f;
  --bg-obsidian-elevated: #0c0d12;
  --bg: #080a0f;
  --surface: #0c0d12;

  /* Dramaly Brand Accents */
  --dramaly-violet: #6025FF;
  --dramaly-coral: #FF7168;
  --accent-cyan: #38bdf8;
  --accent-gold: #ffd700;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;

  /* Typography & Readable Contrast */
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Rule 29 Hairlines & Translucency (Zero-Card-Box Paradigm) */
  --hairline-cyan: rgba(56, 189, 248, 0.18);
  --hairline-subtle: rgba(148, 163, 184, 0.14);
  --hairline-gold: rgba(255, 215, 0, 0.22);
  --hairline-violet: rgba(96, 37, 255, 0.25);

  /* Fonts */
  --font-ui: "Be Vietnam Pro", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Be Vietnam Pro", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Consolas, monospace;

  /* Spacing, Radius & Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;

  /* Elevation Glows (Subtle, never washed out) */
  --glow-cyan: 0 0 24px rgba(56, 189, 248, 0.16);
  --glow-violet: 0 0 28px rgba(96, 37, 255, 0.22);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.18);
}

/* ── Reset & Canvas Base ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color-scheme: dark;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

a:hover {
  color: #fff;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

/* ── Rule 29: Zero-Card-Box-Background & Borderless-Canvas Surfaces ────────── */
.dramaly-surface {
  background: rgba(12, 13, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.dramaly-surface:hover {
  border-color: var(--hairline-cyan);
}

/* ── Unified Sticky Navigation Bar (.site-nav) ────────────────────────────── */
.site-nav {
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(96, 37, 255, 0.15);
}

.nav-link.nav-active {
  color: var(--accent-cyan) !important;
  background: rgba(56, 189, 248, 0.1);
  border-bottom: 2px solid var(--accent-cyan);
}

.site-nav-lang-picker {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-select-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--duration-fast) ease;
  font-family: var(--font-ui);
}

.lang-select-pill:hover,
.lang-select-pill:focus {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.lang-select-pill option {
  background: var(--bg-obsidian-elevated);
  color: var(--text-primary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .site-nav {
    overflow-x: auto;
    max-width: 100vw;
    padding: 0 12px;
    gap: 2px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .nav-logo span {
    display: none;
  }
}

/* ── Canonical Drama Landing Page & SEO Hero (.seo-card) ─────────────────── */
.seo-card {
  max-width: 740px;
  margin: 36px auto;
  width: calc(100% - 32px);
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.88) 0%, rgba(8, 10, 15, 0.98) 100%);
  border: 1px solid var(--hairline-cyan);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.08);
}

.seo-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #000;
}

.seo-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.seo-card:hover .seo-poster {
  transform: scale(1.05);
}

.seo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.1) 0%, rgba(8, 10, 15, 0.4) 50%, rgba(8, 10, 15, 0.98) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  gap: 12px;
}

.badge-code {
  background: rgba(255, 215, 0, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.38);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.seo-body {
  padding: 28px 24px 32px;
}

.seo-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.synopsis {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.38);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.55);
}

/* ── Interactive Visual Sitemap & Tree Layout (.sitemap-*) ───────────────── */
.sitemap-hero {
  text-align: center;
  padding: 64px 24px 44px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(96, 37, 255, 0.22) 0%, transparent 70%);
  border-bottom: 1px solid var(--hairline-subtle);
}

.sitemap-hero .sitemap-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--hairline-cyan);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 16px;
  background: rgba(56, 189, 248, 0.06);
}

.sitemap-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 35%, var(--accent-cyan) 80%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.sitemap-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.sitemap-tree {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  width: 100%;
}

.sitemap-section {
  margin-bottom: 40px;
  padding: 26px;
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--radius-lg);
  background: rgba(12, 13, 18, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal) ease;
}

.sitemap-section:hover {
  border-color: var(--hairline-cyan);
}

.sitemap-section-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sitemap-card {
  padding: 16px 18px;
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--radius-md);
  background: rgba(8, 10, 15, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.sitemap-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(12, 13, 18, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.sitemap-card a.card-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
}

.sitemap-card a.card-title:hover {
  color: var(--accent-cyan);
}

.sitemap-card p.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sitemap-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  font-size: 0.78rem;
}

.sitemap-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ── Badges & Status Indicators ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.badge-green,
.badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-violet {
  background: rgba(96, 37, 255, 0.22);
  color: #a78bfa;
  border: 1px solid rgba(96, 37, 255, 0.4);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-crimson {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ── Unified Footer (.dramaly-unified-footer & footer) ───────────────────── */
footer,
.dramaly-unified-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline-subtle);
  padding: 36px 24px 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(8, 10, 15, 0.95);
}

footer a,
.dramaly-unified-footer a {
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}

footer a:hover,
.dramaly-unified-footer a:hover {
  color: var(--accent-cyan);
}

.footer-links {
  margin: 14px 0 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.security-badge-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.security-badge-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Code, Tables & Legal Utilities ───────────────────────────────────────── */
pre, code {
  font-family: var(--font-mono);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 20px 0;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(96, 37, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline-subtle);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: top;
  color: var(--text-primary);
}

.data-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.highlight {
  border-left: 3px solid var(--dramaly-violet);
  padding: 14px 18px;
  margin: 20px 0;
  background: rgba(96, 37, 255, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}

.highlight strong {
  color: var(--accent-cyan);
}

/* ── Zero-KYC Digital Product Storefront & Luxury Collectible Cards ───────── */
.dp-storefront-modal-sheet {
  display: block !important;
  max-width: 1080px !important;
  width: 96% !important;
  padding: 26px 28px !important;
  background: rgba(8, 10, 15, 0.96) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 36px rgba(56, 189, 248, 0.12) !important;
  max-height: 92vh;
  overflow-y: auto;
}

.dp-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: radial-gradient(circle at 0% 0%, rgba(96, 37, 255, 0.22) 0%, rgba(56, 189, 248, 0.08) 45%, rgba(12, 13, 18, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.dp-hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dp-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #e2e8f0;
}

.dp-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
  flex-shrink: 0;
}

.dp-category-bar::-webkit-scrollbar {
  display: none;
}

.dp-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.85);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.dp-cat-pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.dp-cat-pill.active {
  background: linear-gradient(135deg, rgba(96, 37, 255, 0.35), rgba(56, 189, 248, 0.28));
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

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

.dp-premium-card {
  --dp-accent: #38bdf8;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: radial-gradient(140% 90% at 0% 0%, rgba(56, 189, 248, 0.09) 0%, rgba(12, 13, 18, 0.94) 55%, rgba(8, 10, 15, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.dp-premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dp-accent, #38bdf8), rgba(255, 215, 0, 0.85), transparent);
  opacity: 0.85;
}

.dp-premium-card:hover {
  transform: translateY(-4px);
  border-color: var(--dp-accent, #38bdf8);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.16);
}

.dp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dp-icon-pedestal {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), rgba(8, 10, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.5);
}

.dp-icon-pedestal img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.dp-premium-card:hover .dp-icon-pedestal img {
  transform: scale(1.08) rotate(-2deg);
}

.dp-format-chip {
  position: absolute;
  bottom: -7px;
  left: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #080a0f;
  color: var(--dp-accent, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.dp-price-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.dp-ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.14);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.36);
}

.dp-ton-price {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dp-ton-price .ton-unit {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
}

.dp-usd-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.dp-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin: 4px 0 3px;
}

.dp-card-tagline {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}

.dp-card-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.48;
  margin-bottom: 8px;
}

.dp-feature-list {
  list-style: none;
  padding: 10px 12px;
  margin: 0;
  border-radius: 10px;
  background: rgba(8, 10, 15, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dp-feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.35;
}

.dp-feature-item .dp-check {
  color: #10b981;
  font-weight: 900;
  flex-shrink: 0;
}

.dp-cta-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.dp-btn-primary-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6025FF 0%, #0284c7 55%, #0ea5e9 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.dp-btn-primary-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.38);
}

.dp-rail-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}

.dp-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.75);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dp-rail-btn.rail-ton {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.dp-rail-btn.rail-ton:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
}

.dp-rail-btn.rail-stars {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.dp-rail-btn.rail-stars:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: #fbbf24;
}

.dp-rail-btn.rail-coins {
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dp-rail-btn.rail-coins:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #34d399;
}

.dp-ecosystem-strip {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(12, 13, 18, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .dp-storefront-modal-sheet {
    padding: 16px 14px !important;
    width: 98% !important;
  }
  .dp-products-grid {
    grid-template-columns: 1fr;
  }
  .dp-hero-banner {
    padding: 14px;
  }
}


/* ==========================================================================
   2-Zone Episode Unlock Context Card & Full-Width Action CTAs
   Anti-Fraud Facebook & Telegram Viral Escrow Drawer
   ========================================================================== */

/* 1. 2-Zone Episode Unlock Context Card (.checkout-context-card-v2) */
.checkout-context-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(155deg, rgba(16, 20, 34, 0.94) 0%, rgba(8, 10, 15, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.checkout-media-header-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.checkout-poster-frame {
  position: relative;
  width: 74px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.42);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.checkout-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-poster-ep-pill {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  text-align: center;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(8, 10, 15, 0.88);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.checkout-media-meta-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.checkout-meta-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checkout-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
}

/* 2. Full-Width 100% Span High-Converting Action CTA Stack (.checkout-action-cta-stack & .checkout-cta-split-btn) */
.checkout-action-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.checkout-cta-split-btn {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 10px 13px !important;
  border-radius: 11px !important;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  position: relative;
  overflow: hidden;
}

.checkout-cta-split-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.checkout-cta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.checkout-cta-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.checkout-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.checkout-cta-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.checkout-cta-sub {
  font-size: 0.67rem;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.2;
}

.checkout-cta-right-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Variant 1 (.cta-gold-unlock) */
.cta-gold-unlock {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 55%, #d97706 100%) !important;
  color: #080a0f !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32);
}

.cta-gold-unlock .checkout-cta-icon {
  background: rgba(8, 10, 15, 0.16);
  color: #080a0f;
}

.cta-gold-unlock .checkout-cta-right-pill {
  background: #080a0f;
  color: #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Variant 2 (.cta-emerald-sponsor) */
.cta-emerald-sponsor {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #0d9488 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(110, 231, 183, 0.48) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.cta-emerald-sponsor .checkout-cta-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.cta-emerald-sponsor .checkout-cta-right-pill {
  background: rgba(8, 10, 15, 0.48);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.45);
}

/* Variant 3 (.cta-facebook-viral) */
.cta-facebook-viral {
  background: linear-gradient(135deg, #1877F2 0%, #4f46e5 55%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.32);
}

.cta-facebook-viral .checkout-cta-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.cta-facebook-viral .checkout-cta-right-pill {
  background: #ffd700;
  color: #080a0f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 3. Anti-Fraud / Anti-"Share-then-Delete" Verification Drawer (.viral-escrow-drawer) */
.viral-escrow-drawer {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.viral-escrow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.viral-escrow-step {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.66rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.viral-escrow-step strong {
  display: block;
  color: #38bdf8;
  font-size: 0.68rem;
  margin-bottom: 2px;
}

.viral-escrow-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-fb-share-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #1877F2;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.btn-tg-share-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #26A5E4;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}


/* ==========================================================================
   Theater View (9:16 Vertical Cinema UI) - Smart Layout & Icon-First Controls
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Single-Row Icon-First Cinema Control Dock */
.cinema-control-dock {
  padding: 7px 10px !important;
  border-radius: 12px !important;
  background: rgba(12, 13, 18, 0.94) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  margin-top: 8px !important;
}

.cinema-dock-main-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.cinema-dock-main-row::-webkit-scrollbar {
  display: none !important;
}

.cinema-dock-main-row > div {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.dock-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.dock-pill-btn.dock-icon-only {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
}

.dock-segmented-group {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 2px !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

.dock-seg-item {
  height: 28px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Single-Row Series Action Toolbar */
.theater-action-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.theater-action-toolbar .btn-action {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.theater-action-toolbar .btn-icon-square {
  width: 36px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  font-size: 0.96rem !important;
}

/* Smart Numeric + Corner-Icon Episode Matrix */
#episode-matrix-grid.episode-matrix {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)) !important;
  gap: 7px !important;
  max-height: 320px !important;
}

#episode-matrix-grid .ep-tile {
  position: relative !important;
  height: 42px !important;
  padding: 0 4px !important;
  border-radius: 9px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-display) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

#episode-matrix-grid .ep-tile .ep-num-label {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
}

#episode-matrix-grid .ep-tile .ep-badge {
  position: absolute !important;
  top: 3px !important;
  right: 4px !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

/* Strict 1-Line Ellipsis on Trending Sidebar & Headers */
.trending-rank-item {
  display: grid !important;
  grid-template-columns: 22px 44px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 7px 8px !important;
}

.trending-item-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  display: block !important;
}

.trending-item-meta-line {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.68rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 3px !important;
}
