:root {
  --cd-bg: #080A0F;
  --cd-surface: #10141E;
  --cd-surface-2: #161C2A;
  --cd-surface-3: #1E2638;
  --cd-gold: #F5C451;
  --cd-gold-hover: #FFD266;
  --cd-gold-deep: #C98515;
  --cd-crimson: #E11D48;
  --cd-cyan: #38BDF8;
  --cd-emerald: #34D399;
  --cd-text: #F1F5F9;
  --cd-muted: #94A3B8;
  --cd-dim: #64748B;
  --cd-border: rgba(255, 255, 255, 0.09);
  --cd-radius: 16px;
  --cd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cd-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --cd-ease-cinema: cubic-bezier(0.76, 0, 0.24, 1);
  --plyr-font-family: var(--cd-font);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: var(--cd-font);
}

body.cd-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--cd-bg);
  color: var(--cd-text);
  font-family: var(--cd-font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -0.006em;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.cd-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 1024px) {
  .cd-container { padding: 0 1.5rem; }
}
@media (max-width: 640px) {
  .cd-container { padding: 0 1rem; }
}

.cd-glass {
  background: rgba(16, 20, 30, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--cd-border);
}

.cd-art-svg, .cd-art-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==================== NAVBAR ==================== */
.cd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: linear-gradient(180deg, rgba(8,10,15,0.95) 0%, rgba(8,10,15,0.68) 70%, transparent 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.cd-header.is-overlay {
  margin-bottom: -72px;
}

.cd-header.is-scrolled {
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--cd-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.cd-header .cd-container {
  max-width: 1840px;
  padding: 0 clamp(0.85rem, 2vw, 2.25rem);
}

.cd-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.6rem, 1.1vw, 1.4rem);
}

.cd-header-left {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.1vw, 1.4rem);
  flex: 1 1 280px;
  min-width: 265px;
  max-width: 520px;
}

.cd-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cd-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cd-gold), var(--cd-gold-deep));
  padding: 1.5px;
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.32);
  transition: transform 0.25s ease;
}

.cd-brand:hover .cd-brand-mark {
  transform: scale(1.06);
}

.cd-brand-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 10.5px;
  background: #0B0E17;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-gold);
}

.cd-brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cd-brand-title span {
  color: var(--cd-gold);
}

.cd-brand-sub {
  font-size: 0.75rem;
  color: var(--cd-muted);
  margin: 0;
}

/* Search Box */
.cd-search-wrap {
  position: relative;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 340px;
}

.cd-search-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: all 0.2s ease;
}

.cd-search-form:focus-within {
  background: #121726;
  border-color: rgba(245, 196, 81, 0.65);
}

.cd-search-input {
  background: transparent;
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  width: 100%;
  font-size: 0.85rem;
  color: #fff;
}

.cd-search-input::placeholder {
  color: var(--cd-muted);
}

.cd-search-kbd {
  font-size: 0.75rem;
  color: var(--cd-muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 0 0.38rem;
}

.cd-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  max-height: 390px;
  overflow-y: auto;
  z-index: 60;
  transform-origin: top center;
  animation: cdDropdownIn 0.24s var(--cd-ease) backwards;
}

@keyframes cdDropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.cd-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}

.cd-search-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cd-search-thumb {
  width: 40px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--cd-border);
}

/* Nav Links & Dropdown */
.cd-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(0.15rem, 0.7vw, 0.95rem);
  flex: 1 1 auto;
  min-width: max-content;
  font-size: 0.85rem;
  font-weight: 600;
}

.cd-nav-item {
  position: relative;
}

.cd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.42rem 0.52rem;
  border-radius: 10px;
  color: #E2E8F0;
  background: transparent;
  border: 0;
  transition: color 0.22s var(--cd-ease), background 0.22s var(--cd-ease), transform 0.22s var(--cd-ease);
  white-space: nowrap;
}

.cd-nav-link svg {
  transition: transform 0.26s var(--cd-ease);
}

.cd-nav-item:hover .cd-nav-link svg {
  transform: rotate(180deg);
}

.cd-nav-link:hover, .cd-nav-link.active {
  color: var(--cd-gold);
  background: rgba(255, 255, 255, 0.06);
}

.cd-live-pill {
  background: var(--cd-crimson);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
  line-height: 1.2;
}

.cd-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.26s var(--cd-ease), transform 0.28s var(--cd-ease), visibility 0.26s ease;
  z-index: 60;
}

.cd-dropdown-panel.cd-dropdown-right {
  left: auto;
  right: 0;
  transform-origin: top right;
}

.cd-nav-item:hover .cd-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cd-dropdown-box {
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: grid;
  gap: 0.35rem;
}

.cd-dropdown-box.cols-3 {
  width: 380px;
  grid-template-columns: repeat(3, 1fr);
}

.cd-dropdown-box.cols-2 {
  width: 260px;
  grid-template-columns: repeat(2, 1fr);
}

.cd-dropdown-link {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #CBD5E1;
  transition: background 0.2s var(--cd-ease), color 0.2s var(--cd-ease), transform 0.2s var(--cd-ease);
}

.cd-dropdown-link:hover {
  background: rgba(245, 196, 81, 0.15);
  color: var(--cd-gold);
  transform: translateX(3px);
}

/* Header Right Actions */
.cd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cd-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.25rem;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #F1F5F9;
  transition: background 0.25s var(--cd-ease), border-color 0.25s var(--cd-ease), color 0.25s var(--cd-ease), transform 0.22s var(--cd-ease), box-shadow 0.25s var(--cd-ease);
}

.cd-btn-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.cd-btn-pill:active {
  transform: scale(0.96);
}

.cd-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1.45rem;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--cd-gold), #E0A122);
  color: #080A0F;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.3);
  transition: transform 0.25s var(--cd-ease), box-shadow 0.28s var(--cd-ease), filter 0.25s var(--cd-ease);
}

.cd-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(245, 196, 81, 0.54);
  filter: brightness(1.04);
}

.cd-btn-gold:active {
  transform: translateY(0) scale(0.97);
}

.cd-header-actions .cd-btn-pill,
.cd-header-actions .cd-btn-gold {
  padding: 0.48rem 1rem;
  min-height: 38px;
  font-size: 0.82rem;
}

.cd-account-pill {
  max-width: 146px;
}

.cd-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--cd-border);
  align-items: center;
  justify-content: center;
}

@media (max-width: 1480px) {
  .cd-brand-sub { display: none; }
  .cd-header-left { min-width: 245px; }
  .cd-nav { gap: 0.15rem; font-size: 0.8125rem; }
  .cd-nav-link { padding: 0.38rem 0.44rem; gap: 0.2rem; }
  .cd-header-actions { gap: 0.45rem; }
  .cd-btn-pill, .cd-btn-gold { padding: 0.44rem 0.78rem; font-size: 0.8rem; }
  .cd-account-pill { max-width: 128px; }
}
@media (max-width: 1320px) {
  .cd-hide-lg { display: none !important; }
}
@media (max-width: 1260px) {
  .cd-nav { display: none; }
  .cd-mobile-toggle { display: inline-flex; }
  .cd-header-left { max-width: none; }
  .cd-search-wrap { max-width: 440px; }
}
@media (max-width: 768px) {
  .cd-header-left { min-width: 0; }
  .cd-search-wrap { display: none; min-width: 0; }
  .cd-hide-sm { display: none !important; }
}

/* ==================== HERO SHOWCASE ==================== */
.cd-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.cd-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.45s var(--cd-ease), transform 0.65s var(--cd-ease);
  animation: cdKenBurns 22s ease-in-out infinite;
}

@keyframes cdKenBurns {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.06) translate3d(-1%, -0.5%, 0); }
  100% { transform: scale(1) translate3d(0,0,0); }
}

.cd-hero-vignette-x {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #080A0F 0%, rgba(8,10,15,0.82) 48%, transparent 100%);
}

.cd-hero-vignette-y {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #080A0F 0%, rgba(8,10,15,0.35) 55%, rgba(8,10,15,0.62) 100%);
}

.cd-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .cd-hero { min-height: 560px; padding-bottom: 2.5rem; }
  .cd-hero-content { flex-direction: column; align-items: flex-start; }
}

.cd-hero-info {
  max-width: 660px;
  transition: opacity 0.38s var(--cd-ease), transform 0.42s var(--cd-ease);
}

.cd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.35);
  color: var(--cd-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cd-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cd-gold);
  animation: cdPulse 1.8s infinite;
}

@keyframes cdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.cd-hero-title {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.85);
}

.cd-hero-en {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cd-gold);
}

.cd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.cd-meta-imdb {
  background: var(--cd-gold);
  color: #080A0F;
  padding: 0.26rem 0.6rem;
  border-radius: 6px;
  font-weight: 800;
}

.cd-meta-age {
  background: #fff;
  color: #080A0F;
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
}

.cd-meta-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
}

.cd-meta-4k {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7DD3FC;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
}

.cd-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cd-genre-chip {
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cd-genre-chip:hover {
  border-color: var(--cd-gold);
  color: var(--cd-gold);
}

.cd-hero-desc {
  margin: 0.9rem 0 0;
  color: #CBD5E1;
  font-size: 0.95rem;
  max-width: 580px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.cd-play-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.7rem 0.5rem 0.5rem;
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cd-gold), #E0A122);
  color: #080A0F;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 32px rgba(245, 196, 81, 0.45);
  transition: transform 0.28s var(--cd-ease), box-shadow 0.28s var(--cd-ease), filter 0.28s var(--cd-ease);
}

.cd-play-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 44px rgba(245, 196, 81, 0.68);
  filter: brightness(1.04);
}

.cd-play-cta:active {
  transform: scale(0.98);
}

.cd-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #080A0F;
  color: var(--cd-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s var(--cd-ease);
}

.cd-play-cta:hover .cd-play-circle {
  transform: scale(1.06);
}

.cd-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--cd-ease), border-color 0.25s var(--cd-ease), transform 0.25s var(--cd-ease);
}

.cd-circle-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(245, 196, 81, 0.5);
  transform: translateY(-2px) scale(1.06);
}

.cd-circle-btn:active {
  transform: scale(0.95);
}

.cd-circle-btn.is-fav {
  background: rgba(225, 29, 72, 0.22);
  border-color: var(--cd-crimson);
  color: #FB7185;
}

/* Bottom-right Thumbnail Strip */
.cd-hero-thumbs-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .cd-hero-thumbs-wrap { align-items: flex-start; }
}

.cd-hero-thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.cd-hero-thumb {
  position: relative;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  opacity: 0.68;
  flex-shrink: 0;
  padding: 0;
  background: #0E121B;
  transition: transform 0.34s var(--cd-ease), opacity 0.28s var(--cd-ease), border-color 0.28s var(--cd-ease), box-shadow 0.34s var(--cd-ease);
}

.cd-hero-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cd-hero-thumb.active {
  border-color: var(--cd-gold);
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.48);
}

.cd-hero-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--cd-gold);
  animation: cdProgress 8s linear forwards;
}

@keyframes cdProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ==================== MAIN SECTIONS ==================== */
.cd-main {
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.cd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cd-section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.cd-section-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.cd-section-more:hover { color: var(--cd-gold); }

/* Topic Cards ("Bạn đang quan tâm gì?") */
.cd-topics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1200px) { .cd-topics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) { .cd-topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cd-topic-card {
  position: relative;
  min-height: 112px;
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.38s var(--cd-ease), border-color 0.32s var(--cd-ease), box-shadow 0.38s var(--cd-ease);
}

.cd-topic-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--cd-gold);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.72), 0 0 22px -6px rgba(245, 196, 81, 0.3);
}

.cd-topic-card:active {
  transform: translateY(-2px) scale(0.985);
}

.cd-topic-card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.48s var(--cd-ease), background 0.38s var(--cd-ease);
}

.cd-topic-card:hover::after {
  transform: scale(1.45);
  background: rgba(245, 196, 81, 0.14);
}

.cd-topic-name { font-size: 0.95rem; font-weight: 800; color: #fff; line-height: 1.3; z-index: 1; }
.cd-topic-sub { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.75); z-index: 1; }

.topic-crimson { background: linear-gradient(135deg, #2A101E, #451226 55%, #120A10); }
.topic-gold { background: linear-gradient(135deg, #29200C, #4D3812 55%, #120E08); }
.topic-emerald { background: linear-gradient(135deg, #0C261E, #134234 55%, #08120F); }
.topic-violet { background: linear-gradient(135deg, #1C1236, #2F1D5C 55%, #0D0A1A); }
.topic-blood { background: linear-gradient(135deg, #2B0C14, #4A1120 55%, #12080B); }
.topic-cyan { background: linear-gradient(135deg, #0D2136, #163A5E 55%, #08101A); }
.topic-slate { background: linear-gradient(135deg, #171C28, #22293B 55%, #0E1118); }

/* 3-Row Country Showcase Block */
.cd-countries-panel {
  border-radius: 24px;
  background: linear-gradient(180deg, #111624 0%, #0B0E17 100%);
  border: 1px solid var(--cd-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cd-country-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.cd-country-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
}

@media (max-width: 1100px) {
  .cd-country-row { grid-template-columns: 1fr; gap: 1rem; }
  .cd-country-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cd-country-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cd-country-heading {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-kr { background-image: linear-gradient(90deg, #A5B4FC, #38BDF8); }
.grad-cn { background-image: linear-gradient(90deg, #FDE68A, #F59E0B); }
.grad-us { background-image: linear-gradient(90deg, #FDA4AF, #E11D48); }

/* Movie Cards (Wide & Portrait) */
.cd-card {
  display: block;
  transition: transform 0.42s var(--cd-ease), opacity 0.42s var(--cd-ease);
}

.cd-card:hover { transform: translateY(-8px); }
.cd-card:active { transform: translateY(-2px) scale(0.985); }

.cd-poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--cd-surface);
  transition: border-color 0.34s var(--cd-ease), box-shadow 0.4s var(--cd-ease);
}

.cd-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.2) 50%, transparent 68%);
  transform: translateX(-135%);
  transition: transform 0.72s var(--cd-ease);
  pointer-events: none;
}

.cd-card:hover .cd-poster::after {
  transform: translateX(135%);
}

.cd-poster .cd-art-img {
  transition: transform 0.62s var(--cd-ease);
}

.cd-card:hover .cd-poster .cd-art-img {
  transform: scale(1.07);
}

.cd-poster.ratio-portrait { aspect-ratio: 2 / 3; }
.cd-poster.ratio-wide { aspect-ratio: 16 / 9; }

.cd-card:hover .cd-poster {
  border-color: rgba(245, 196, 81, 0.68);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.88), 0 0 26px -4px rgba(245, 196, 81, 0.32);
}

.cd-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,10,15,0.88) 0%, transparent 55%, rgba(8,10,15,0.25) 100%);
}

.cd-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s var(--cd-ease);
}

.cd-card:hover .cd-hover-play { opacity: 1; }

.cd-hover-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cd-gold);
  color: #080A0F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
  transform: scale(0.76);
  transition: transform 0.4s var(--cd-ease-spring), box-shadow 0.34s var(--cd-ease);
}

.cd-card:hover .cd-hover-play-btn {
  transform: scale(1);
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.52), 0 12px 28px rgba(0, 0, 0, 0.72);
}

.cd-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.cd-badge-gold {
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: var(--cd-gold);
  color: #080A0F;
  font-size: 0.75rem;
  font-weight: 800;
}

.cd-badge-dark {
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.cd-badge-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F1F5F9;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.cd-card-title {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s var(--cd-ease);
}

.cd-card:hover .cd-card-title { color: var(--cd-gold); }

.cd-card-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--cd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top 10 Horizontal Carousel & Slanted Metallic Rank */
.cd-carousel-wrap {
  position: relative;
}

.cd-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.cd-track::-webkit-scrollbar { display: none; }

.cd-track > .cd-card {
  width: 196px;
  flex-shrink: 0;
}

.cd-track > .cd-card.cd-rank-card {
  width: 215px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cd-track > .cd-card { width: 156px; }
  .cd-track > .cd-card.cd-rank-card { width: 168px; }
}

.cd-rank-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.2rem 0;
}

.cd-rank-num {
  font-style: italic;
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin-top: -1.35rem;
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, #F5C451 0%, #FFE49E 48%, rgba(245,196,81,0.14) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
}

.cd-scroll-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  z-index: 10;
  opacity: 0.78;
  transition: opacity 0.25s var(--cd-ease), border-color 0.25s var(--cd-ease), color 0.25s var(--cd-ease), transform 0.25s var(--cd-ease), box-shadow 0.25s var(--cd-ease);
}

.cd-carousel-wrap:hover .cd-scroll-btn { opacity: 1; }
.cd-scroll-btn[hidden] { display: none; }
.cd-scroll-btn:hover {
  border-color: var(--cd-gold);
  color: var(--cd-gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}
.cd-scroll-btn:active { transform: translateY(-50%) scale(0.95); }
.cd-scroll-btn.prev { left: -18px; }
.cd-scroll-btn.next { right: -18px; }

/* Standard Movie Grids */
.cd-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
}

.cd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.cd-actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.cd-actor-poster .cd-art-img,
.cd-cast-avatar .cd-art-img {
  object-fit: cover;
  object-position: center 18%;
}

.cd-cast-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--cd-border);
  transition: transform 0.28s var(--cd-ease), border-color 0.28s var(--cd-ease), background 0.28s var(--cd-ease), box-shadow 0.28s var(--cd-ease);
}

.cd-cast-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 196, 81, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.65);
}

.cd-cast-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--cd-surface-2);
}

@media (max-width: 1200px) {
  .cd-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cd-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .cd-grid-6,
  .cd-actors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-grid-4 { grid-template-columns: 1fr; }
}

/* Community & 4-Column Leaderboard Bento */
.cd-community-box {
  border-radius: 24px;
  background: #0D111B;
  border: 1px solid var(--cd-border);
  overflow: hidden;
}

.cd-comments-top {
  padding: 1.75rem;
  border-bottom: 1px solid var(--cd-border);
}

.cd-comment-card {
  display: block;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cd-border);
  transition: transform 0.28s var(--cd-ease), background 0.24s var(--cd-ease), border-color 0.24s var(--cd-ease), box-shadow 0.28s var(--cd-ease);
}

.cd-comment-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(245, 196, 81, 0.48);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.65);
}

.cd-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-gold), #B45309);
  color: #080A0F;
  font-weight: 800;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-leaderboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) { .cd-leaderboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cd-leaderboard { grid-template-columns: 1fr; } }

.cd-board-col {
  padding: 1.5rem;
  border-right: 1px solid var(--cd-border);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.cd-board-col:last-child { border-right: 0; }

.cd-board-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  transition: transform 0.24s var(--cd-ease);
}

.cd-board-row:hover {
  transform: translateX(4px);
}

.cd-board-name {
  transition: color 0.22s var(--cd-ease);
}

.cd-board-row:hover .cd-board-name { color: var(--cd-gold); }

.cd-board-thumb {
  width: 38px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--cd-border);
}

/* ==================== CATALOG / DETAIL / WATCH / ADMIN ==================== */
.cd-page-pad {
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.cd-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  margin-bottom: 1.75rem;
}

.cd-input, .cd-select, .cd-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cd-select option {
  background: #10141E;
  color: #fff;
}

.cd-input:focus, .cd-select:focus, .cd-textarea:focus {
  border-color: var(--cd-gold);
  background: #141A29;
}

.cd-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cd-border);
}

.cd-tab {
  padding: 0.52rem 1.12rem;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #CBD5E1;
  background: transparent;
  border: 0;
  transition: background 0.25s var(--cd-ease), color 0.25s var(--cd-ease), transform 0.2s var(--cd-ease);
}

.cd-tab.active, .cd-tab:hover {
  background: var(--cd-gold);
  color: #080A0F;
}

/* Watch Cinema Player */
.cd-player-shell {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #040508;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.cd-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020306;
  overflow: hidden;
}

.cd-player-hud {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.85) 100%);
}

.cd-lights-off-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 40;
  display: none;
}

body.lights-off .cd-lights-off-backdrop { display: block; }
body.lights-off .cd-player-shell { position: relative; z-index: 45; }

.cd-ep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cd-ep-btn {
  padding: 0.62rem 1.15rem;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cd-border);
  color: #E2E8F0;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.24s var(--cd-ease), border-color 0.24s var(--cd-ease), color 0.24s var(--cd-ease), transform 0.2s var(--cd-ease);
}

.cd-ep-btn:hover { border-color: var(--cd-gold); color: var(--cd-gold); transform: translateY(-1px); }
.cd-ep-btn:active { transform: scale(0.96); }
.cd-ep-btn.active {
  background: var(--cd-gold);
  border-color: var(--cd-gold);
  color: #080A0F;
}

/* Auth & Admin Cards / Tables */
.cd-card-panel {
  border-radius: 22px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  padding: 1.75rem;
  transition: transform 0.34s var(--cd-ease), border-color 0.28s var(--cd-ease), box-shadow 0.34s var(--cd-ease), background 0.28s var(--cd-ease);
}

a.cd-card-panel:hover,
details.cd-card-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 81, 0.42);
  box-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.72), 0 0 20px -8px rgba(245, 196, 81, 0.22);
}

details.cd-card-panel[open] > *:not(summary) {
  animation: cdAccordionOpen 0.34s var(--cd-ease) backwards;
}

@keyframes cdAccordionOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.cd-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--cd-border);
  background: var(--cd-surface);
}

.cd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cd-table th, .cd-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cd-gold);
  background: rgba(255, 255, 255, 0.03);
}

.cd-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* Footer */
.cd-footer {
  background: #05070B;
  border-top: 1px solid var(--cd-border);
  padding: 3rem 0 2.25rem;
}

.cd-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1.55fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--cd-border);
}

.cd-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cd-footer-heading {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.cd-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--cd-muted);
}

.cd-footer-links a:hover,
.cd-footer-links a.active {
  color: var(--cd-gold);
}

.cd-footer-disclaimer {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--cd-muted);
}

.cd-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--cd-muted);
}

.cd-footer-bottom a:hover {
  color: var(--cd-gold);
}

@media (max-width: 960px) {
  .cd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .cd-footer-grid > .cd-footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cd-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Toast Notification */
.cd-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 22px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(22, 28, 42, 0.96);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.32s var(--cd-ease), transform 0.42s var(--cd-ease-spring);
}

.cd-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.cd-alert-success {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  font-size: 0.875rem;
  font-weight: 600;
}

.cd-alert-error {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #FDA4AF;
  font-size: 0.875rem;
}

.field-validation-error, .validation-summary-errors {
  color: #FDA4AF;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.cd-mobile-drawer {
  display: none;
  background: rgba(10, 13, 22, 0.98);
  border-bottom: 1px solid var(--cd-border);
  padding: 1rem 1.25rem 1.5rem;
}

.cd-mobile-drawer.open {
  display: block;
  animation: cdDrawerIn 0.32s var(--cd-ease) backwards;
}

@keyframes cdDrawerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ==================== CONTINUE WATCHING ROW ==================== */
.cd-continue-card {
  position: relative;
}

.cd-continue-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 10, 15, 0.84);
  color: #E2E8F0;
  font-size: 0.78rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cd-continue-card:hover .cd-continue-rm,
.cd-continue-rm:focus-visible {
  opacity: 1;
}

.cd-continue-rm:hover {
  background: var(--cd-crimson);
  border-color: var(--cd-crimson);
  color: #fff;
}

@media (hover: none) {
  .cd-continue-rm { opacity: 0.9; }
}

.cd-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.cd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cd-gold) 0%, #FFE49E 100%);
  border-radius: 0 3px 3px 0;
}

/* ==================== WATCH AUTO-NEXT & CONTROLS ==================== */
.cd-autonext-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--cd-muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.cd-switch {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}

.cd-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cd-switch.on {
  background: var(--cd-gold);
  border-color: var(--cd-gold);
}

.cd-switch.on::after {
  transform: translateX(18px);
  background: #080A0F;
}

.cd-autonext-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(8, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.cd-autonext-thumb {
  width: 132px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--cd-border);
}

.cd-autonext-ring {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-autonext-ring svg {
  transform: rotate(-90deg);
}

.cd-autonext-ring circle.bg {
  stroke: rgba(255, 255, 255, 0.14);
}

.cd-autonext-ring circle.progress {
  stroke: var(--cd-gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s linear;
}

.cd-autonext-ring span {
  position: absolute;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cd-gold);
}

.cd-shortcut-bar {
  padding: 0.65rem 1.5rem;
  background: rgba(8, 10, 15, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--cd-muted);
}

.cd-shortcut-bar kbd {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==================== SCROLL TOP RING BUTTON ==================== */
.cd-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 20, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.86);
  transition: opacity 0.28s var(--cd-ease), transform 0.34s var(--cd-ease-spring), border-color 0.22s var(--cd-ease), color 0.22s var(--cd-ease);
}

.cd-scroll-top[hidden] {
  display: none;
}

.cd-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cd-scroll-top:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--cd-gold);
  color: var(--cd-gold);
}

.cd-scroll-top svg.cd-scroll-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.cd-scroll-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.5;
}

.cd-scroll-ring-fill {
  fill: none;
  stroke: var(--cd-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

/* ==================== SMOOTH PAGE & SCROLL MOTION ACROSS SITE ==================== */
body.cd-entered main {
  animation: cdMainEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes cdMainEnter {
  from { opacity: 0.25; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

body.cd-entered .cd-hero .cd-poster {
  animation: cdHeroItemRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.02s backwards;
}

body.cd-entered .cd-hero-info,
body.cd-entered #cd-detail-grid > div:last-child,
body.cd-entered .cd-hero > .cd-container:not(.cd-hero-content) {
  animation: cdHeroItemRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards;
}

body.cd-entered .cd-hero-thumbs-wrap {
  animation: cdHeroItemRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.06s backwards;
}

@keyframes cdHeroItemRise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

.cd-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale3d(0.988, 0.988, 1);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) var(--cd-delay, 0ms), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) var(--cd-delay, 0ms);
}

.cd-reveal-item {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale3d(0.96, 0.96, 1);
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1) var(--cd-delay, 0ms), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1) var(--cd-delay, 0ms);
}

.cd-reveal.cd-reveal-visible,
.cd-reveal-item.cd-reveal-visible {
  opacity: 1;
  transform: none;
}

/* Stagger cards inside horizontal carousels when row reveals without hiding off-screen track items */
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(-n+7) {
  animation: cdCardPop 0.28s var(--cd-ease) backwards;
}
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(2) { animation-delay: 20ms; }
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(3) { animation-delay: 40ms; }
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(4) { animation-delay: 60ms; }
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(5) { animation-delay: 80ms; }
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(6) { animation-delay: 100ms; }
.cd-reveal.cd-reveal-visible .cd-track > .cd-card:nth-child(7) { animation-delay: 120ms; }

.cd-card-pop {
  animation: cdCardPop 0.44s var(--cd-ease) var(--cd-delay, 0ms) backwards;
}

@keyframes cdCardPop {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* ==================== FLASHLIGHT SPOTLIGHT PRELOADER & TRANSITION ==================== */
.cd-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at 50% 42%, rgba(26, 34, 58, 0.34) 0%, #05060C 62%, #020307 100%), #030408;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.45s;
}

.cd-preloader.is-grand.is-zooming {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s, visibility 0s linear 1.14s;
}

.cd-preloader.is-fast.is-zooming {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.14s, visibility 0s linear 0.58s;
}

.cd-preloader.is-handoff,
.cd-preloader.is-handoff.is-zooming {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.42s;
}

.cd-page-wipe {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 42%, rgba(26, 34, 58, 0.32) 0%, #05060C 62%, #020307 100%), #030408;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.18s;
}

.cd-page-wipe.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.14s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.cd-spot-stage {
  position: relative;
  width: min(980px, 94vw);
  height: min(560px, 84vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Atmospheric floating cinema dust particles (100% GPU composited) */
.cd-spot-dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}

.is-grand.is-playing .cd-spot-dust {
  animation: cdDustReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.55s forwards;
}

.is-fast.is-playing .cd-spot-dust {
  animation: cdDustReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.is-zooming .cd-spot-dust {
  animation: cdFadeOutFast 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdDustReveal {
  to { opacity: 1; }
}

@keyframes cdFadeOutFast {
  to { opacity: 0; }
}

.cd-spot-dust span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF7DC 0%, rgba(245, 196, 81, 0.82) 45%, transparent 100%);
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: cdDustFloat 4.6s ease-in-out infinite;
}

.cd-spot-dust span:nth-child(1)  { left: 32%; top: 34%; width: 3px; height: 3px; animation-delay: 0.1s; animation-duration: 4.2s; }
.cd-spot-dust span:nth-child(2)  { left: 41%; top: 52%; width: 5px; height: 5px; animation-delay: 0.5s; animation-duration: 5.1s; }
.cd-spot-dust span:nth-child(3)  { left: 58%; top: 28%; width: 3px; height: 3px; animation-delay: 0.9s; animation-duration: 3.9s; }
.cd-spot-dust span:nth-child(4)  { left: 66%; top: 48%; width: 4px; height: 4px; animation-delay: 0.3s; animation-duration: 4.8s; }
.cd-spot-dust span:nth-child(5)  { left: 48%; top: 64%; width: 4px; height: 4px; animation-delay: 1.2s; animation-duration: 4.4s; }
.cd-spot-dust span:nth-child(6)  { left: 36%; top: 70%; width: 5px; height: 5px; animation-delay: 0.7s; animation-duration: 5.4s; }
.cd-spot-dust span:nth-child(7)  { left: 62%; top: 68%; width: 3px; height: 3px; animation-delay: 1.5s; animation-duration: 4.1s; }
.cd-spot-dust span:nth-child(8)  { left: 52%; top: 40%; width: 5px; height: 5px; animation-delay: 0.2s; animation-duration: 5.0s; }
.cd-spot-dust span:nth-child(9)  { left: 26%; top: 58%; width: 3px; height: 3px; animation-delay: 1.1s; animation-duration: 4.5s; }
.cd-spot-dust span:nth-child(10) { left: 73%; top: 60%; width: 4px; height: 4px; animation-delay: 0.6s; animation-duration: 4.9s; }
.cd-spot-dust span:nth-child(11) { left: 45%; top: 24%; width: 3px; height: 3px; animation-delay: 1.4s; animation-duration: 3.8s; }
.cd-spot-dust span:nth-child(12) { left: 55%; top: 78%; width: 4px; height: 4px; animation-delay: 0.4s; animation-duration: 4.7s; }

@keyframes cdDustFloat {
  0%, 100% { transform: translate3d(0, 8px, 0) scale3d(0.7, 0.7, 1); opacity: 0.22; }
  50% { transform: translate3d(12px, -22px, 0) scale3d(1.25, 1.25, 1); opacity: 0.92; }
}

/* 3D Cinema Flashlight */
.cd-flashlight {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 6;
  transform-origin: 50% 92%;
  transform: translate3d(-50%, -260px, 0) scale3d(0.84, 0.84, 1);
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.92));
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.cd-torch-svg {
  width: 104px;
  height: 156px;
  display: block;
}

.cd-lens-flare {
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 82px;
  height: 38px;
  transform: translate3d(-50%, 0, 0) scale3d(0.2, 0.2, 1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 232, 158, 0.78) 28%, rgba(245, 196, 81, 0.28) 58%, transparent 82%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-flashlight {
  animation: cdFlashGrand 4.5s linear forwards;
}

.is-grand.is-playing .cd-lens-flare {
  animation: cdFlareGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-flashlight {
  animation: cdFlashFast 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-lens-flare {
  animation: cdFlareFast 0.26s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
}

.is-zooming .cd-flashlight {
  animation: cdFlashZoomOut 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.is-zooming .cd-lens-flare {
  animation: cdFadeOutFast 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdFlashGrand {
  0%   {
    opacity: 0;
    transform: translate3d(-50%, -290px, 0) scale3d(0.84, 0.84, 1) rotate(0deg);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  8%   { opacity: 1; }
  19%  {
    opacity: 1;
    transform: translate3d(-50%, 8px, 0) scale3d(1.03, 1.03, 1) rotate(0deg);
    animation-timing-function: ease-out;
  }
  24%  { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1) rotate(0deg); }
  /* Dừng 1 nhịp hoàn toàn trong bóng tối trước khi bật đèn (24% -> 34%) */
  34%  {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1) rotate(0deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  46%  {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1) rotate(0deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  58%  {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1) rotate(-11deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  70%  {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1.01, 1.01, 1) rotate(12deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  82%  { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.03, 1.03, 1) rotate(0deg); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.03, 1.03, 1) rotate(0deg); }
}

@keyframes cdFlareGrand {
  0%, 33% { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(0.2, 0.2, 1); }
  37%     { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.42, 1.42, 1); }
  46%, 80%{ opacity: 0.9; transform: translate3d(-50%, 0, 0) scale3d(1.08, 1.08, 1); }
  88%, 100%{ opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.28, 1.28, 1); }
}

@keyframes cdFlashFast {
  0%   { opacity: 0; transform: translate3d(-50%, -240px, 0) scale3d(0.86, 0.86, 1); }
  25%  { opacity: 1; }
  75%  { opacity: 1; transform: translate3d(-50%, 6px, 0) scale3d(1.02, 1.02, 1); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1); }
}

@keyframes cdFlareFast {
  0%   { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(0.2, 0.2, 1); }
  60%, 100%{ opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.2, 1.2, 1); }
}

@keyframes cdFlashZoomOut {
  from { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.02, 1.02, 1); }
  to   { opacity: 0; transform: translate3d(-50%, -72px, 0) scale3d(0.84, 0.84, 1); }
}

/* Pivoting Dual Volumetric Spotlight Cone */
.cd-flash-pivot {
  position: absolute;
  top: 152px;
  left: 50%;
  width: clamp(360px, 76vw, 840px);
  height: clamp(320px, 56vh, 450px);
  transform-origin: 50% 0;
  transform: translate3d(-50%, 0, 0) rotate(0deg);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-flash-pivot {
  animation: cdPivotGrand 4.5s linear forwards;
}

.is-fast.is-playing .cd-flash-pivot {
  animation: cdPivotFast 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
}

.is-zooming .cd-flash-pivot {
  animation: cdPivotZoomOut 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdPivotGrand {
  0%, 34% { opacity: 0; transform: translate3d(-50%, 0, 0) rotate(0deg); }
  37%     { opacity: 1; transform: translate3d(-50%, 0, 0) rotate(0deg); }
  46%     {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) rotate(0deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  58%     {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) rotate(-11deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  70%     {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) rotate(12deg);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  82%, 100%{ opacity: 1; transform: translate3d(-50%, 0, 0) rotate(0deg); }
}

@keyframes cdPivotFast {
  0%   { opacity: 0; transform: translate3d(-50%, 0, 0) rotate(0deg); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0) rotate(0deg); }
}

@keyframes cdPivotZoomOut {
  from { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1); }
  to   { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(1.22, 1.22, 1); }
}

.cd-flash-beam {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: scale3d(0.32, 0.06, 1);
  clip-path: polygon(46.2% 0%, 53.8% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 236, 0.9) 0%,
    rgba(245, 196, 81, 0.44) 34%,
    rgba(245, 196, 81, 0.14) 72%,
    transparent 100%
  );
  filter: blur(4px);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.cd-flash-beam-core {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: scale3d(0.35, 0.06, 1);
  clip-path: polygon(48% 0%, 52% 0%, 82% 100%, 18% 100%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 228, 158, 0.52) 36%,
    rgba(245, 196, 81, 0.1) 76%,
    transparent 100%
  );
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-flash-beam,
.is-grand.is-playing .cd-flash-beam-core {
  animation: cdBeamShootGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-flash-beam,
.is-fast.is-playing .cd-flash-beam-core {
  animation: cdBeamShootFast 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
}

@keyframes cdBeamShootGrand {
  0%, 34% { opacity: 0; transform: scale3d(0.3, 0.04, 1); }
  44%     { opacity: 0.98; transform: scale3d(0.95, 1.02, 1); }
  84%, 100%{ opacity: 0.96; transform: scale3d(1.06, 1, 1); }
}

@keyframes cdBeamShootFast {
  0%   { opacity: 0; transform: scale3d(0.32, 0.05, 1); }
  45%  { opacity: 1; }
  100% { opacity: 0.94; transform: scale3d(1, 1, 1); }
}

/* Floor Glow Pool */
.cd-flash-pool {
  position: absolute;
  top: 215px;
  left: 50%;
  width: min(740px, 90vw);
  height: 260px;
  transform: translate3d(-50%, 0, 0) scale3d(0.35, 0.35, 1);
  z-index: 1;
  background: radial-gradient(ellipse closest-side at center, rgba(245, 196, 81, 0.34) 0%, rgba(245, 196, 81, 0.14) 46%, rgba(245, 196, 81, 0.03) 74%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-flash-pool {
  animation: cdPoolGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-flash-pool {
  animation: cdPoolFast 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.is-zooming .cd-flash-pool {
  animation: cdPoolZoomOut 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdPoolGrand {
  0%, 39% { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(0.35, 0.35, 1); }
  60%     { opacity: 0.72; transform: translate3d(-50%, 0, 0) scale3d(0.9, 0.9, 1); }
  84%, 100%{ opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.08, 1.08, 1); }
}

@keyframes cdPoolFast {
  0%   { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(0.35, 0.35, 1); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1); }
}

@keyframes cdPoolZoomOut {
  from { opacity: 1; transform: translate3d(-50%, 0, 0) scale3d(1.08, 1.08, 1); }
  to   { opacity: 0; transform: translate3d(-50%, 0, 0) scale3d(1.9, 1.9, 1); }
}

/* Anamorphic Cinema Horizontal Flare */
.cd-spot-anamorphic {
  position: relative;
  z-index: 2;
  width: min(740px, 88vw);
  height: 6px;
  margin-top: 158px;
  margin-bottom: -44px;
  background: radial-gradient(ellipse at center, rgba(255, 249, 230, 0.92) 0%, rgba(245, 196, 81, 0.45) 36%, transparent 74%);
  transform: scale3d(0, 1, 1);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-spot-anamorphic {
  animation: cdAnamorphicGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-spot-anamorphic {
  animation: cdAnamorphicFast 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.is-zooming .cd-spot-anamorphic {
  animation: cdFadeOutFast 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdAnamorphicGrand {
  0%, 45% { opacity: 0; transform: scale3d(0, 1, 1); }
  76%     { opacity: 0.95; transform: scale3d(1.12, 1, 1); }
  88%, 100%{ opacity: 0.68; transform: scale3d(0.9, 1, 1); }
}

@keyframes cdAnamorphicFast {
  0%   { opacity: 0; transform: scale3d(0, 1, 1); }
  65%  { opacity: 0.9; transform: scale3d(1.05, 1, 1); }
  100% { opacity: 0.55; transform: scale3d(0.82, 1, 1); }
}

/* Heroic Spotlight Logo & Reflection (Static crisp color/glow baked on GPU, animating transform + opacity only for 120fps) */
.cd-spot-logo {
  position: relative;
  z-index: 4;
  margin-top: 10px;
  font-size: clamp(3.15rem, 9.2vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.04;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 42px rgba(245, 196, 81, 0.78), 0 12px 32px rgba(0, 0, 0, 0.9);
  text-align: center;
  user-select: none;
  opacity: 0.08;
  transform: scale3d(0.92, 0.92, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.cd-spot-logo span {
  color: var(--cd-gold);
}

.is-grand.is-playing .cd-spot-logo {
  animation: cdSpotLogoGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-spot-logo {
  animation: cdSpotLogoFast 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.is-grand.is-zooming .cd-spot-logo {
  animation: cdSpotZoomGrand 1.08s cubic-bezier(0.36, 0.02, 0.14, 1) forwards !important;
}

.is-fast.is-zooming .cd-spot-logo {
  animation: cdSpotZoomFast 0.44s cubic-bezier(0.36, 0.02, 0.14, 1) forwards !important;
}

@keyframes cdSpotLogoGrand {
  0%, 35% {
    opacity: 0.08;
    transform: scale3d(0.92, 0.92, 1);
  }
  46% {
    opacity: 0.62;
    transform: scale3d(0.97, 0.97, 1);
  }
  64% {
    opacity: 0.86;
    transform: scale3d(1.01, 1.01, 1);
  }
  84% {
    opacity: 1;
    transform: scale3d(1.045, 1.045, 1);
  }
  100% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1);
  }
}

@keyframes cdSpotLogoFast {
  0% {
    opacity: 0.12;
    transform: scale3d(0.94, 0.94, 1);
  }
  65% {
    opacity: 1;
    transform: scale3d(1.04, 1.04, 1);
  }
  100% {
    opacity: 1;
    transform: scale3d(1.02, 1.02, 1);
  }
}

@keyframes cdSpotZoomGrand {
  0% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1);
  }
  62% {
    opacity: 0.88;
    transform: scale3d(2.85, 2.85, 1);
  }
  100% {
    opacity: 0;
    transform: scale3d(5.8, 5.8, 1);
  }
}

@keyframes cdSpotZoomFast {
  0% {
    opacity: 1;
    transform: scale3d(1.02, 1.02, 1);
  }
  58% {
    opacity: 0.9;
    transform: scale3d(2.45, 2.45, 1);
  }
  100% {
    opacity: 0;
    transform: scale3d(4.8, 4.8, 1);
  }
}

.cd-spot-reflect {
  position: relative;
  z-index: 3;
  margin-top: -10px;
  font-size: clamp(3.15rem, 9.2vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 0.9;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.24);
  transform: scaleY(-0.62);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.14) 48%, transparent 92%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.14) 48%, transparent 92%);
  filter: blur(1.5px);
  opacity: 0;
  user-select: none;
  pointer-events: none;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.cd-spot-reflect span {
  color: rgba(245, 196, 81, 0.34);
}

.is-grand.is-playing .cd-spot-reflect {
  animation: cdReflectGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-spot-reflect {
  animation: cdReflectFast 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.44s forwards;
}

.is-zooming .cd-spot-reflect {
  animation: cdFadeOutFast 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdReflectGrand {
  0%, 48% { opacity: 0; }
  82%, 100%{ opacity: 0.74; }
}

@keyframes cdReflectFast {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}

.cd-spot-sub {
  position: relative;
  z-index: 4;
  margin-top: -0.35rem;
  font-size: clamp(0.76rem, 1.4vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(203, 213, 225, 0.92);
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.is-grand.is-playing .cd-spot-sub {
  animation: cdSubGrand 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-fast.is-playing .cd-spot-sub {
  animation: cdSubFast 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.46s forwards;
}

.is-zooming .cd-spot-sub {
  animation: cdFadeOutFast 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cdSubGrand {
  0%, 58% { opacity: 0; transform: translate3d(0, 12px, 0); }
  86%, 100%{ opacity: 0.92; transform: translate3d(0, 0, 0); }
}

@keyframes cdSubFast {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 0.9; transform: translate3d(0, 0, 0); }
}

/* Skip Intro Pill Button */
.cd-skip-intro {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 10001;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.38);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
}

.cd-skip-intro:hover {
  background: rgba(245, 196, 81, 0.2);
  border-color: var(--cd-gold);
  color: #fff;
  transform: translateY(-2px);
}

.cd-skip-intro[hidden] {
  display: none !important;
}

.is-zooming .cd-skip-intro {
  opacity: 0;
  pointer-events: none;
}

.cd-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10002;
  background: linear-gradient(90deg, var(--cd-gold), #FFE49E, var(--cd-crimson));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}

.cd-nav-progress.is-loading {
  opacity: 1;
  transform: scaleX(0.85);
  transition: transform 0.55s var(--cd-ease), opacity 0.12s ease;
}

@media (max-width: 640px) {
  .cd-torch-svg {
    width: 76px;
    height: 114px;
  }
  .cd-flash-pivot {
    top: 110px;
  }
  .cd-spot-anamorphic {
    margin-top: 102px;
    margin-bottom: -24px;
  }
  .cd-spot-logo,
  .cd-spot-reflect {
    font-size: clamp(2.45rem, 10.6vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cd-entered main,
  body.cd-entered .cd-hero .cd-poster,
  body.cd-entered .cd-hero-info,
  body.cd-entered #cd-detail-grid > div:last-child,
  body.cd-entered .cd-hero > .cd-container:not(.cd-hero-content),
  body.cd-entered .cd-hero-thumbs-wrap,
  .cd-card-pop,
  .cd-search-dropdown,
  .cd-mobile-drawer.open,
  details.cd-card-panel[open] > *:not(summary),
  .cd-spot-dust,
  .cd-spot-dust span,
  .cd-flashlight,
  .cd-lens-flare,
  .cd-flash-pivot,
  .cd-flash-beam,
  .cd-flash-beam-core,
  .cd-flash-pool,
  .cd-spot-anamorphic,
  .cd-spot-logo,
  .cd-spot-logo span,
  .cd-spot-reflect,
  .cd-spot-sub {
    animation: none !important;
  }
  .cd-preloader, .cd-nav-progress, .cd-page-wipe, .cd-reveal, .cd-reveal-item, .cd-card, .cd-poster, .cd-poster::after, .cd-poster .cd-art-img, .cd-hover-play, .cd-hover-play-btn, .cd-card-title, .cd-topic-card, .cd-topic-card::after, .cd-card-panel, .cd-cast-pill, .cd-comment-card, .cd-board-row, .cd-dropdown-panel, .cd-dropdown-link, .cd-nav-link svg, .cd-toast, .cd-scroll-top, .cd-btn-pill, .cd-btn-gold, .cd-play-cta, .cd-ep-btn, .cd-spot-logo, .cd-skip-intro {
    transition: none !important;
  }
  .cd-reveal, .cd-reveal-item { opacity: 1; transform: none; }
}

.cd-img-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 25%, rgba(245, 196, 81, 0.16), transparent 60%), linear-gradient(155deg, #171E2E 0%, #090C14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(245, 196, 81, 0.86);
  line-height: 1.3;
  overflow: hidden;
}

.cd-hero-thumb .cd-img-fallback {
  font-size: 0.65rem;
  padding: 0.3rem;
}

.cd-hero-backdrop .cd-img-fallback {
  font-size: 0;
}


