/* RMDb: Rudy's Movie Database. Plain CSS, system fonts, nothing loaded from other sites. */
:root {
  --bg: #0f0f0f; --panel: #1a1a1a; --panel-2: #1f1f1f; --line: #2e2e2e;
  --text: #ededed; --muted: #b3b3b3; --dim: #8a8a8a;
  --gold: #f5c518; --gold-deep: #8a6d00; --amber: #f59e0b; --red: #f87171;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Top bar */
.topbar { background: #121212; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-badge { background: var(--gold); color: #000; font-weight: 900; font-size: 22px; letter-spacing: -.02em; padding: 3px 9px; border-radius: 5px; }
.logo-sub { font-size: 14px; color: var(--muted); }
.search { flex: 1; position: relative; display: flex; align-items: center; gap: 8px; background: #fff; color: #6b6b6b; border-radius: 4px; padding: 0 12px; font-size: 15px; min-width: 0; }
.search-icon { font-size: 18px; color: #444; }
@media (max-width: 640px) { .logo-sub { display: none; } .search { font-size: 14px; } }

.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; }

/* Hero */
.hero { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 820px) { .hero { grid-template-columns: 300px 1fr; align-items: start; } }
.hero-photo { background: linear-gradient(180deg, #f6ecd6, #e9dcc0); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); max-width: 340px; margin: 0 auto; width: 100%; }
.hero-photo img { width: 100%; height: auto; }
.kicker { margin: 0 0 4px; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.aka { display: block; font-size: .5em; font-weight: 600; color: var(--gold); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.stat-value { font-size: 28px; font-weight: 800; }
.stat-value .star { color: var(--gold); }
.stat-small { font-size: 16px; color: var(--muted); font-weight: 600; }
.stat-value.down { color: var(--red); }
.stat-note { font-size: 14px; color: var(--muted); }
.bio { margin: 0 0 16px; font-size: 18px; color: var(--text); max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #555; border-radius: 999px; padding: 4px 14px; font-size: 15px; color: var(--muted); }

/* Blocks */
.block { margin-bottom: 40px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.block-head .block-title { margin: 0; }
.block-title { font-size: 24px; font-weight: 800; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--gold); text-transform: uppercase; letter-spacing: -.01em; }
.block-hint { font-family: var(--mono); font-size: 14px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .block-hint { display: none; } }

/* Known for */
.known { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .known { grid-template-columns: repeat(2, 1fr); } }
.known-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.known-card:hover, .known-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.known-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.known-title { padding: 10px 12px 2px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.known-meta { padding: 0 12px 12px; font-size: 14px; color: var(--muted); }

/* Filmography (from Gemini's roster, rewritten as plain CSS) */
.credits { display: flex; flex-direction: column; gap: 12px; }
.credit-row { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: background .2s, border-color .2s; }
@media (min-width: 720px) { .credit-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; } }
.credit-row:hover, .credit-row:focus-visible { background: #181818; border-color: var(--amber); outline: none; }
.credit-main { display: flex; flex-direction: column; gap: 3px; }
.credit-title { font-weight: 700; font-size: 18px; color: var(--amber); }
.credit-year { color: var(--dim); font-weight: 400; font-size: 16px; }
.credit-cta { display: none; font-family: var(--mono); font-size: 14px; background: #2b2b2b; color: var(--muted); border-radius: 4px; padding: 1px 7px; margin-left: 6px; font-weight: 400; }
.credit-row:hover .credit-cta, .credit-row:focus-visible .credit-cta { display: inline-block; }
.credit-role { font-style: italic; color: var(--muted); font-size: 16px; }
.credit-incident { font-family: var(--mono); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 720px) { .credit-incident { text-align: right; max-width: 44%; } }
.incident-label { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Trivia + behind the scenes */
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1.2fr 1fr; } }
.trivia { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trivia li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; font-size: 17px; }
.bts { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bts img { width: 100%; height: auto; }
.bts figcaption { padding: 10px 14px; font-size: 15px; color: var(--muted); font-style: italic; }

.quote-block blockquote { margin: 0 0 12px; background: var(--panel); border-left: 4px solid var(--gold); border-radius: 4px; padding: 14px 18px; font-size: 20px; font-style: italic; }

.foot { border-top: 1px solid var(--line); padding: 22px 16px 36px; text-align: center; color: var(--dim); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot-links a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Database-built pages (person, title, vault) ---------- */
.topnav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 4px; }
.topnav a:hover { background: #222; }
.kicker a { color: var(--gold); text-decoration: none; }

/* Sections: open on computers, dropdowns on phones (rmdb.js folds them) */
details.sect { margin-bottom: 40px; }
details.sect > summary { list-style: none; cursor: default; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary .block-title { margin: 0; }
@media (max-width: 760px) {
  details.sect { margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
  details.sect > summary { cursor: pointer; margin: 0; padding: 14px 14px 14px 4px; min-height: 52px; align-items: center; }
  details.sect > summary .block-title { font-size: 20px; }
  details.sect > summary::after { content: "▾"; color: var(--gold); font-size: 22px; transition: transform .2s; }
  details.sect[open] > summary::after { transform: rotate(180deg); }
  details.sect > .sect-body { padding: 0 12px 14px; }
  details.sect > summary .block-hint { display: none; }
}

.story { margin: 0; font-size: 18px; max-width: 75ch; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
@media (max-width: 760px) { .story { border: 0; padding: 0; background: none; } }
button.known-card { font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.no-poster { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: repeating-linear-gradient(45deg, #1d1d1d 0 12px, #242424 12px 24px); color: var(--gold); font-weight: 800; text-align: center; padding: 16px; font-size: 17px; }
.hero-photo.no-photo { background: var(--panel); }
.initials { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 900; color: var(--gold); }
.credit-note { color: var(--dim); font-style: normal; }
blockquote cite { display: block; margin-top: 6px; font-size: 15px; font-style: normal; color: var(--muted); }
blockquote cite a { color: var(--gold); }

/* Title pages (IMDb-style) */
.title-head h1 { margin-bottom: 6px; }
.title-meta { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.tagline { margin: 0 0 22px; font-style: italic; color: var(--gold); font-size: 19px; }
.title-main { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 820px) { .title-main { grid-template-columns: 320px 1fr; align-items: start; } }
.title-poster { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); cursor: pointer; max-width: 340px; width: 100%; margin: 0 auto; }
.title-poster img { width: 100%; height: auto; }
.title-poster.no-poster { cursor: default; }
.flip-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: var(--gold); font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 4px; }
.plot { margin: 0 0 18px; font-size: 19px; line-height: 1.6; }
.facts { border-top: 1px solid var(--line); margin-bottom: 18px; }
.fact { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; flex-wrap: wrap; }
.fact-k { font-weight: 800; min-width: 110px; }
.fact a, .crew-list a, .hazard-who a { color: #5799ef; text-decoration: none; }
.fact a:hover, .crew-list a:hover, .hazard-who a:hover { text-decoration: underline; }
.drivein-badge { display: inline-block; background: var(--gold); color: #000; font-weight: 800; text-decoration: none; padding: 10px 16px; border-radius: 6px; font-size: 16px; }
.drivein-badge.soon { background: #2a2a2a; color: var(--muted); font-weight: 600; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cast-card { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-decoration: none; }
.cast-card:hover { border-color: var(--gold); }
.cast-card img, .cast-card .avatar { grid-row: span 3; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.avatar { display: flex; align-items: center; justify-content: center; background: #2a2a2a; color: var(--gold); font-weight: 900; font-size: 22px; }
.cast-name { font-weight: 800; font-size: 17px; }
.cast-role { color: var(--muted); font-size: 15px; font-style: italic; }
.cast-note { color: var(--dim); font-size: 14px; margin-top: 4px; }
.crew-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.crew-list div { border-bottom: 1px solid var(--line); padding: 8px 0; }
.crew-list dt { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.crew-list dd { margin: 2px 0 0; font-size: 17px; }
.hazard-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; background: rgba(69,10,10,.35); border-left: 4px solid var(--red); border-radius: 4px; padding: 12px 16px; margin-bottom: 12px; }
.hazard-who { font-weight: 700; }
.demise { margin: 0 0 10px; font-size: 17px; }
.demise.second { color: var(--muted); }
.dnote { margin: 0 0 12px; background: var(--panel); border-left: 4px solid var(--amber); border-radius: 4px; padding: 14px 18px; font-size: 18px; font-style: italic; }
.note-k { display: block; font-style: normal; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-weight: 700; margin-bottom: 4px; }
.bts-sect figure + figure { margin-top: 14px; }
.vault-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.vault-item { display: flex; flex-direction: column; gap: 6px; }
.vault-link { color: var(--gold); font-weight: 700; font-size: 15px; text-decoration: none; padding: 2px 4px; }

/* Flip card pop-up (the Drive-In poster card) */
body.modal-open { overflow: hidden; }
.card-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.card-modal[hidden] { display: none; }
.card-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.card-dialog { position: relative; width: min(420px, 100%); perspective: 1400px; }
.card-close { position: absolute; top: -6px; right: -6px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: #000; font-size: 20px; font-weight: 900; cursor: pointer; }
.m-card { position: relative; aspect-ratio: 3 / 4; max-height: 78vh; margin: 0 auto; cursor: pointer; outline: none; }
.m-card:focus-visible { box-shadow: 0 0 0 3px #fde68a; border-radius: 8px; }
.m-flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.m-card.is-flipped .m-flipper { transform: rotateY(180deg); }
.m-face { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 50px -15px rgba(0,0,0,.9); }
.m-front img { width: 100%; height: 100%; object-fit: cover; }
.m-noposter { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: repeating-linear-gradient(45deg, #1d1d1d 0 12px, #242424 12px 24px); color: var(--gold); font-weight: 800; font-size: 20px; }
.m-back { transform: rotateY(180deg); background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.16), transparent 60%), linear-gradient(180deg, #1f160c, #0f0a06); border: 3px solid #78350f; }
.m-back-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; font-family: Georgia, "Times New Roman", serif; overscroll-behavior: contain; }
.m-kicker { font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #b45309; font-weight: 700; }
.m-title { font-family: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; font-size: 26px; line-height: 1.08; text-transform: uppercase; color: var(--amber); }
.m-year { font-family: var(--mono); font-size: 14px; color: var(--dim); text-transform: uppercase; }
.m-plot { font-size: 16px; border-top: 1px dashed #78350f; padding-top: 8px; }
.m-box { display: flex; flex-direction: column; gap: 4px; border-radius: 4px; padding: 8px 11px; font-size: 16px; }
.m-hazard { background: rgba(69,10,10,.45); border-left: 3px solid var(--red); }
.m-inc2 { border-top: 1px dashed rgba(248,113,113,.4); padding-top: 6px; }
.m-note { background: rgba(120,53,15,.22); border-left: 3px solid var(--amber); font-style: italic; }
.m-label { font-family: var(--mono); font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.m-label.red { color: var(--red); }
.m-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.m-links a { text-align: center; text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; border-radius: 6px; }
.m-entry { background: var(--gold); color: #000; }
.m-drivein { background: transparent; color: var(--amber); border: 2px solid var(--amber); }
.m-links a[hidden], .m-box[hidden] { display: none; }
.m-hint { text-align: center; color: var(--muted); font-size: 14px; font-family: var(--mono); margin: 12px 0 0; position: relative; }
@media (prefers-reduced-motion: reduce) { .m-flipper { transition: none; } }

/* ---------- Working search ---------- */
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: #111; padding: 9px 0; }
.search:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #1f1f1f; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.7); overflow: hidden; z-index: 20; }
.search-results[hidden] { display: none; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid #2a2a2a; }
.sr-item:last-child { border-bottom: 0; }
.sr-item.is-sel, .sr-item:hover { background: #2c2c2c; }
.sr-pic { width: 44px; height: 60px; flex: none; object-fit: cover; object-position: top; border-radius: 3px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 800; }
.sr-person .sr-pic { width: 48px; height: 48px; border-radius: 50%; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-title { font-weight: 700; font-size: 16px; }
.sr-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-none { padding: 14px; color: var(--muted); font-size: 15px; }
.topnav { display: flex; gap: 4px; }
@media (max-width: 640px) { .topnav a:last-child { display: none; } .topbar-inner { gap: 10px; } }

/* ---------- Home page (IMDb-style) ---------- */
.page.home { max-width: 1280px; }
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
@media (min-width: 1000px) { .hero-wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.hhero { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 28%; filter: saturate(1.1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.92) 100%); }
.hero-poster { position: absolute; left: 16px; bottom: 16px; width: 22%; max-width: 165px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,.8); background: #222; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.plus { position: absolute; top: 0; left: 0; width: 34px; height: 40px; background: rgba(0,0,0,.6); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.hero-text { position: absolute; left: calc(min(22%, 165px) + 32px); right: 16px; bottom: 18px; display: flex; gap: 14px; align-items: center; }
.hero-play { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); color: #fff; font-size: 24px; cursor: pointer; padding-left: 5px; }
.hero-play:hover { border-color: var(--gold); color: var(--gold); }
.hero-title { display: block; color: #fff; text-decoration: none; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; }
.hero-title:hover { text-decoration: underline; }
.hero-sub { display: block; color: #cfcfcf; font-size: 16px; margin-top: 4px; }
.hero-meta { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.stars { color: var(--gold); font-weight: 700; }
.hero-arrow { position: absolute; top: 40%; z-index: 3; width: 44px; height: 64px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.45); color: #fff; font-size: 34px; cursor: pointer; border-radius: 4px; }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
.hero-arrow:hover { color: var(--gold); border-color: var(--gold); }
.upnext { display: flex; flex-direction: column; }
.upnext-head { color: var(--gold); font-size: 20px; margin: 0 0 8px; font-weight: 800; }
.upnext-list { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #1a1a1a, #111); border-radius: 6px; padding: 10px; flex: 1; }
.upnext-item { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; border-radius: 4px; font: inherit; }
.upnext-item:hover { background: #222; }
.upnext-item[hidden] { display: none; }
.upnext-item img, .upnext-item .no-poster { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 3px; flex: none; }
.upnext-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upnext-play { color: var(--muted); font-size: 14px; }
.upnext-title { font-size: 16px; font-weight: 600; }
.upnext-sub { font-size: 14px; color: var(--muted); }
.upnext-meta { font-size: 14px; }
.votes { color: var(--dim); font-weight: 400; }
.browse { margin-top: 10px; color: #fff; font-weight: 800; text-decoration: none; font-size: 17px; }
.browse:hover { color: var(--gold); }
@media (max-width: 999px) { .upnext-list { flex-direction: row; overflow-x: auto; } .upnext-item { min-width: 260px; } .upnext-head { margin-top: 4px; } }
@media (max-width: 640px) { .hhero { aspect-ratio: 4 / 3; } .hero-poster { display: none; } .hero-text { left: 16px; right: 16px; bottom: 14px; } .hero-title { font-size: 20px; } .hero-play { width: 48px; height: 48px; font-size: 18px; flex: none; } .hero-sub { display: none; } .hero-arrow { width: 44px; height: 44px; top: 38%; } .top-plot { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } }

.chips-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 30px; }
.chip-link { border: 1px solid #555; border-radius: 999px; padding: 6px 14px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.chip-link:hover { border-color: var(--gold); color: var(--gold); }

.home-block { margin-bottom: 44px; }
.home-title { font-size: 24px; font-weight: 800; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--gold); }
.home-title a { color: inherit; text-decoration: none; }
.home-title a:hover { color: var(--gold); }
.home-title.gold { border: 0; padding: 0; color: var(--gold); }
.home-sub { margin: -8px 0 14px 16px; color: var(--muted); font-size: 15px; }
.kicker-row { display: flex; gap: 120px; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }

.featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feat { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.collage { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 6px; overflow: hidden; aspect-ratio: 9 / 5; background: #222; }
.collage img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.list-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.7); padding: 3px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }
.feat-title { font-weight: 700; font-size: 16px; }
.feat-link { color: #5799ef; font-size: 15px; }
.feat:hover .feat-title { text-decoration: underline; }

.spotlight { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 2fr; } }
.spot-q { margin: -6px 0 14px 16px; color: var(--muted); }
.spot-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; text-decoration: none; color: var(--text); font-size: 15px; }
.spot-card img { width: 120px; border-radius: 6px; background: #f3ead4; }
.spot-card strong { display: block; font-size: 20px; margin-bottom: 6px; }
.spot-card span span { display: block; }
.spot-k { font-weight: 800; margin-top: 8px; }
.ep-tabs { display: flex; gap: 6px; align-items: flex-end; border-bottom: 1px dashed #444; padding-bottom: 6px; overflow-x: auto; }
.ep { flex: 1; min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; height: 120px; justify-content: flex-end; }
.ep-bar { width: 100%; display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 3px 3px 0 0; font-size: 14px; color: var(--text); }
.ep.is-on .ep-bar { background: var(--gold); color: #000; font-weight: 800; }
.ep-year { font-size: 14px; font-weight: 700; }
.ep.is-on .ep-year { color: #fff; }
.h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; } .h5 { height: 50%; } .h6 { height: 60%; } .h7 { height: 66%; } .h8 { height: 76%; } .h9 { height: 86%; } .h10 { height: 96%; }
.ep-pane { display: none; grid-template-columns: 1fr; background: #1a1a1a; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.ep-pane.is-on { display: grid; }
@media (min-width: 640px) { .ep-pane.is-on { grid-template-columns: 1.3fr 1fr; } }
.ep-img { padding: 0; border: 0; cursor: pointer; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.ep-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ep-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ep-kicker { color: var(--muted); font-size: 14px; }
.ep-title { color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; }
.ep-title:hover { color: var(--gold); }
.ep-label { margin-top: 6px; color: var(--red); font-family: var(--mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ep-info p { margin: 0; }

.top-big-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .top-big-row { grid-template-columns: repeat(3, 1fr); } }
.top-big { display: grid; grid-template-columns: 140px 1fr; gap: 14px; background: #1a1a1a; border-radius: 6px; padding: 12px; }
.top-poster { padding: 0; border: 0; cursor: pointer; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; background: #222; align-self: start; }
.top-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.top-info { display: flex; flex-direction: column; gap: 4px; font-size: 15px; min-width: 0; }
.rank { align-self: flex-start; background: #1a4aa8; color: #fff; font-weight: 800; font-size: 14px; padding: 1px 8px; border-radius: 3px; }
.top-title { color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; }
.top-title:hover { text-decoration: underline; }
.top-meta { color: var(--muted); font-size: 14px; }
.rate { color: #5799ef; text-decoration: none; margin-left: 6px; }
.top-flip { align-self: flex-start; background: none; border: 0; color: #5799ef; cursor: pointer; padding: 0; font: inherit; font-size: 14px; }
.top-plot { margin: 4px 0 0; font-size: 14px; color: #cfcfcf; }
.top-small-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.top-small { position: relative; background: #1a1a1a; border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.top-small .rank { position: absolute; top: 6px; left: 6px; }
.top-small img, .top-small .no-poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.top-small-title { padding: 8px 10px; font-size: 15px; font-weight: 700; }
.see-all { display: block; text-align: center; margin: 16px auto 0; max-width: 420px; background: #1f1f1f; border-radius: 999px; padding: 8px; color: #5799ef; text-decoration: none; font-weight: 700; }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-color: #444 transparent; }
.scroller > * { scroll-snap-align: start; }
.fav { background: #1a1a1a; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.fav-poster { position: relative; padding: 0; border: 0; cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; background: #222; }
.fav-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fav-meta { padding: 8px 10px 0; font-size: 15px; }
.fav-title { padding: 2px 10px 12px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.fav-title:hover { text-decoration: underline; }
.people-row { grid-auto-columns: 150px; }
.person-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); text-align: center; }
.person-circle img, .avatar.big { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: #2a2a2a; }
.avatar.big { font-size: 40px; }
.person-circle:hover img, .person-circle:hover .avatar { box-shadow: 0 0 0 3px var(--gold); }
.pc-rank { font-size: 14px; color: var(--muted); }
.pc-name { font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .person-circle img, .avatar.big { width: 112px; height: 112px; } .people-row { grid-auto-columns: 120px; } .kicker-row { gap: 40px; } }
/* Grid children may not push the page wider than the phone (scrolling rows stay inside) */
.hero-wrap > *, .spotlight > *, .top-big-row > *, .ep-pane > *, .two-col > *, .title-main > *, .hero > * { min-width: 0; }
/* Phones: finger-sized tap targets (about 44px) */
@media (max-width: 760px) {
  .topnav a { padding: 12px 12px; }
  .chip-link { padding: 11px 16px; display: inline-block; }
  .browse { display: inline-block; padding: 10px 0; }
  .vault-link { display: inline-block; padding: 10px 4px; }
  .fact a, .crew-list a, .hazard-who a { display: inline-block; padding: 10px 0; }
  .search input { min-height: 44px; }
  .top-flip { display: inline-block; padding: 11px 0; }
}
@media (max-width: 760px) {
  .hero-photo:not(.no-photo) { max-width: 220px; }
  .upnext-list { flex: none; }
}
