/* MoviesMythri storefront design system (dark cinematic theme, gold + maroon).
   Loaded after Bootstrap + theme.css on every public page. Clashing class names are prefixed mm-. */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=Noto+Sans+Telugu:wght@500;700&display=swap");
:root {
  --bg: #0a0810;
  --bg-2: #100b16;
  --maroon: #7a1f2b;
  --surface: #16121d;
  --surface-2: #1e1926;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2ecf5;
  --muted: #a79db0;
  --faint: #6f6579;
  --gold: #f4c430;
  --gold-soft: #ffde7a;

  --c-people: #f4c430;
  --c-looks: #ff6b9d;
  --c-production: #37d29a;
  --c-content: #6aa9ff;
  --c-lifestyle: #ffa14a;

  --maxw: 1120px;
  --r: 14px;

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, sans-serif;
  --f-telugu: "Noto Sans Telugu", "Nirmala UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Navbar ---------- */
.mm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.mm-nav .nav-inner { height: 60px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--gold); color: #1a1206;
  font-family: var(--f-display); font-size: 20px; border-radius: 9px;
}
.brand .word { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.5px; }
.brand .word span { color: var(--gold); }
.nav-links {
  display: none; gap: 20px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-search {
  margin-left: auto; display: none; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; color: var(--faint); font-size: 14px;
}
@media (min-width: 700px) {
  .nav-links { display: flex; }
  .nav-search { display: flex; }
}

/* ---------- Buttons / chips shared ---------- */
.mm-btn {
  font-family: var(--f-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  display: inline-block;
}
.mm-btn.primary { background: var(--gold); color: #1a1206; }
.mm-btn.primary:hover { background: var(--gold-soft); }
.mm-btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.mm-btn.ghost:hover { border-color: var(--muted); }

.chip {
  font-family: var(--f-head); font-weight: 600; font-size: 13px;
  letter-spacing: 0.6px; text-transform: uppercase; color: rgba(255,255,255,0.82);
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Hub hero ---------- */
.mm-hero { position: relative; overflow: hidden; }
.mm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 20% -10%, rgba(122, 31, 43, 0.6) 0%, transparent 60%),
    radial-gradient(70% 60% at 95% 0%, rgba(244, 196, 48, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #1a0d12 0%, var(--bg) 78%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 32px 0 34px; }
.poster {
  width: 100%; max-width: 260px; aspect-ratio: 2 / 3; border-radius: 16px;
  position: relative; background: linear-gradient(155deg, var(--maroon) 0%, #24070d 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-strong);
  overflow: hidden; flex-shrink: 0;
}
.poster .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); font-family: var(--f-head); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  padding: 4px 9px; border-radius: 6px;
}
.poster .ptitle {
  position: absolute; inset: auto 0 0 0; padding: 22px 18px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.poster .ptitle b { display: block; font-family: var(--f-display); font-size: 30px; line-height: 0.95; letter-spacing: 0.5px; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.poster .ptitle small { display: block; margin-top: 8px; font-family: var(--f-head); letter-spacing: 3px; font-size: 11px; color: rgba(255,255,255,0.72); }

.hero-body { width: 100%; text-align: center; }
h1.title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 12vw, 78px); line-height: 0.92; letter-spacing: 0.5px; text-wrap: balance; }
h1.title .yr { color: var(--muted); font-size: 0.5em; }
.telugu { font-family: var(--f-telugu); font-weight: 500; font-size: clamp(18px, 5vw, 24px); color: var(--muted); margin: 8px 0 0; }
.tagline { font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: clamp(16px, 4.5vw, 20px); color: var(--gold-soft); margin: 16px 0 0; text-wrap: balance; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 22px 0 0; }
.rating { display: flex; align-items: center; gap: 9px; }
.rating .star { color: var(--gold); font-size: 26px; line-height: 1; }
.rating .num { font-family: var(--f-display); font-size: 30px; }
.rating .of { font-size: 12px; color: var(--muted); text-align: left; line-height: 1.25; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; margin: 28px auto 0; max-width: 560px; text-align: left; }
.facts dt { font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

@media (min-width: 820px) {
  .hero-inner { flex-direction: row; align-items: flex-start; gap: 44px; padding: 46px 0 44px; }
  .poster { max-width: 280px; }
  .hero-body { text-align: left; }
  .chips, .actions { justify-content: flex-start; }
  .facts { margin-left: 0; grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-head); font-size: 14px; letter-spacing: 0.3px; color: var(--faint); padding: 20px 0 0; }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: rgba(255,255,255,0.2); }
.crumb .here { color: var(--muted); }

/* ---------- Section scaffolding ---------- */
section.block { padding: 34px 0 0; }
.sec-head { margin: 0 0 18px; }
h2.sec-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 7vw, 38px); letter-spacing: 0.5px; }
.sec-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
a.stat { transition: border-color .18s, background .18s; }
a.stat:hover { border-color: rgba(244,196,48,0.45); background: var(--surface-2); }
.stat .lbl { font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.stat .val { font-family: var(--f-display); font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .note { font-size: 13px; margin-top: 3px; color: var(--muted); }
.stat .note.go { color: var(--gold); font-weight: 600; }
.stat .note.win { color: var(--c-production); font-weight: 600; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About / card ---------- */
.mm-card, .post-content .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.mm-card h2, .post-content .card h2 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.mm-card p, .post-content .card p { margin: 0; color: var(--muted); max-width: 68ch; }
.mm-card p + p, .post-content .card p + p { margin-top: 12px; }

/* ---------- Spoke grid ---------- */
.mm-cat { margin-top: 26px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-head h3 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cat-head .rule { flex: 1; height: 1px; background: var(--border); }
.spokes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .spokes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .spokes { grid-template-columns: repeat(3, 1fr); } }
.spoke {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); padding: 20px; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.spoke::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: 0.55; transition: opacity .18s; }
.spoke:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.spoke:hover::before { opacity: 1; }
.spoke:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spoke .ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.spoke h4 { margin: 16px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: 0.3px; }
.spoke p { margin: 5px 0 0; font-size: 14px; color: var(--muted); flex: 1; }
.spoke .go { margin-top: 16px; font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap .18s; }
.spoke:hover .go { gap: 10px; }

/* ---------- Cast strip (hub) ---------- */
.cast-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cast-head a { font-family: var(--f-head); font-weight: 600; color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.cast-head a:hover { color: var(--gold-soft); }
.cast { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.cast .person { width: 118px; flex-shrink: 0; }
.cast .avatar { width: 118px; height: 118px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(150deg, var(--surface-2), #120d18); border: 1px solid var(--border); font-family: var(--f-display); font-size: 30px; color: rgba(255,255,255,0.82); }
.cast .nm { margin-top: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast .ch { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Landing (index) ---------- */
.landing-head { padding: 48px 0 8px; }
.landing-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 9vw, 64px); line-height: 0.95; margin: 0; text-wrap: balance; }
.landing-head h1 span { color: var(--gold); }
.landing-head p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 14px 0 0; }
.grid-movies { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 28px 0 0; }
@media (min-width: 560px) { .grid-movies { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-movies { grid-template-columns: repeat(3, 1fr); } }
.movie-card { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; overflow: hidden; transition: transform .2s, border-color .2s; }
.movie-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.movie-card .art { aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 22px; }
.movie-card .art b { font-family: var(--f-display); font-size: 26px; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.movie-card .art small { display: block; margin-top: 6px; font-family: var(--f-head); letter-spacing: 3px; font-size: 11px; color: rgba(255,255,255,0.75); }
.movie-card .meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.movie-card .meta span { color: var(--muted); font-size: 14px; }
.movie-card .meta b { color: var(--gold); font-family: var(--f-head); font-size: 16px; }

/* ---------- Spoke page hero ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #150d13 0%, var(--bg) 90%);
}
.page-hero .inner { padding: 22px 0 28px; }
.page-hero .head { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.page-hero .ico { width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center; font-size: 30px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.page-hero h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 8vw, 52px); line-height: 0.95; letter-spacing: 0.5px; }
.page-hero .sub { margin: 2px 0 0; color: var(--muted); font-family: var(--f-head); font-size: 16px; letter-spacing: 0.4px; }
.page-hero .intro { margin: 18px 0 0; color: var(--muted); max-width: 68ch; }

/* ---------- People grid (cast-crew) ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 620px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(4, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-align: center; padding-bottom: 14px; }
.pcard .av { aspect-ratio: 1/1; display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; color: rgba(255,255,255,0.85); }
.pcard .nm { margin-top: 12px; font-weight: 600; }
.pcard .ch { color: var(--muted); font-size: 14px; }
.pcard .tagrole { display: inline-block; margin-top: 8px; font-family: var(--f-head); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; }

.crew { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
@media (min-width: 620px) { .crew { grid-template-columns: repeat(2, 1fr); } }
.crew .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.crew .row .role { color: var(--faint); font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.6px; font-size: 14px; }
.crew .row .name { font-weight: 600; }

/* ---------- Gallery (looks/sarees/shirts/bikes/hairstyles/beard) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gtile { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .18s, border-color .18s; }
.gtile:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.gtile .img { aspect-ratio: 3/4; position: relative; display: grid; place-items: end start; padding: 12px; }
.gtile .img .n { font-family: var(--f-display); font-size: 40px; color: rgba(255,255,255,0.28); position: absolute; top: 8px; right: 14px; }
.gtile .cap { padding: 12px 14px; }
.gtile .cap b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.gtile .cap span { color: var(--muted); font-size: 13px; }
/* gradient set for placeholder imagery */
.g1 { background: linear-gradient(150deg,#7a1f2b,#25070d); }
.g2 { background: linear-gradient(150deg,#243b6b,#0c1226); }
.g3 { background: linear-gradient(150deg,#2f6b4f,#0c1f16); }
.g4 { background: linear-gradient(150deg,#6b4a1f,#241606); }
.g5 { background: linear-gradient(150deg,#5a2f6b,#1a0c24); }
.g6 { background: linear-gradient(150deg,#6b1f4a,#240616); }
.g7 { background: linear-gradient(150deg,#1f5a6b,#06181f); }
.g8 { background: linear-gradient(150deg,#3a3f4a,#141619); }

/* ---------- Tracklist (songs) ---------- */
.album { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 620px) { .album { flex-direction: row; align-items: center; } }
.album .art { width: 100%; max-width: 200px; aspect-ratio: 1/1; border-radius: var(--r); background: linear-gradient(150deg,#6b1f4a,#12060e); display: grid; place-items: center; font-family: var(--f-display); font-size: 44px; color: rgba(255,255,255,0.3); border: 1px solid var(--border); }
.album .meta h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.album .meta p { margin: 6px 0 0; color: var(--muted); }
.tracks { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.track { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface); transition: background .15s; }
.track:last-child { border-bottom: 0; }
.track:hover { background: var(--surface-2); }
.track .num { font-family: var(--f-display); font-size: 18px; color: var(--faint); width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.track .info { flex: 1; min-width: 0; }
.track .info b { display: block; font-weight: 600; }
.track .info span { color: var(--muted); font-size: 14px; }
.track .dur { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; }
.track .play { color: var(--c-content); font-size: 20px; }

/* ---------- Quotes (dialogues) ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--c-content); border-radius: var(--r); padding: 22px 22px 18px; }
.quote .mark { font-family: var(--f-display); font-size: 46px; line-height: 0.4; color: color-mix(in srgb, var(--c-content) 55%, transparent); }
.quote blockquote { margin: 6px 0 0; font-family: var(--f-head); font-weight: 500; font-size: 20px; line-height: 1.3; }
.quote .by { margin-top: 12px; color: var(--muted); font-size: 14px; }
.quote .by b { color: var(--text); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 6px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl { position: relative; padding: 0 0 22px; }
.tl:last-child { padding-bottom: 0; }
.tl .dot { position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-production); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-production) 22%, transparent); }
.tl .date { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; font-size: 13px; color: var(--c-production); }
.tl h4 { margin: 4px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 19px; }
.tl p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }

/* ---------- Bars (budget / stats) ---------- */
.bars { display: grid; gap: 16px; }
.bar .barlbl { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bar .barlbl b { font-family: var(--f-head); font-weight: 600; font-size: 16px; }
.bar .barlbl span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar .track2 { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c-production), #8ff0c9); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; text-align: center; }
.spec .v { font-family: var(--f-display); font-size: 32px; font-variant-numeric: tabular-nums; }
.spec .l { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--faint); margin-top: 4px; }

/* ---------- Related spokes chips ---------- */
.related { padding: 40px 0 0; }
.related h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.related .row { display: flex; flex-wrap: wrap; gap: 10px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 15px; font-size: 15px; transition: border-color .15s, background .15s; }
.rchip:hover { border-color: var(--border-strong); background: var(--surface-2); }

.backlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold); font-size: 14px; }
.backlink:hover { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.mm-footer { margin-top: 46px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 34px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.foot-grid p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot-grid h5 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin: 0 0 12px; color: var(--text); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--gold); }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1.6fr 1fr 1fr; } }

/* ---------- Topic tiles (home) ---------- */
.topic-tiles { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .topic-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .topic-tiles { grid-template-columns: repeat(3, 1fr); } }
.ttile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; overflow: hidden; transition: transform .18s, border-color .18s, background .18s; }
.ttile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: .6; transition: opacity .18s; }
.ttile:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.ttile:hover::before { opacity: 1; }
.ttile .ico { width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ttile b { margin-top: 16px; font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: .3px; }
.ttile .bl { margin-top: 4px; color: var(--muted); font-size: 14px; flex: 1; }
.ttile .go { margin-top: 16px; font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 6px; transition: gap .18s; }
.ttile:hover .go { gap: 10px; }

/* ---------- Mobile nav toggle + dropdown ---------- */
.nav-toggle { margin-left: auto; background: transparent; border: 1px solid var(--border-strong); color: var(--text); font-size: 18px; line-height: 1; padding: 7px 12px; border-radius: 10px; cursor: pointer; }
@media (min-width: 700px) { .nav-toggle { display: none; } }
@media (max-width: 699px) {
  .nav-links { position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 6px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 16px; }
}

/* ---------- Section header with a "View all" link ---------- */
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.view-all { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px; color: var(--gold); white-space: nowrap; }
.view-all:hover { color: var(--gold-soft); }

/* ---------- Card: feature image → title (Latest grids + Latest movies) ---------- */
.movie-card .card-img { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; }
.movie-card .card-img .ph { color: rgba(255, 255, 255, 0.4); display: grid; place-items: center; }
.movie-card .card-title { font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.15; padding: 12px 16px 0; }
.movie-card .card-title:last-child { padding-bottom: 16px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chips2 i { font-style: normal; font-family: var(--f-head); font-size: 12px; letter-spacing: 0.3px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 9px; }
.movie-card .meta .rt { color: var(--gold); font-family: var(--f-head); font-size: 15px; }

/* ---------- Real images filling placeholder slots ---------- */
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.movie-card .card-img, .post-feature, .gtile .img, .dimg { overflow: hidden; }
.gtile .img .ph-img { position: absolute; inset: 0; }
.gtile .img .n { z-index: 1; }

/* ---------- New badge ---------- */
.mm-badge { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #1a1206; background: var(--gold); border-radius: 999px; padding: 3px 9px; }
.movie-card { position: relative; }
.movie-card .mm-badge { position: absolute; top: 10px; right: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.spoke .mm-badge { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ---------- Reusable image placeholder (photo icon over a gradient) ---------- */
.imgph { position: relative; }
.imgph::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.42' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='M4.5 17.5 9 13l3 2.5L15.5 12l4 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Full-width first-fold header (topic detail pages) ---------- */
.post-head { padding: 26px 0 24px; }
.post-head .crumb { padding: 0; }
.post-feature.wide { aspect-ratio: 21/9; }

/* ---------- Blog-post layout (dialogues detail) ---------- */
.mm-post { max-width: 660px; margin: 0 auto; padding: 26px 0 0; }
.mm-post .crumb { padding: 0; }
.post-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 8vw, 48px); line-height: 1.02; letter-spacing: 0.5px; margin: 16px 0 8px; text-wrap: balance; }
.post-meta { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.4px; color: var(--muted); margin: 0 0 20px; }
.post-feature { aspect-ratio: 16/9; border-radius: var(--r); border: 1px solid var(--border); margin: 0 0 22px; }
.post-intro { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 10px; }

.dlist { margin-top: 8px; }
.dline { padding: 24px 0; border-top: 1px solid var(--border); }
.dline:first-child { border-top: 0; }
.dnum { font-family: var(--f-display); font-size: 15px; letter-spacing: 1px; color: var(--gold); }
.dtext { font-family: var(--f-head); font-weight: 600; font-size: clamp(19px, 5vw, 23px); line-height: 1.3; margin: 8px 0 4px; }
.dctx { font-size: 14px; color: var(--faint); margin: 0 0 14px; }
.dimg { aspect-ratio: 16/9; border-radius: var(--r); border: 1px solid var(--border); }

/* ---------- Detail 70/30 layout + sidebar ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .detail-layout { grid-template-columns: 7fr 3fr; gap: 32px; } }
.detail-main { min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .detail-side { position: sticky; top: 76px; align-self: start; } }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.side-h { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; letter-spacing: 0.3px; font-size: clamp(21px, 3.4vw, 26px); line-height: 1.05; color: var(--text); }

.side-post { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 12px; transition: border-color .15s, transform .15s; }
.side-post:last-child { margin-bottom: 0; }
.side-post:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.side-img { aspect-ratio: 16/9; overflow: hidden; }
.side-pt { padding: 8px 12px 10px; font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.2; }

/* ---------- Web Stories ---------- */
.mm-stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .mm-stories { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mm-stories { grid-template-columns: repeat(4, 1fr); } }
.mm-story { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); transition: transform .15s, border-color .15s; }
.mm-story:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.story-img { position: relative; aspect-ratio: 9/16; overflow: hidden; }
.story-img .play { position: absolute; top: 8px; left: 8px; z-index: 1; font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: .5px; color: #fff; background: rgba(0,0,0,.5); border-radius: 999px; padding: 2px 9px; }
.story-cap { padding: 8px 10px 10px; font-family: var(--f-head); font-weight: 600; font-size: 14px; line-height: 1.15; }

/* ---------- Day-wise collections table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.daytable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 380px; }
.daytable th, .daytable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.daytable thead th { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; font-size: 13px; color: var(--faint); background: var(--surface-2); }
.daytable tbody tr:last-child td { border-bottom: 0; }
.daytable tbody tr:last-child { font-weight: 600; }
.daytable td:first-child { color: var(--text); }
.daytable td:nth-child(2) { color: var(--muted); }
.daytable td:last-child { color: var(--gold); font-weight: 600; }

/* ---------- Prose (legal / text pages) ---------- */
.prose { color: var(--muted); }
.prose h2 { font-family: var(--f-head); font-weight: 600; font-size: 22px; color: var(--text); margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; line-height: 1.7; max-width: 68ch; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 8px; line-height: 1.6; }
.prose a { color: var(--gold); }
.prose a:hover { color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
/* =====================================================================
   MoviesMythri additions (not in the prototype): real header/search,
   account link, mobile search, sidebar extras, generic-page dark skin.
   ===================================================================== */
body.mm-site, body { background: var(--bg); color: var(--text); font-family: var(--f-body); }
.mm-nav .nav-inner { gap: 18px; }
.mm-nav .brand { flex-shrink: 0; }
.mm-nav .brand .word { color: var(--text); }
.nav-links a { white-space: nowrap; transition: color .15s; }
.nav-links a.active { color: var(--gold); }
@media (min-width: 700px) and (max-width: 1100px) { .nav-links { gap: 14px; font-size: 13.5px; } }
@media (min-width: 700px) and (max-width: 960px) { .nav-search { display: none; } }
.nav-search input { background: transparent; border: 0; outline: 0; color: var(--text); width: 110px; font-size: 14px; padding: 0; }
.nav-search input::placeholder { color: var(--faint); }
.nav-search:focus-within { border-color: var(--border-strong); }
.mm-nav-search-mobile { display: none; }
.mm-nav-account { font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mm-nav-account:hover { color: var(--gold); }
@media (max-width: 699px) {
  .nav-links.open .mm-nav-search-mobile { display: block; padding: 12px 20px; }
  .mm-nav-search-mobile input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; color: var(--text); }
  .mm-nav-account { display: none; }
}
/* the image placeholder icon only shows when a card has no image */
.imgph:has(img)::after { display: none; }
.movie-card { display: block; color: var(--text); }
.movie-card:hover { color: var(--text); }
.movie-card .meta { gap: 10px; }
.mm-poster-art { aspect-ratio: 16/10; }
.mm-poster-art img { object-position: center 30%; }
.mm-stories-row { display: grid; }
@media (min-width: 900px) { .mm-stories-row { grid-template-columns: repeat(6, 1fr); } }
.mm-story { display: block; color: var(--text); }
.mm-story:hover { color: var(--text); }
.coming-soon { margin-top: 18px; color: var(--muted); font-size: 15px; }
.coming-soon .chip { margin: 4px 6px 0 0; display: inline-block; opacity: .75; }
.mm-social { display: flex; gap: 12px; margin-top: 12px; font-size: 18px; }
.mm-social a { color: var(--muted); } .mm-social a:hover { color: var(--gold); }
.mm-footer .brand { display: inline-flex; margin-bottom: 10px; }
.mm-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--gold); font-size: 18px; display: none; cursor: pointer; }
.mm-top.show { display: grid; place-items: center; }
.post-content img { max-width: 100%; height: auto; }
.post-content .dimg img, .post-content .gtile .img img { width: 100%; height: 100%; object-fit: cover; }
.post-content .gtile .img img { position: absolute; inset: 0; }
.post-content .post-feature img { width: 100%; height: 100%; object-fit: cover; }
.mm-empty { color: var(--muted); padding: 18px 0; }
.mm-pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.mm-pager a, .mm-pager span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; color: var(--muted); font-family: var(--f-head); }
.mm-pager .on { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.mm-group + .mm-group { margin-top: 10px; }

/* ---------- Generic pages that keep Bootstrap markup (search, tag, contact, login, web stories…) ---------- */
.mm-site .container, .mm-site .container-fluid { color: var(--text); }
.mm-site h1, .mm-site h2, .mm-site h3, .mm-site h4, .mm-site h5 { color: var(--text); }
.mm-site .text-muted, .mm-site .text-secondary { color: var(--muted) !important; }
.mm-site .card:not(.post-content .card) { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text); border-radius: var(--r); }
.mm-site .card-title, .mm-site .card-title a { color: var(--text); }
.mm-site .form-control, .mm-site .form-select { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.mm-site .form-control::placeholder { color: var(--faint); }
.mm-site .form-control:focus { background: var(--surface-2); color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(244,196,48,.15); }
.mm-site .btn-primary { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 600; }
.mm-site .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #1a1206; }
.mm-site .breadcrumb a { color: var(--muted); } .mm-site .breadcrumb-item.active { color: var(--faint); }
.mm-site .page-link { background: var(--surface); border-color: var(--border); color: var(--muted); }
.mm-site .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.mm-site .list-group-item { background: var(--surface); color: var(--text); border-color: var(--border); }
.mm-site .alert { border-radius: var(--r); }
.mm-site a.text-decoration-none, .mm-site .text-dark { color: var(--text) !important; }
.mm-site .bg-white, .mm-site .bg-light { background: var(--surface) !important; }
.mm-site .border, .mm-site .border-bottom, .mm-site .border-top { border-color: var(--border) !important; }
.mm-site .dropdown-menu { background: var(--surface-2); border-color: var(--border); }
.mm-site .dropdown-item { color: var(--text); } .mm-site .dropdown-item:hover { background: var(--surface); color: var(--gold); }
.mm-site .badge.bg-primary { background: var(--gold) !important; color: #1a1206; }
/* generic mobile bottom bar is not part of the MoviesMythri design */
.mm-site #mobileBottomNav, .mm-site #mobileBottomNav + .d-lg-none { display: none !important; }
.mm-site #readingProgress { background: var(--gold) !important; }
.mm-site .post-content { color: var(--text); font-size: 16px; line-height: 1.6; }
.mm-site .post-content > section.block:first-child { padding-top: 6px; }
.post-content .card { color: var(--text); --bs-card-color: var(--text); --bs-card-bg: var(--surface); }
.post-content .card h2 { color: var(--text); }
/* static pages (About / Privacy / Terms / Disclaimer) use the prose look */
.mm-site .page-content { color: var(--muted); max-width: 760px; }
.mm-site .page-content h2 { font-family: var(--f-head); font-weight: 600; font-size: 22px; color: var(--text); margin: 28px 0 10px; }
.mm-site .page-content p { margin: 0 0 14px; line-height: 1.7; max-width: 68ch; }
.mm-site .page-content ul { margin: 0 0 14px; padding-left: 22px; }
.mm-site .page-content li { margin: 0 0 8px; line-height: 1.6; }
.mm-site .page-content a { color: var(--gold); }
.mm-site h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: .5px; }
/* web stories listing chips */
.mm-site .ws-chip { background: var(--surface) !important; border: 1px solid var(--border-strong) !important; color: var(--muted) !important; }
.mm-site .ws-chip b { color: var(--faint); }
.mm-site .ws-chip.active, .mm-site .ws-chip:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: #1a1206 !important; }
.mm-site .ws-chip.active b { color: #1a1206; }
