:root {
  --bg: #08130f;
  --surface: #10221b;
  --surface-2: #162c24;
  --surface-3: #1b372d;
  --text: #f3f8f5;
  --muted: #9fb7ac;
  --accent: #6ee7b7;
  --accent-strong: #42ce98;
  --violet: #a78bfa;
  --blue: #7dd3fc;
  --line: rgba(225, 255, 240, .11);
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(50, 143, 108, .16), transparent 28rem),
    radial-gradient(circle at 88% 30%, rgba(93, 65, 170, .12), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .7rem 1rem; border-radius: 10px; background: var(--accent); color: #06110d; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(8, 19, 15, .84); backdrop-filter: blur(18px); }
.header-inner, .page-shell, .site-footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 850; letter-spacing: -.03em; text-decoration: none; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #07140f; background: var(--accent); font-size: .9rem; box-shadow: 0 0 28px rgba(110, 231, 183, .16); }
.top-nav { display: flex; gap: 1.8rem; }
.top-nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; }
.top-nav a:hover, .site-footer nav a:hover { color: var(--text); }

.page-shell { padding: 28px 0 80px; }
.breadcrumbs { display: flex; gap: .55rem; align-items: center; margin: 0 0 28px; color: #789087; font-size: .8rem; }
.breadcrumbs a { color: #9ab2a8; text-decoration: none; }

.movie-hero { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 40px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(125deg, rgba(26, 57, 46, .92), rgba(12, 29, 23, .94)); box-shadow: 0 30px 100px rgba(0, 0, 0, .22); overflow: hidden; position: relative; }
.movie-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 12%; bottom: -310px; border: 1px solid rgba(110, 231, 183, .25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(110,231,183,.025), 0 0 0 100px rgba(110,231,183,.018); pointer-events: none; }
.poster-wrap { position: relative; z-index: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 55px rgba(0,0,0,.42); background: #183128; }
.poster-wrap img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.poster-rating { position: absolute; left: 12px; bottom: 12px; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(4,12,9,.86); font-size: .78rem; font-weight: 800; backdrop-filter: blur(8px); }
.eyebrow, .section-kicker { margin: 0 0 .55rem; color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.original-title { margin: .7rem 0 1.45rem; color: #87a096; font-size: 1rem; }
.hero-summary { margin: 0 0 1.6rem; max-width: 580px; color: #cedbd5; font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.4rem; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: #789087; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: .2rem 0 0; color: #e2ebe7; font-size: .88rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.35rem; margin-top: 2rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: 12px; background: var(--accent); color: #07140f; font-weight: 850; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: #8bf1c8; transform: translateY(-1px); }
.text-button { color: #c7d7d0; font-size: .88rem; font-weight: 750; text-decoration: none; }
.text-button span { color: var(--accent); margin-left: .25rem; }

.taste-card { position: relative; z-index: 1; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 18, 13, .38); }
.taste-title { margin: 0 0 1rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.taste-score { display: flex; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.taste-score strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.06em; }
.taste-score span { color: var(--muted); }
.taste-score small { margin-left: auto; color: var(--accent); font-size: .7rem; font-weight: 750; }
.taste-bars { display: grid; gap: .8rem; margin-top: 1rem; }
.taste-bars div { display: grid; grid-template-columns: 92px 1fr 16px; align-items: center; gap: .6rem; font-size: .73rem; color: var(--muted); }
.taste-bars i { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--score), rgba(255,255,255,.08) var(--score)); }
.taste-bars b { color: var(--text); font-size: .74rem; text-align: right; }

.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 24px; padding: 74px 36px; }
.editorial-grid h2, .connections h2, .related-section h2, .people-section h2, .final-cta h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.13; letter-spacing: -.04em; }
.editorial-grid > div > p:not(.section-kicker) { max-width: 700px; color: #bfd0c8; font-size: 1.02rem; }
.fit-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fit-card h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.fit-card ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.fit-card li + li { margin-top: .55rem; }
.fit-card li::marker { color: var(--accent); }

.connections { scroll-margin-top: 90px; padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 26px; }
.section-heading > div > p:not(.section-kicker) { margin: .75rem 0 0; max-width: 650px; color: var(--muted); }
.graph-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.18); }
.graph-tab { border: 0; border-radius: 9px; padding: .65rem .9rem; color: var(--muted); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 800; }
.graph-tab.is-active { color: #07140f; background: var(--accent); }
.graph-frame { display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #091812; }
.graph-stage { min-width: 0; min-height: 500px; background: radial-gradient(circle at center, rgba(49, 113, 88, .18), transparent 52%); }
.graph-status { height: 100%; min-height: 500px; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.graph-detail { padding: 26px; border-left: 1px solid var(--line); background: rgba(18, 42, 33, .8); }
.detail-type { display: block; color: var(--accent); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.graph-detail h3 { margin: .65rem 0 .55rem; font-size: 1.25rem; line-height: 1.2; }
.graph-detail p { margin: 0; color: var(--muted); font-size: .84rem; }
.graph-detail img { width: 96px; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 1rem; border-radius: 10px; }
.graph-detail .detail-meta { display: block; margin: .55rem 0; color: #d7e3dd; font-size: .76rem; }
.graph-fallback { margin: 12px 0 0; color: #718a7f; font-size: .72rem; }

.related-section, .people-section { padding: 72px 36px 0; }
.section-heading.compact { align-items: center; }
.result-count { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; font-size: .72rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 34, 27, .76); }
.related-card img { width: 96px; height: 144px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.related-meta { margin: .1rem 0 .25rem; color: var(--accent); font-size: .68rem; font-weight: 750; }
.related-card h3 { margin: 0; font-size: 1rem; }
.related-card div > p:not(.related-meta) { margin: .45rem 0 .75rem; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.related-card button { padding: 0; border: 0; color: #b8ccc3; background: none; cursor: pointer; font-size: .72rem; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(184,204,195,.4); text-underline-offset: 3px; }

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.person-card { display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.person-card:hover { border-color: rgba(125,211,252,.42); transform: translateY(-2px); }
.person-monogram { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #062031; background: var(--blue); font-size: .72rem; font-weight: 900; }
.person-card strong, .person-card small { display: block; }
.person-card strong { font-size: .84rem; }
.person-card small { margin-top: .2rem; color: var(--muted); font-size: .68rem; }
.person-card i { color: var(--blue); font-style: normal; }

.final-cta { display: flex; justify-content: space-between; align-items: center; gap: 3rem; margin: 74px 36px 0; padding: 34px; border: 1px solid rgba(110,231,183,.3); border-radius: 24px; background: linear-gradient(110deg, rgba(38,100,76,.32), rgba(20,44,35,.58)); }
.final-cta p:not(.section-kicker) { max-width: 650px; margin: .8rem 0 0; color: var(--muted); }
.final-cta .primary-button { flex: 0 0 auto; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 32px 0 50px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { font-size: 1rem; }
.site-footer p { margin: .7rem 0 0; font-size: .78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

@media (max-width: 980px) {
  .movie-hero { grid-template-columns: 210px minmax(0, 1fr); }
  .taste-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 2fr; align-items: center; gap: 1.4rem; }
  .taste-title { margin: 0; }
  .taste-score { border: 0; border-right: 1px solid var(--line); padding: 0 1.4rem 0 0; }
  .taste-bars { margin: 0; }
  .graph-frame { grid-template-columns: 1fr; }
  .graph-detail { min-height: 140px; border-left: 0; border-top: 1px solid var(--line); }
  .graph-stage { min-height: 440px; }
  .people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner, .page-shell, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 62px; }
  .top-nav a:not(:first-child) { display: none; }
  .page-shell { padding-top: 18px; }
  .breadcrumbs { margin-bottom: 18px; }
  .movie-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 20px; align-items: start; }
  .hero-copy h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .original-title { margin: .35rem 0 .7rem; }
  .hero-summary { grid-column: 1 / -1; font-size: .9rem; }
  .facts { grid-template-columns: 1fr; gap: .65rem; }
  .facts div:nth-child(n+3) { display: none; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-actions .primary-button { width: 100%; }
  .text-button { display: none; }
  .taste-card { grid-template-columns: 1fr; gap: .8rem; padding: 16px; }
  .taste-title { margin: 0; }
  .taste-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .8rem; }
  .editorial-grid { grid-template-columns: 1fr; padding: 52px 4px; }
  .connections { padding: 20px 14px; border-radius: 20px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 1rem; }
  .graph-tabs { align-self: flex-start; }
  .graph-stage, .graph-status { min-height: 400px; }
  .related-section, .people-section { padding: 52px 4px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { grid-template-columns: 78px 1fr; }
  .related-card img { width: 78px; height: 117px; }
  .final-cta { flex-direction: column; align-items: stretch; margin: 52px 4px 0; padding: 25px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
