/* ==========================================================================
   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;

  /* Inspo Neo-Noir Cinema Materiality & Measured Palette Tokens */
  --canvas-obsidian: #080a0f;
  --canvas-slate: #0c0d12;
  --canvas-sumi: #14151a;
  --canvas-elevated: #1a1c23;
  --accent-crimson-cinema: #e44c3c;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hairline-warm: rgba(228, 190, 146, 0.16);
  --section-rhythm-gap: clamp(72px, 8vw, 120px);

  /* 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;
  max-width: 100vw;
  overflow-x: hidden;
}

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;
  max-width: 100vw;
  overflow-x: hidden;
}

.cockpit-shell,
#cockpit-root {
  width: 100%;
  max-width: min(1720px, 100vw);
  min-width: 0;
  box-sizing: border-box;
}

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;
}

/* ==========================================================================
   SEO Full-Path + Cryptographic Referral Address Bar & Anti-Bot Badge
   ========================================================================== */
.seo-ref-address-bar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  height: 30px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin-top: 8px !important;
  padding: 0 4px 0 8px !important;
  border-radius: 8px !important;
  background: rgba(8, 10, 15, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
}

.seo-ref-lock-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  color: #10b981 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding-right: 6px !important;
  border-right: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.seo-ref-url-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #38bdf8 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
}

.seo-ref-antibot-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  color: #ffd700 !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  background: rgba(255, 215, 0, 0.1) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.seo-ref-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  background: rgba(96, 37, 255, 0.3) !important;
  border: 1px solid rgba(96, 37, 255, 0.6) !important;
  color: #f8fafc !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.seo-ref-copy-btn:hover {
  background: #6025ff !important;
  border-color: #38bdf8 !important;
}

/* ==========================================================================
   Vibrant Phosphor Duotone Icon System (.ph-duotone & Accent Glow Classes)
   ========================================================================== */
i.ph-duotone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.12em;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
}

.duotone-cyan {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.duotone-gold {
  color: #ffd700 !important;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.48));
}

.duotone-violet {
  color: #a855f7 !important;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.duotone-coral {
  color: #ff7168 !important;
  filter: drop-shadow(0 0 6px rgba(255, 113, 104, 0.48));
}

.duotone-emerald {
  color: #10b981 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.duotone-ai {
  color: #22d3ee !important;
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.62));
}

.storefront-tab-btn i.ph-duotone,
.az-filter-pill i.ph-duotone,
.swimlane-title i.ph-duotone {
  font-size: 1.14em;
  margin-right: 2px;
}

.storefront-tab-btn:hover i.ph-duotone,
.az-filter-pill:hover i.ph-duotone,
.netflix-card:hover i.ph-duotone {
  transform: scale(1.12);
}

/* ==========================================================================
   Kho Phim A–Z: Phim Người Thật vs. Phim AI Classification Bar & Endless Scroll
   ========================================================================== */
.az-content-type-segmented {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  flex-wrap: wrap;
}

.az-content-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.az-content-type-btn:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.1);
}

.az-content-type-btn.active {
  background: linear-gradient(135deg, rgba(96, 37, 255, 0.42), rgba(56, 189, 248, 0.28));
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
}

.az-content-type-btn[data-content-type="ai_drama"].active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(168, 85, 247, 0.38));
  border-color: #22d3ee;
  color: #ecfeff;
  box-shadow: 0 2px 14px rgba(34, 211, 238, 0.32);
}

.az-content-type-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.66rem;
  font-weight: 800;
  color: #38bdf8;
}

.swimlane-loop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  margin-left: 8px;
  vertical-align: middle;
}

.az-endless-scroll-bar {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(12, 13, 18, 0.92), rgba(15, 23, 42, 0.85));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.az-endless-status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.az-endless-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6025ff 0%, #0284c7 100%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.az-endless-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

/* Autoplay Glassmorphic Unmute Pill (Compact & Semi-Transparent) */
#dramaly-autoplay-unmute-pill {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 60 !important;
  background: rgba(8, 10, 15, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: rgba(241, 245, 249, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-size: 0.67rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

#dramaly-autoplay-unmute-pill:hover {
  background: rgba(8, 10, 15, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  transform: translateX(-50%) scale(1.03) !important;
}

/* ==========================================================================
   DRAMALY SITEMAP, LEGAL & ORIGINALS ARCHITECTURE (RULE 29 & INSPO CRAFT)
   ========================================================================== */

/* 1. Bento Layout Engine */
.sitemap-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  width: 100%;
  align-items: stretch;
}

@media (min-width: 992px) {
  .sitemap-bento-grid.bento-12-col {
    grid-template-columns: repeat(12, 1fr);
  }
  .bento-span-3  { grid-column: span 3; }
  .bento-span-4  { grid-column: span 4; }
  .bento-span-6  { grid-column: span 6; }
  .bento-span-8  { grid-column: span 8; }
  .bento-span-12 { grid-column: span 12; }
  .bento-row-2   { grid-row: span 2; }
}

/* 2. Bento Card (Obsidian Specular Depth) */
.sitemap-bento-card {
  position: relative;
  background: #0c0d12;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(20px, 2.8vw, 30px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 16px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.sitemap-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(228, 190, 146, 0.08), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.sitemap-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 190, 146, 0.35);
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.8),
              0 0 28px rgba(228, 190, 146, 0.22);
}

.sitemap-bento-card:hover::before {
  opacity: 1;
}

/* 3. Status Badge with Pulse & Reflective Border */
.sitemap-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f5f9;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  width: fit-content;
}

.sitemap-badge-glow .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  position: relative;
}

.sitemap-badge-glow .badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: sitemap-heartbeat 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.sitemap-badge-glow.badge-bronze {
  border-color: rgba(228, 190, 146, 0.35);
  color: #e4be92;
}

.sitemap-badge-glow.badge-bronze .badge-dot {
  background: #e4be92;
  box-shadow: 0 0 8px #e4be92;
}

.sitemap-badge-glow.badge-bronze .badge-dot::after {
  border-color: #e4be92;
}

@keyframes sitemap-heartbeat {
  0%   { transform: scale(0.85); opacity: 0.9; }
  70%  { transform: scale(2.2);  opacity: 0; }
  100% { transform: scale(2.2);  opacity: 0; }
}

/* 4. Legal Editorial Shell Layout */
.legal-editorial-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 860px) {
  .legal-editorial-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
}

/* 5. Sticky Editorial Sidebar */
.legal-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 12px;
}

.legal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-sidebar-link {
  position: relative;
  display: block;
  padding: 8px 14px 8px 18px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #94a3b8;
  text-decoration: none;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-sidebar-link:hover {
  color: #f8fafc;
  border-left-color: rgba(228, 190, 146, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

.legal-sidebar-link.is-active {
  color: #e4be92;
  font-weight: 600;
  border-left-color: #e4be92;
  background: linear-gradient(90deg, rgba(228, 190, 146, 0.09) 0%, transparent 100%);
}

/* 6. Legal Article Typography Tension */
.legal-article {
  color: #cbd5e1;
  font-size: clamp(1.0rem, 1.2vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.legal-article h1,
.legal-article h2,
.legal-article h3 {
  color: #f8fafc;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  scroll-margin-top: 96px;
}

.legal-article h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.2;
  margin-top: 0;
}

.legal-article h2 {
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.4em;
}

.legal-article h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.4;
}

.legal-article p {
  margin-bottom: 1.4em;
}

.legal-article ul,
.legal-article ol {
  margin-bottom: 1.6em;
  padding-left: 1.4em;
}

.legal-article li {
  margin-bottom: 0.6em;
}

/* 7. Zero-Card-Box Amber Callout */
.callout-amber {
  position: relative;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-left: 3px solid rgba(255, 215, 0, 0.85);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.callout-amber p,
.callout-amber span {
  margin: 0;
  color: #fef08a;
  font-size: 0.95em;
  line-height: 1.65;
}

.callout-amber strong {
  color: #ffffff;
  font-weight: 600;
}

/* 8. Cinematic Specimen Pillar Card (/originals) */
.specimen-pillar-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0c0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.specimen-pillar-card.aspect-portrait {
  aspect-ratio: 2 / 3;
}

.specimen-pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: 1;
}

.specimen-pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(228, 190, 146, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.specimen-pillar-card:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: rgba(228, 190, 146, 0.32);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8),
              0 0 32px rgba(228, 190, 146, 0.18);
}

.specimen-pillar-card:hover::after {
  opacity: 1;
}

.specimen-pillar-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.78) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.specimen-pillar-card:hover .specimen-pillar-media {
  transform: scale(1.05);
  filter: brightness(0.9) contrast(1.1);
}

.specimen-pillar-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0) 35%, rgba(12, 13, 18, 0.94) 100%);
  z-index: 1;
  pointer-events: none;
}

.specimen-pillar-content {
  position: relative;
  z-index: 2;
}





/* ==========================================================================
   DRAMALY UNIFIED DESIGN EXTENSIONS: HUMAN COGNITION & INSPO TASTE ENGINE
   Palette: Neo-Noir Obsidian (#080a0f / #0c0d12) & Warm Bronze Hairlines
   Architecture: 100svh Hero Folds, Thumb-Zone Ergonomics, 80-160px Section Rhythm
   ========================================================================== */

:root {
  /* --- Cognitive Flow Variables --- */
  --cognitive-reading-width: 72ch;
  --rhythm-section: clamp(72px, 8vw, 120px);
  --rhythm-section-lg: clamp(80px, 10vw, 160px);
  --thumb-zone-bottom: 24px;
  --ink-wipe-curve: cubic-bezier(0.16, 1, 0.3, 1);
  --touch-target-min: 48px;

  /* --- Neo-Noir Obsidian Palette & Bronze Accents --- */
  --obsidian-deep: #080a0f;
  --obsidian-surface: #0c0d12;
  --obsidian-elevated: #141722;
  --obsidian-float: #1a1e2c;
  --obsidian-glass: rgba(12, 13, 18, 0.82);
  --obsidian-glass-heavy: rgba(8, 10, 15, 0.94);

  --bronze-hairline: rgba(194, 139, 56, 0.18);
  --bronze-hairline-bright: rgba(212, 155, 67, 0.38);
  --bronze-glow: rgba(212, 155, 67, 0.32);
  --bronze-soft-fill: rgba(194, 139, 56, 0.06);

  --amber-core: #d49b43;
  --amber-bright: #f5b041;
  --amber-subtle: rgba(212, 155, 67, 0.15);

  --text-high-contrast: #f4f6fa;
  --text-primary: #e2e5ec;
  --text-secondary: #9fa6b8;
  --text-muted: #5e6678;

  /* --- Viewport & Elevational Physics --- */
  --hero-fold-height: 100svh;
  --dock-elevation-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.75),
                           0 0 1px 1px var(--bronze-hairline);
  --theater-elevation-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.9),
                              0 0 0 1px var(--bronze-hairline);
}

/* --------------------------------------------------------------------------
   1. COGNITIVE SECTION RHYTHM & VIEWPORT FOUNDATION
   -------------------------------------------------------------------------- */

.section-rhythm {
  padding-block: var(--rhythm-section);
}

.section-rhythm-lg {
  padding-block: var(--rhythm-section-lg);
}

.hero-cognitive-fold {
  min-height: var(--hero-fold-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-color: var(--obsidian-deep);
  border-bottom: 1px solid var(--bronze-hairline);
  overflow: clip;
}

/* --------------------------------------------------------------------------
   2. THUMB-ZONE MOBILE ERGONOMICS (.theater-thumb-zone)
   Ergonomically concentrated inside the natural lower 30% sweep zone.
   Guarantees 0% occlusion of player subtitle/caption display track.
   -------------------------------------------------------------------------- */

.theater-viewport-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--obsidian-deep);
  overflow: hidden;
}

/* Subtitle channel elevated safely above controls */
.theater-subtitle-track {
  position: absolute;
  bottom: calc(var(--thumb-zone-bottom) + 84px + env(safe-area-inset-bottom, 0px));
  left: 5%;
  right: 5%;
  pointer-events: none;
  z-index: 40;
  display: flex;
  justify-content: center;
  text-align: center;
}

.theater-subtitle-track p {
  background: var(--obsidian-glass-heavy);
  color: var(--text-high-contrast);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.015em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 60ch;
  margin: 0;
}

/* Bottom 30% floating player control cradle */
.theater-thumb-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px calc(var(--thumb-zone-bottom) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    rgba(8, 10, 15, 0.95) 0%,
    rgba(8, 10, 15, 0.72) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 50;
}

.theater-thumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding: 8px 12px;
  background-color: var(--obsidian-glass);
  border: 1px solid var(--bronze-hairline);
  border-radius: 9999px;
  box-shadow: var(--theater-elevation-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
}

/* Tactile touch targets compliant with 48px minimum ergonomic bounding */
.theater-thumb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding: 0 14px;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color 0.2s var(--ink-wipe-curve),
    border-color 0.2s var(--ink-wipe-curve),
    transform 0.14s var(--ink-wipe-curve),
    color 0.2s ease;
}

.theater-thumb-btn:hover {
  background-color: var(--obsidian-float);
  border-color: var(--bronze-hairline-bright);
  color: var(--amber-core);
}

.theater-thumb-btn:active {
  transform: scale(0.95);
  background-color: var(--obsidian-elevated);
}

.theater-thumb-btn.play-primary {
  background-color: var(--amber-core);
  color: var(--obsidian-deep);
  border-color: var(--amber-bright);
  box-shadow: 0 0 18px var(--bronze-glow);
}

.theater-thumb-btn.play-primary:hover {
  background-color: var(--amber-bright);
  transform: scale(1.02);
}

.theater-thumb-btn.play-primary:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   3. MICRO-INTERACTION INK-WIPE BUTTON STATES (.btn-ink-wipe)
   Radial ink expansion overlay + responsive scale(0.97) tactile depression
   -------------------------------------------------------------------------- */

.btn-ink-wipe {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--text-high-contrast);
  background-color: var(--obsidian-surface);
  border: 1px solid var(--bronze-hairline);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
  transition:
    transform 0.18s var(--ink-wipe-curve),
    border-color 0.3s var(--ink-wipe-curve),
    box-shadow 0.3s var(--ink-wipe-curve);
}

/* Expanding radial ink wave overlay */
.btn-ink-wipe::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(212, 155, 67, 0.28) 0%,
    rgba(212, 155, 67, 0.08) 45%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s var(--ink-wipe-curve),
    opacity 0.4s var(--ink-wipe-curve);
  z-index: 1;
}

.btn-ink-wipe > * {
  position: relative;
  z-index: 2;
}

.btn-ink-wipe:hover {
  border-color: var(--bronze-hairline-bright);
  box-shadow: 0 4px 20px -2px var(--bronze-glow);
}

.btn-ink-wipe:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.btn-ink-wipe:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-ink-wipe:active::before {
  transform: translate(-50%, -50%) scale(1.15);
  background: radial-gradient(
    circle,
    rgba(212, 155, 67, 0.42) 0%,
    rgba(212, 155, 67, 0.14) 50%,
    transparent 75%
  );
  opacity: 1;
  transition-duration: 0.15s;
}

/* --------------------------------------------------------------------------
   4. COGNITIVE READING SHELL (.cognitive-prose)
   Optimized 72ch saccade span, 1.8 line height, structured scanning headers,
   and warm amber pull-quote accents.
   -------------------------------------------------------------------------- */

.cognitive-prose {
  max-width: var(--cognitive-reading-width);
  margin-inline: auto;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.003em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.cognitive-prose p {
  margin-block-start: 0;
  margin-block-end: 1.75em;
}

.cognitive-prose strong {
  color: var(--text-high-contrast);
  font-weight: 600;
}

/* High-Scannability Section Anchors */
.cognitive-prose h1,
.cognitive-prose h2,
.cognitive-prose h3,
.cognitive-prose h4 {
  color: var(--text-high-contrast);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-block-start: 2.2em;
  margin-block-end: 0.8em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.cognitive-prose h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--bronze-hairline);
}

.cognitive-prose h3 {
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  color: var(--amber-core);
}

/* Subtle Amber Pull-Quote with Bronze Hairline */
.cognitive-prose blockquote,
.cognitive-prose .cognitive-quote {
  position: relative;
  margin: 2.6em 0;
  padding: 24px 32px;
  background: linear-gradient(
    90deg,
    var(--amber-subtle) 0%,
    var(--obsidian-surface) 35%,
    var(--obsidian-surface) 100%
  );
  border: 1px solid var(--bronze-hairline);
  border-left: 3px solid var(--amber-core);
  border-radius: 0 12px 12px 0;
  font-size: 1.125em;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-high-contrast);
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.4);
}

.cognitive-prose blockquote::before,
.cognitive-prose .cognitive-quote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 12px;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--amber-core);
  opacity: 0.22;
  pointer-events: none;
}

.cognitive-prose blockquote cite,
.cognitive-prose .cognitive-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-core);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. FLOATING COGNITIVE ROUTE DOCK (.cognitive-route-dock)
   Low-profile fixed bottom 14-route orchestrator with frictionless micro-tooltips,
   active route bronze glow, and smooth horizontal swipe responsiveness.
   -------------------------------------------------------------------------- */

.cognitive-route-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background-color: var(--obsidian-glass-heavy);
  border: 1px solid var(--bronze-hairline);
  border-radius: 9999px;
  box-shadow: var(--dock-elevation-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  max-width: min(94vw, 760px);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.cognitive-route-dock::-webkit-scrollbar {
  display: none; /* WebKit */
}

/* Glassmorphism Menubar Track */
.cognitive-dock-track {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dock Navigation Item */
.cognitive-dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  outline: none;
  touch-action: manipulation;
  transition:
    color 0.2s var(--ink-wipe-curve),
    background-color 0.2s var(--ink-wipe-curve),
    transform 0.16s var(--ink-wipe-curve);
}

.cognitive-dock-item:hover {
  color: var(--text-high-contrast);
  background-color: var(--obsidian-float);
}

.cognitive-dock-item:active {
  transform: scale(0.94);
}

.cognitive-dock-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cognitive-dock-label {
  font-size: 0.8rem;
  margin-left: 5px;
  letter-spacing: 0.01em;
}

/* Active Route State Glow */
.cognitive-dock-item.is-active {
  color: var(--amber-core);
  background-color: var(--obsidian-surface);
  border: 1px solid var(--bronze-hairline-bright);
  box-shadow:
    inset 0 0 12px var(--bronze-soft-fill),
    0 0 14px -2px var(--bronze-glow);
  font-weight: 600;
}

.cognitive-dock-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--amber-core);
  box-shadow: 0 0 6px var(--amber-core);
}

/* Micro-Tooltip popping above dock */
.cognitive-dock-item[data-tooltip] {
  position: relative;
}

.cognitive-dock-item[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.96);
  padding: 5px 10px;
  background-color: var(--obsidian-surface);
  color: var(--text-high-contrast);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid var(--bronze-hairline-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s var(--ink-wipe-curve),
    transform 0.16s var(--ink-wipe-curve),
    visibility 0.16s;
  z-index: 1010;
}

.cognitive-dock-item[data-tooltip]:hover::before,
.cognitive-dock-item[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Responsive boundary guard for viewports <= 640px */
@media (max-width: 640px) {
  .theater-thumb-bar {
    border-radius: 20px;
    padding: 6px 10px;
  }

  .cognitive-route-dock {
    bottom: 12px;
    padding: 4px 6px;
    max-width: 96vw;
    border-radius: 24px;
  }

  .cognitive-dock-item {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .cognitive-dock-label {
    display: none;
  }

  .cognitive-dock-item.is-active .cognitive-dock-label {
    display: inline;
  }
}

/* ==========================================================================
   INSPO CINEMA ENTERTAINMENT & AUTO-BINGE HUD (ZERO-CLICK CONTINUOUS STREAMING)
   ========================================================================== */
.player-stage {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.player-stage:has(#player-locked-episode-overlay[style*="display: flex"]),
.player-stage:has(#player-locked-episode-overlay[style*="display:flex"]) {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75), 0 0 50px rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.auto-next-banner {
  position: absolute;
  bottom: 52px;
  left: 10px;
  right: 58px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.38);
  font-family: var(--font-sans, sans-serif);
  font-size: 0.76rem;
  color: #FFFFFF;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 22;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.16);
  animation: dramalyFadeInUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auto-next-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auto-next-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auto-next-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.auto-next-title-row strong {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffd700;
}

.auto-next-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-auto-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-auto-next-play {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-auto-next-play:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

.btn-auto-next-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-auto-next-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

#btn-auto-next-toggle.active {
  background: rgba(255, 215, 0, 0.14) !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
  color: #ffd700 !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25) !important;
}

