:root {
  --bg: #1c0721;
  --bg-2: #2b0b33;
  --bg-3: #3d1246;
  --line: #5b2463;
  --text: #fff4e2;
  --muted: #e9bfdc;
  --dim: #b183ad;
  --rani: #ff2d95;      /* rani pink */
  --saffron: #ff9a1f;   /* saffron */
  --gold: #ffd23f;      /* marigold */
  --peacock: #12c9bd;   /* peacock teal */
  --royal: #8a3ffc;     /* royal purple */
  --star: #ffd23f;
  --heart: #ff3b5c;
  --fiesta: linear-gradient(90deg, var(--rani), var(--saffron) 55%, var(--gold));
  --radius: 14px;
  --serif: "Rozha One", "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 100% -10%, rgba(255,45,149,.18), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(255,154,31,.12), transparent 60%), radial-gradient(800px 600px at 50% 110%, rgba(138,63,252,.18), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--saffron); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(28,7,33,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 8px rgba(255,210,63,.5)); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark { animation: none; } }
.brand-name { font-family: var(--serif); font-size: 28px; letter-spacing: .5px; background: linear-gradient(180deg, #fff6c9, var(--gold) 45%, var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 14px rgba(255,154,31,.35); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.search { position: relative; margin-left: auto; }
.search input { width: 220px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; outline: none; }
.search input:focus { border-color: var(--saffron); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; max-height: 60vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.hl { background: var(--bg-3); color: var(--text); }
.search-results .poster { width: 34px; flex: none; }
.search-results small { color: var(--muted); display: block; }

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 28px 16px 60px; min-height: 70vh; outline: none; }
.section { margin: 38px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }
.section-head a { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: 16px; overflow: hidden; padding: 56px 40px; margin-bottom: 20px;
  background: radial-gradient(circle at 85% 20%, rgba(255,210,63,.55), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(18,201,189,.35), transparent 50%),
              linear-gradient(125deg, #c2126f 0%, #6d1fb8 55%, #e0560f 100%); border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(255,210,63,.12), 0 20px 60px rgba(255,45,149,.25); }
.hero h1 { max-width: 640px; }
.hero p { max-width: 560px; color: var(--muted); font-size: 17px; }
.hero-stack { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; }
.hero-stack .poster { width: 110px; margin-left: -34px; box-shadow: -8px 10px 30px rgba(0,0,0,.6); transition: transform .3s; }
.hero-stack .poster:nth-child(odd) { transform: rotate(-4deg) translateY(10px); }
.hero-stack .poster:nth-child(even) { transform: rotate(4deg); }
.hero-stack:hover .poster { transform: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.primary { background: var(--fiesta); color: #fff; border-color: transparent; text-shadow: 0 1px 2px rgba(80,0,40,.4); box-shadow: 0 6px 20px rgba(255,45,149,.35); }
.btn.primary:hover { filter: brightness(1.1) saturate(1.1); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.on { border-color: var(--saffron); color: var(--saffron); }
.btn.danger:hover { border-color: var(--heart); color: var(--heart); }

/* ---------- Posters ---------- */
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 4px 14px rgba(0,0,0,.35); color: #fff; isolation: isolate; }
.poster-art { position: absolute; inset: 0; z-index: -1; }
.poster-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.poster-title { position: absolute; left: 9%; right: 9%; bottom: 10%; font-family: var(--serif); font-weight: 400; color: #fff6dc; font-size: clamp(11px, 1.35vw, 17px); line-height: 1.08; text-shadow: 0 2px 8px rgba(0,0,0,.5); word-break: break-word; }
.poster-meta { position: absolute; top: 7%; left: 9%; right: 9%; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: .85; }
.poster.sm .poster-title { font-size: 9px; } .poster.sm .poster-meta { display: none; }
.poster.lg .poster-title { font-size: 26px; }
.poster.lg .poster-meta { font-size: 12px; }

.card { position: relative; }
.card .poster { transition: transform .15s, box-shadow .15s; }
.card:hover .poster { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(255,210,63,.45), 0 12px 28px rgba(0,0,0,.5); }
.card-info { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.card-info .t { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badges { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.card-badges span { background: rgba(0,0,0,.65); border-radius: 4px; font-size: 11px; padding: 1px 5px; }
.mine { color: var(--rani); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 150px); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.strip > * { scroll-snap-align: start; }
.strip::-webkit-scrollbar { height: 6px; } .strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ---------- Stars ---------- */
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .half { position: relative; display: inline-block; }
.rate { display: inline-flex; gap: 2px; user-select: none; }
.rate .s { position: relative; width: 30px; height: 30px; cursor: pointer; font-size: 30px; line-height: 30px; color: var(--line); }
.rate .s::before { content: "★"; position: absolute; inset: 0; }
.rate .s .fill { position: absolute; inset: 0; overflow: hidden; color: var(--star); width: 0; }
.rate .s .fill::before { content: "★"; }
.rate .s button { position: absolute; top: 0; bottom: 0; width: 50%; background: none; border: 0; padding: 0; cursor: pointer; z-index: 2; }
.rate .s button:first-of-type { left: 0; }
.rate .s button:last-child { right: 0; }
.rate-label { font-size: 13px; color: var(--muted); min-width: 60px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.filters label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); display: flex; flex-direction: column; gap: 4px; }
select, .input, textarea { background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; outline: none; }
select:focus, .input:focus, textarea:focus { border-color: var(--saffron); }
textarea { width: 100%; resize: vertical; min-height: 80px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12px; color: var(--muted); cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--saffron); color: var(--text); }
.chip.on { background: rgba(255,45,149,.2); }
.count { color: var(--dim); font-size: 13px; margin-left: auto; }

/* ---------- Show page ---------- */
.show-backdrop { position: relative; margin: -28px -16px 0; height: 300px; overflow: hidden; }
.show-backdrop .poster-art { filter: blur(0); }
.show-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,7,33,.1), var(--bg) 95%), linear-gradient(90deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.show-layout { display: grid; grid-template-columns: 230px 1fr 280px; gap: 32px; margin-top: -170px; position: relative; z-index: 2; }
.show-layout .poster { width: 100%; }
.show-title { font-size: clamp(30px, 4vw, 46px); margin-top: 120px; }
.show-title small { font-family: var(--sans); font-size: 18px; color: var(--muted); font-weight: 400; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 14px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.actions button { flex-direction: column; justify-content: center; padding: 10px 4px; font-size: 12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 2px; color: var(--muted); }
.actions button .ic { font-size: 20px; }
.actions button.on { color: var(--text); }
.actions button.on.watch .ic { color: var(--rani); }
.actions button.on.like .ic { color: var(--heart); }
.actions button.on.wl .ic { color: var(--peacock); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin-top: 16px; }
.facts dt { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; padding-top: 3px; }
.facts dd { margin: 0; }

/* Histogram */
.histo { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.histo div { flex: 1; background: var(--dim); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.histo div.you { background: var(--rani); }
.histo-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--star); margin-top: 4px; }
.big-rating { font-family: var(--serif); font-size: 40px; font-weight: 700; }

/* ---------- Timeline ---------- */
.decade { margin: 26px 0; }
.decade-head { display: flex; align-items: baseline; gap: 14px; position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); }
.decade-head h2 { font-size: 40px; margin: 0; background: var(--fiesta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-row { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.year-label { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--muted); position: relative; }
.year-label::after { content: "✦"; position: absolute; right: -12px; top: 2px; font-size: 14px; color: var(--gold); }
.year-row .grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 10px 0 0; }
.spark a { flex: 1; background: linear-gradient(180deg, var(--gold), var(--saffron) 40%, var(--rani)); border-radius: 2px 2px 0 0; min-height: 3px; opacity: .85; position: relative; }
.spark a:hover { opacity: 1; background: var(--peacock); }
.spark a.zero { background: var(--bg-3); }
.spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.span-bar { height: 4px; background: var(--bg-3); border-radius: 2px; position: relative; margin-top: 4px; }
.span-bar i { position: absolute; top: 0; bottom: 0; background: var(--peacock); border-radius: 2px; }
.mode-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mode-switch button { background: var(--bg-3); border: 0; padding: 7px 12px; cursor: pointer; font-size: 13px; color: var(--muted); }
.mode-switch button.on { background: var(--fiesta); color: #fff; font-weight: 600; }

/* ---------- Nation / genre tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: block; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--saffron); transform: translateY(-2px); color: var(--text); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-head .flag { font-size: 30px; }
.tile-head h3 { margin: 0; }
.tile-stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 10px 0; }
.tile-stats b { display: block; font-size: 18px; color: var(--text); font-family: var(--serif); }
.tile-posters { display: flex; gap: 4px; }
.tile-posters .poster { width: 25%; }
.bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fiesta); }

.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table th { text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.rank-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank-table tr:hover td { background: var(--bg-2); }
.rank-table .poster { width: 34px; }
.rank-num { font-family: var(--serif); font-size: 20px; color: var(--dim); width: 36px; }

/* ---------- Lists ---------- */
.list-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: block; }
.list-card:hover { border-color: var(--rani); color: var(--text); }
.list-stack { display: flex; margin-bottom: 12px; }
.list-stack .poster { width: 20%; margin-right: -6%; box-shadow: 4px 0 12px rgba(0,0,0,.6); }
.list-stack .poster:last-child { margin-right: 0; }
.list-card h3 { margin: 0 0 2px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ranked .card::before { counter-increment: rank; content: counter(rank); position: absolute; top: -8px; left: -8px; z-index: 3; background: var(--saffron); color: #1b0d03; font-weight: 700; font-size: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.ranked { counter-reset: rank; }

/* ---------- Recommendation slots ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.slot { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.slot-num { position: absolute; top: -10px; left: 10px; background: var(--peacock); color: #032b28; font-weight: 700; font-size: 11px; padding: 1px 8px; border-radius: 999px; z-index: 3; }
.slot-empty { aspect-ratio: 2/3; border: 2px dashed var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--dim); cursor: pointer; background: none; font-size: 13px; text-align: center; padding: 10px; }
.slot-empty:hover { border-color: var(--peacock); color: var(--peacock); }
.slot-empty .plus { font-size: 36px; display: block; line-height: 1; }
.slot-note { font-size: 13px; color: var(--muted); font-style: italic; min-height: 1em; }
.slot-tools { display: flex; gap: 6px; }
.slot-tools button { flex: 1; }

.why { font-size: 11px; color: var(--rani); margin-top: 2px; }

/* ---------- Reviews / diary ---------- */
.review { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review .poster { width: 60px; }
.review h3 { margin: 0; font-size: 16px; }
.review p { margin: 4px 0 0; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--rani); }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,2,22,.8); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); }
.pick-list { max-height: 50vh; overflow: auto; margin-top: 10px; }
.pick-list button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px; cursor: pointer; }
.pick-list button:hover { background: var(--bg-3); }
.pick-list .poster { width: 32px; flex: none; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.form-row label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--fiesta); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.footer { border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 13px; padding: 22px 16px; }
.footer a { color: var(--muted); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .show-layout { grid-template-columns: 180px 1fr; }
  .show-layout aside { grid-column: 1 / -1; }
  .hero-stack { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav { display: none; width: 100%; flex-direction: column; order: 3; }
  .nav.open { display: flex; }
  .search { order: 4; width: 100%; margin: 0; }
  .search input, .search-results { width: 100%; }
  .hero { padding: 32px 20px; }
  .show-layout { grid-template-columns: 1fr; margin-top: -120px; }
  .show-layout .poster.lg { width: 150px; }
  .show-title { margin-top: 10px; }
  .grid, .strip { grid-auto-columns: 115px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .year-row { grid-template-columns: 1fr; gap: 8px; }
  .year-label::after { display: none; }
  .decade-head { top: 100px; }
  .rank-table .hide-sm { display: none; }
}
.spark-axis.abs { position: relative; height: 16px; }
.spark-axis.abs span { position: absolute; transform: translateX(-50%); }
.tiles > .panel + .panel { margin-top: 0; }
.card-info > span:last-child { white-space: nowrap; flex: none; }
.card-badges { top: 34px; }
.year-row, .decade { scroll-margin-top: 120px; }
@media (max-width: 760px) { .year-row, .decade { scroll-margin-top: 170px; } }

/* ---------- Bollywood flourishes ---------- */
/* Festive bunting strip under the top bar */
.topbar { border-bottom: 0; }
.topbar::after { content: ""; display: block; height: 4px; background: repeating-linear-gradient(90deg, var(--rani) 0 28px, var(--saffron) 28px 56px, var(--gold) 56px 84px, var(--peacock) 84px 112px, var(--royal) 112px 140px); }
.nav a.active { color: var(--gold); box-shadow: inset 0 -3px 0 var(--rani); }
.nav a:hover { color: var(--gold); }
/* Sunburst rays behind the hero, like an old film poster */
.hero::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 72% 45%, rgba(255,210,63,.13) 0 6deg, transparent 6deg 14deg); pointer-events: none; z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero .hero-stack { position: absolute; }
.hero h1 { text-shadow: 0 3px 0 rgba(90,0,50,.45), 0 0 30px rgba(255,210,63,.25); }
.hero p { color: #ffe6f2; }
.hero .btn:not(.primary) { background: rgba(28,7,33,.45); border-color: var(--gold); color: var(--gold); }
.hero .btn.primary { background: linear-gradient(90deg, var(--gold), var(--saffron)); color: #4a0a2a; text-shadow: none; }
/* Section headings with a marigold ornament */
.section-head { border-bottom: 1px dashed var(--line); }
.section-head h2 { color: var(--gold); font-weight: 600; }
.section-head h2::before { content: "✦ "; color: var(--rani); }
/* Gold-framed panels & tiles */
.panel, .tile, .list-card, .slot, .stat, .filters, .modal-card { background: linear-gradient(160deg, var(--bg-2), #22082a); }
.tile:hover, .list-card:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(255,45,149,.2); }
.stat b { color: var(--gold); }
.chip.on { color: #fff; }
.poster { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,210,63,.25) inset, 0 6px 18px rgba(0,0,0,.45); }
.mine { color: var(--rani); }
.why { color: var(--peacock); }
.ranked .card::before { background: var(--fiesta); color: #fff; }
.slot-num { background: var(--peacock); }
.histo div { background: #7b4d80; }
.histo div.you { background: var(--rani); }
.tabs button.on { color: var(--gold); border-color: var(--rani); }
.actions button.on.watch .ic { color: var(--peacock); }
.big-rating { color: var(--gold); }
.decade-head { background: rgba(28,7,33,.95); }
.footer { border-top: 0; background: linear-gradient(90deg, rgba(255,45,149,.12), rgba(138,63,252,.12), rgba(255,154,31,.12)); }
.year-label, .big-rating, .stat b, .tile-stats b, .rank-num, .show-title { font-weight: 400; }
.show-backdrop { -webkit-mask-image: radial-gradient(ellipse 75% 100% at 50% 0%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 75% 100% at 50% 0%, #000 35%, transparent 80%); opacity: .85; }
.show-backdrop::after { background: linear-gradient(180deg, rgba(28,7,33,.15), rgba(28,7,33,.6)); }
.poster-title { word-break: normal; overflow-wrap: anywhere; hyphens: auto; }
.poster.lg .poster-title { font-size: clamp(18px, 2vw, 26px); overflow-wrap: normal; }
@media (max-width: 760px) { .poster.lg .poster-title { font-size: 19px; } }
