:root {
  --bg1: #1a0a12;
  --bg2: #2d0f1f;
  --bg3: #4a1530;
  --gold: #f0c14b;
  --gold2: #d4a017;
  --cream: #faf3e8;
  --muted: #c9b8a8;
  --glass: rgba(255, 245, 235, 0.08);
  --glass2: rgba(255, 245, 235, 0.14);
  --border: rgba(240, 193, 75, 0.25);
  --red: #e63946;
  --green: #5eead4;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a0f0a;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.global-strip {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(240,193,75,0.08), rgba(94,234,212,0.06), rgba(240,193,75,0.08));
  border-bottom: 1px solid rgba(240, 193, 75, 0.15);
}
.global-pill {
  color: var(--gold);
  font-weight: 600;
}
.global-sep { opacity: 0.4; }

body {
  font-family: "Outfit", "Noto Sans Tamil", system-ui, sans-serif;
  background: linear-gradient(145deg, var(--bg1) 0%, var(--bg2) 40%, #1a1028 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1000;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 500px; height: 500px; background: rgba(230, 57, 70, 0.2); top: -100px; right: -100px; }
.glow-2 { width: 400px; height: 400px; background: rgba(240, 193, 75, 0.12); bottom: 0; left: -80px; }

/* ─── CINEMATIC GLOSSY HERO ─── */
.cinematic-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: none;
}

.hero-backdrop-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.08);
  filter: blur(10px) saturate(1.2) contrast(1.05);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-backdrop.active {
  opacity: 1;
  animation: heroKen 18s ease-in-out infinite alternate;
}
.cinematic-hero.hero-locked .hero-backdrop.active {
  filter: blur(4px) saturate(1.25) contrast(1.08);
}
.cinematic-hero.hero-locked .hero-vignette {
  opacity: 0.75;
}
@keyframes heroKen {
  from { transform: scale(1.06); }
  to { transform: scale(1.12); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
  background:
    radial-gradient(ellipse 90% 70% at 70% 30%, transparent 0%, rgba(26, 10, 18, 0.85) 70%),
    linear-gradient(90deg, rgba(26, 10, 18, 0.95) 0%, rgba(26, 10, 18, 0.4) 45%, rgba(26, 10, 18, 0.2) 100%),
    linear-gradient(0deg, #1a0a12 0%, transparent 35%),
    linear-gradient(180deg, rgba(26, 10, 18, 0.7) 0%, transparent 40%);
  z-index: 1;
}

.hero-gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 28%,
    transparent 60%,
    rgba(240, 193, 75, 0.06) 100%
  );
  pointer-events: none;
  animation: glossSweep 6s ease-in-out infinite;
}
@keyframes glossSweep {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-spotlight {
  position: absolute;
  top: -20%;
  left: 15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(240, 193, 75, 0.12) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
  animation: spotPulse 4s ease-in-out infinite;
}
@keyframes spotPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-lens {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,150,0.15) 0%, transparent 70%);
  filter: blur(2px);
  z-index: 2;
  pointer-events: none;
}

.hero-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 193, 75, 0.12);
}

.nav-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 200px;
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}
.chat-toggle:hover { background: rgba(240, 193, 75, 0.22); }
.chat-toggle-icon { font-size: 14px; }

.cinema-chat-form {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

#cinema-chat-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--cream);
  font-size: 13px;
  outline: none;
}
#cinema-chat-input:focus { border-color: var(--gold); }

#cinema-chat-send {
  padding: 9px 14px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), #d4a84b);
  color: #1a0f0a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}
#cinema-chat-send:disabled { opacity: 0.5; cursor: wait; }

.cinema-chat-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(400px, calc(100vw - 40px));
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 16px;
  border: 1px solid rgba(240, 193, 75, 0.3);
  background: rgba(12, 6, 10, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: max-height 0.3s ease, opacity 0.25s ease;
  z-index: 100;
}
.cinema-chat-panel.open {
  max-height: 360px;
  opacity: 1;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(240, 193, 75, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.chat-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 92%;
  word-break: break-word;
}
.chat-bubble.user {
  align-self: flex-end;
  background: rgba(240, 193, 75, 0.18);
  color: var(--cream);
  border: 1px solid rgba(240, 193, 75, 0.25);
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
}
.chat-bubble.typing { opacity: 0.7; font-style: italic; }

.lang-toggle {
  display: flex;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
}

.lang-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), #d4a84b);
  color: #1a0f0a;
}

.loading-msg {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hero-layout {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 40px 88px;
  width: 100%;
}

.hero-stage {
  position: relative;
  flex: 1;
  max-width: 720px;
  padding: 0;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1a0a12;
  background: linear-gradient(135deg, #ffe9a8, var(--gold), #c9941a);
  box-shadow: 0 4px 24px rgba(240, 193, 75, 0.45), inset 0 1px 0 rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(240, 193, 75, 0.4);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff5d6 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
  letter-spacing: -1px;
}

.hero-tamil {
  font-size: clamp(22px, 3vw, 32px);
  color: rgba(255, 245, 235, 0.85);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-rating {
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 16px rgba(240, 193, 75, 0.5);
}

.hero-date {
  font-size: 14px;
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.hero-pill {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--green);
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}

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

.btn-gloss {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-gloss::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

.btn-gloss.primary {
  color: #1a0a12;
  background: linear-gradient(135deg, #ffe9a8 0%, var(--gold) 50%, #c9941a 100%);
  box-shadow: 0 8px 32px rgba(240, 193, 75, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gloss.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-gloss:hover { transform: translateY(-2px) scale(1.02); }
.btn-gloss.primary:hover { box-shadow: 0 12px 40px rgba(240, 193, 75, 0.55); }

.hero-filmstrip {
  position: absolute;
  bottom: 12px;
  left: 40px;
  right: 40px;
  height: 56px;
  z-index: 12;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.hero-filmstrip::-webkit-scrollbar { height: 4px; }
.hero-filmstrip::-webkit-scrollbar-thumb { background: rgba(240,193,75,0.4); border-radius: 4px; }

.hero-strip-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-strip-thumb:hover { opacity: 0.9; transform: translateY(-3px); }
.hero-strip-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(240, 193, 75, 0.45);
}

.hero-poster-showcase {
  flex: 0 0 auto;
  width: min(280px, 32vw);
  margin-bottom: 8px;
}
.hero-poster-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(240, 193, 75, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: perspective(800px) rotateY(-6deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.cinematic-hero.hero-locked .hero-poster-frame {
  transform: perspective(800px) rotateY(0deg) scale(1.03);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.75),
    0 0 0 2px rgba(240, 193, 75, 0.6);
}
#hero-poster-clear {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}
.hero-poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.22) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
}

.hero-progress {
  margin-top: 18px;
  height: 3px;
  width: 200px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #fff5d6);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.hero-credits {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(240, 193, 75, 0.22);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  max-width: 100%;
}
.hero-credits-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 12px;
}
.hero-credits-grid.hidden { display: none; }
.hc-block { min-width: 0; }
.hc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}
.hc-value {
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream);
  word-wrap: break-word;
}

.crew-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(240, 193, 75, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.crew-panel h4 {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.crew-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.crew-item .role-tag {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.crew-item .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
.crew-item .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.crew-cast-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.crew-cast-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: #a7f3d0;
}
.crew-cast-chip span { color: var(--muted); font-size: 10px; }

.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  z-index: 6;
  background: linear-gradient(180deg, transparent, #1a0a12 90%);
  pointer-events: none;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { font-size: 36px; filter: drop-shadow(0 0 12px rgba(240,193,75,0.5)); }
.brand h1 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), #fff8e7, var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}
.brand span, .brand-ta { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; font-family: "Noto Sans Tamil", "Outfit", sans-serif; }
.en-sub { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.hero-tamil, .tamil, #detail-tamil { font-family: "Noto Sans Tamil", "Outfit", sans-serif; }

#search {
  width: 260px;
  max-width: 40vw;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.2);
}
#search:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,193,75,0.15); }

.btn-gloss.ticket {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}
.btn-gloss.ticket:hover { box-shadow: 0 12px 36px rgba(230, 57, 70, 0.55); }

.ticket-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ticket-city-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticket-city-select {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--cream);
  font-size: 12px;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
  cursor: pointer;
}
.ticket-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 520px;
  line-height: 1.4;
}
.detail-actions .ticket-block { justify-content: center; }
.detail-actions + .ticket-note { text-align: center; margin-bottom: 8px; }

.stats-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: -40px;
}
.stat {
  text-align: center;
  padding: 18px 12px;
  background: rgba(26, 10, 18, 0.92);
  backdrop-filter: blur(12px);
}
.stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}

.trending-section {
  position: relative;
  z-index: 3;
  padding: 28px 24px 8px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 4px;
}
.section-head p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: "Noto Sans Tamil", "Outfit", sans-serif;
}
.trending-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.trend-card {
  flex: 0 0 auto;
  width: 130px;
  cursor: pointer;
  transition: transform 0.25s;
}
.trend-card:hover { transform: translateY(-6px); }
.trend-card img {
  width: 130px;
  height: 195px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.trend-card.active img { border-color: var(--gold); }
.trend-card h4 {
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.3;
  color: var(--cream);
  font-weight: 600;
}
.trend-card .td {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.monetize-strip {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed rgba(240, 193, 75, 0.2);
  background: rgba(0,0,0,0.2);
}
.monetize-strip strong { color: var(--gold); }

.movie-card .crew-mini {
  font-size: 10px;
  color: #5eead4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.sidebar {
  border-right: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 12px;
  position: sticky;
  top: 0;
  background: rgba(45, 15, 31, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.sidebar-head h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
}
.pill {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #1a0a12;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.movie-list { padding: 8px 12px 24px; }

.movie-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
}
.movie-card:hover {
  background: var(--glass2);
  border-color: var(--border);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.movie-card.active {
  background: linear-gradient(135deg, rgba(240,193,75,0.15), rgba(230,57,70,0.1));
  border-color: rgba(240,193,75,0.4);
  box-shadow: 0 0 24px rgba(240,193,75,0.12);
}

.thumb-mini {
  width: 48px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}
.movie-card .info h4 { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.movie-card .info .dt { font-size: 11px; color: var(--muted); }
.movie-card .info .rt { font-size: 11px; color: var(--gold); margin-top: 4px; }

.stage {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  position: relative;
}

.welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}
.welcome-inner {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.reel { font-size: 56px; margin-bottom: 16px; }
.welcome h3 { font-family: "Playfair Display", serif; font-size: 24px; margin-bottom: 8px; }
.welcome p { color: var(--muted); }

.hidden { display: none !important; }

.detail { position: relative; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.detail-backdrop {
  position: absolute;
  inset: -24px -28px auto;
  height: 280px;
  background-size: cover;
  background-position: center top;
  filter: blur(40px) brightness(0.4);
  opacity: 0.5;
  z-index: 0;
  border-radius: 0 0 40px 40px;
}

.detail-glass {
  position: relative;
  z-index: 1;
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.detail-top {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}

.poster-wrap {
  position: relative;
  flex-shrink: 0;
}
.poster-wrap img {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.poster-shine {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.detail-info .release { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.detail-info h2 { font-family: "Playfair Display", serif; font-size: 32px; line-height: 1.15; margin-bottom: 6px; }
.detail-info .tamil { font-size: 18px; color: var(--muted); margin-bottom: 16px; }
.rating-block { margin-bottom: 16px; }
.stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; }
.rating-block span:last-child { margin-left: 12px; color: var(--muted); font-size: 14px; }
.tagline { font-size: 15px; line-height: 1.6; color: #e8dfd4; font-weight: 300; }

.ai-glass {
  background: linear-gradient(135deg, rgba(240,193,75,0.08), rgba(230,57,70,0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.ai-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.ai-glass p { line-height: 1.7; font-size: 15px; }
.sentiment {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.sentiment.positive { background: rgba(94,234,212,0.15); color: var(--green); border: 1px solid rgba(94,234,212,0.3); }
.sentiment.mixed { background: rgba(240,193,75,0.12); color: var(--gold); border: 1px solid var(--border); }
.sentiment.negative { background: rgba(230,57,70,0.15); color: #ff8a8a; border: 1px solid rgba(230,57,70,0.3); }

.comments-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 18px;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.comment-form input,
.comment-form textarea,
.comment-form select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.form-actions { display: flex; gap: 10px; }
.form-actions select { flex: 0 0 130px; }
.form-actions button {
  flex: 1;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border: none;
  border-radius: 10px;
  color: #1a0a12;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240,193,75,0.3);
  transition: transform 0.15s;
}
.form-actions button:hover { transform: translateY(-1px); }

#comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}
.comment .who { font-weight: 600; margin-bottom: 4px; }
.comment .when { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.comment .text { line-height: 1.6; font-size: 14px; }
.comment .cr { color: var(--gold); font-size: 12px; margin-top: 8px; }

footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.site-footer { padding: 28px 24px 32px; }
.site-footer p { margin-bottom: 10px; }
.footer-sources {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 12px;
  color: #a89888;
}
.footer-sources a { color: var(--gold); text-decoration: underline; }

.data-source-bar {
  position: relative;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(240, 193, 75, 0.2);
  backdrop-filter: blur(8px);
}
.data-source-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
}
.ds-label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--gold);
}
.ds-item strong { color: var(--cream); margin-right: 6px; }
.ds-item a { color: #5eead4; text-decoration: none; font-weight: 600; }
.ds-item a:hover { text-decoration: underline; }
.ds-note { opacity: 0.75; margin-left: 4px; }
.ds-sep { opacity: 0.3; }
.ds-muted { font-size: 11px; }

.data-credit {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.06);
  font-size: 12px;
  line-height: 1.6;
  color: #a7f3d0;
}
.data-credit a { color: #5eead4; font-weight: 600; }
.data-credit .dc-updated { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

.ai-glass.typing #ai-summary::after {
  content: "|";
  color: var(--gold);
  animation: summaryBlink 0.9s step-end infinite;
  margin-left: 1px;
}
@keyframes summaryBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .cinematic-hero { min-height: 65vh; }
  .hero-nav { padding-left: 20px; padding-right: 20px; flex-wrap: wrap; }
  .nav-right { width: 100%; order: 3; }
  .header-chat-bar { max-width: 100%; flex: 1 1 100%; }
  .chat-toggle-label { display: none; }
  #search { width: 100%; max-width: 100%; }
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px 100px;
    gap: 20px;
  }
  .hero-poster-showcase {
    width: min(200px, 55vw);
    align-self: center;
    margin-bottom: 0;
  }
  .hero-filmstrip { left: 20px; right: 20px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .trending-section { padding: 20px 16px 8px; }
  .detail-actions { justify-content: center; }
  .hero-lens { display: none; }
  .main { grid-template-columns: 1fr; margin-top: 0; }
  .sidebar { max-height: 35vh; border-right: none; border-bottom: 1px solid var(--border); }
  .detail-top { flex-direction: column; align-items: center; text-align: center; }
}
