/* CineVault — dark cinematic theme. Original design, mobile-first. */
:root {
  --bg: #0a0d14;
  --surface: #111624;
  --surface-2: #1a2136;
  --border: #242d47;
  --text: #eef1f8;
  --muted: #9aa3b8;
  --accent: #f5b50a;
  --accent-ink: #1a1405;
  --danger: #e5484d;
  --radius: 10px;
  --maxw: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.55; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
main { min-height: 60vh; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-word { font-size: 1.35rem; font-weight: 800; letter-spacing: .5px; }
.logo-word em { font-style: normal; color: var(--accent); }
.header-search { flex: 1; display: flex; max-width: 420px; }
.header-search input {
  flex: 1; padding: .5rem .8rem; border: 1px solid var(--border);
  border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface);
  color: var(--text); font-size: .95rem;
}
.header-search button {
  padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 0 8px 8px 0;
  background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem;
}
.main-nav { display: none; gap: 1.1rem; margin-left: auto; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.auth-area { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.main-nav + .auth-area { margin-left: 0; }
.nav-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; margin-left: auto; }
.mobile-nav { padding: .5rem 1rem 1rem; display: grid; gap: .4rem; border-top: 1px solid var(--border); }
.mobile-nav a { color: var(--text); font-weight: 600; padding: .45rem 0; }
.mobile-nav .header-search { max-width: none; margin-bottom: .5rem; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
  .header-search { display: flex; }
}
@media (max-width: 899px) {
  .header-inner .header-search { display: none; }
  .auth-area { margin-left: 0; }
}

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; cursor: pointer; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-watchlist {
  width: 100%; margin-top: .5rem; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: .45rem .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .4px; cursor: pointer;
}
.btn-watchlist:hover { border-color: var(--accent); color: var(--accent); }
.btn-watchlist.saved { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip {
  display: inline-block; padding: .3rem .8rem; margin: 0 .4rem .4rem 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: .85rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip-row { margin-bottom: 1.5rem; }

/* ---------- hero carousel ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-track { position: relative; }
.hero-slide { position: relative; min-height: 62vh; display: flex; align-items: flex-end; }
.hero-slide[hidden] { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,20,.25) 0%, rgba(10,13,20,.55) 55%, var(--bg) 100%); }
.hero-text { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 3rem 1rem 3.5rem; width: 100%; }
.hero-kicker { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: .5rem; }
.hero-text h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); margin: 0 0 .4rem; }
.hero-tagline { color: var(--accent); font-style: italic; margin: 0 0 .5rem; }
.hero-overview { color: #d5dbe9; max-width: 640px; }
.hero-actions { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,13,20,.6); border: 1px solid var(--border); color: #fff;
  font-size: 1.2rem; cursor: pointer;
}
.hero-arrow.prev { left: .8rem; } .hero-arrow.next { right: .8rem; }
.hero-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.hero-dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #5a6378; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--accent); }

/* ---------- rails ---------- */
.home-rails, .list-page, .search-page, .static-page, .watchlist-page,
.person-detail, .movie-detail .detail-body, .browse-strip {
  max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem;
}
.rail { margin-bottom: 2.2rem; }
.rail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .2rem; }
.rail-head h2 { font-size: 1.3rem; }
.rail-desc { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.view-all { white-space: nowrap; font-size: .8rem; font-weight: 800; letter-spacing: 1px;
  color: var(--accent); text-transform: uppercase; padding-top: .3rem; }
.rail-track {
  display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .8rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail-track .movie-card { flex: 0 0 150px; scroll-snap-align: start; }
@media (min-width: 700px) { .rail-track .movie-card { flex-basis: 172px; } }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1150px) { .card-grid { grid-template-columns: repeat(6, 1fr); } }
.movie-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.poster-wrap { position: relative; display: block; aspect-ratio: 2/3; background: var(--surface-2); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), #0d1220); padding: 1rem; text-align: center; color: var(--muted); }
.play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(10,13,20,.72);
  border: 1.5px solid rgba(255,255,255,.85); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s;
}
.poster-wrap:hover .play-overlay { opacity: 1; }
.card-body { padding: .6rem .7rem .8rem; }
.rating-badge {
  display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; font-size: .82rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .15rem .5rem;
}
.rating-badge .star { color: var(--accent); }
.rating-badge.big { font-size: 1.05rem; padding: .3rem .8rem; }
.card-title { font-size: .92rem; margin: .45rem 0 .1rem; }
.card-title a { color: var(--text); }
.card-meta { color: var(--muted); font-size: .8rem; margin: 0; }
.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ---------- detail page ---------- */
.detail-hero { position: relative; background: #000; }
/* merged from classic CineVault design: sticky section tabs */
.detail-tabs { display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--maxw); margin: 0 auto;
  padding: .8rem 1rem; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.detail-tabs a { background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: .82rem; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; }
.detail-tabs a:hover { border-color: var(--accent); color: var(--accent); }
/* merged: gold gradient initial avatars for cast without photos */
.cast-avatar { aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.cast-avatar span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.7rem; font-weight: 800; color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), #d99a2b); box-shadow: 0 4px 14px rgba(212,175,55,.3); }
/* merged: prominent score card */
.score-card { display: inline-flex; align-items: center; gap: .9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: .7rem 1.1rem; }
.score-card .score-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.score-card .score-num small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.score-card .score-meta { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.score-card .score-meta strong { color: var(--text); display: block; font-size: .82rem; }.detail-backdrop { width: 100%; max-height: 52vh; object-fit: cover; opacity: .55; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 98%); }
.detail-top { position: relative; max-width: var(--maxw); margin: -9rem auto 0; padding: 0 1rem;
  display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .detail-top { grid-template-columns: 220px 1fr; } }
.detail-poster img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; max-width: 220px; }
.detail-facts h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.tagline { color: var(--accent); font-style: italic; }
.facts-line { display: flex; gap: .8rem; align-items: center; color: var(--muted); flex-wrap: wrap; }
.cert { border: 1px solid var(--border); border-radius: 4px; padding: .05rem .4rem; font-size: .78rem; }
.genre-line { margin: .6rem 0; }
.rating-row { display: flex; align-items: center; gap: .8rem; margin: .6rem 0; flex-wrap: wrap; }
.vote-count { color: var(--muted); font-size: .85rem; }
.imdb-link { font-size: .85rem; font-weight: 700; }
.overview { max-width: 720px; }
.detail-actions { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.detail-section { margin-top: 2.2rem; }
.detail-section h2 { font-size: 1.25rem; border-left: 3px solid var(--accent); padding-left: .6rem; }
.cast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 600px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cast-grid { grid-template-columns: repeat(6, 1fr); } }
.cast-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cast-card img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.cast-card h3 { font-size: .9rem; margin: .5rem .6rem 0; }
.cast-card h3 a { color: var(--text); }
.character { color: var(--muted); font-size: .8rem; margin: .1rem .6rem .7rem; }
.crew-list { display: grid; gap: .5rem; }
.crew-row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.crew-row dt { color: var(--muted); font-weight: 600; }
.crew-row dd { margin: 0; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { color: var(--muted); font-weight: 600; width: 180px; }
.ratings-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.rating-big { font-size: 2rem; display: flex; align-items: baseline; gap: .4rem; }
.rating-big .star { color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { border-radius: 8px; border: 1px solid var(--border); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-list { list-style: none; padding: 0; display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.linklike { background: none; border: 1px solid var(--border); color: var(--accent); border-radius: 999px;
  padding: .4rem .9rem; cursor: pointer; font-size: .85rem; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 700; }

/* ---------- person page ---------- */
.person-top { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .person-top { grid-template-columns: 220px 1fr; } }
.person-photo img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; max-width: 220px; }
.kicker { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: .4rem; }
.bio { max-width: 720px; }
.filmography { list-style: none; padding: 0; }
.filmography li { padding: .55rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.film-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- list / search / static ---------- */
.page-head { margin-bottom: 1.2rem; }
.page-sub { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0 1rem; color: var(--muted); }
.empty { color: var(--muted); padding: 2rem 0; }
.search-form { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.search-form input[type="search"] { padding: .7rem 1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1rem; width: 100%; }
.filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.filters label { display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); }
.filters select { padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); }
.search-status { color: var(--muted); }
.static-page { max-width: 820px; }
.prose p { margin: 0 0 1em; color: #d5dbe9; }
.prose h2 { margin-top: 1.6em; font-size: 1.2rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; background: #070a11; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem; display: grid; gap: 1.2rem; }
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.tmdb-attr { display: flex; align-items: center; gap: .8rem; }
.tmdb-attr img { height: 34px; }
.tmdb-attr p { color: var(--muted); font-size: .8rem; margin: 0; }
.copyright { color: var(--muted); font-size: .8rem; }

/* ---------- trailer modal / toast ---------- */
.trailer-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 1rem; }
.trailer-modal[hidden] { display: none; }
.trailer-box { position: relative; width: min(900px, 100%); }
.trailer-frame { position: relative; padding-bottom: 56.25%; height: 0; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-close { position: absolute; top: -2.4rem; right: 0; background: none; border: 0;
  color: #fff; font-size: 2rem; cursor: pointer; }
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: .8rem 1.2rem; border-radius: 10px; max-width: min(92vw, 480px); font-size: .9rem;
}
.user-chip { display: flex; align-items: center; gap: .5rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- search result list (vertical rows: poster left, info right) ---------- */
.result-list { display: grid; gap: .9rem; }
.result-row {
  display: flex; gap: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem;
}
.result-poster { flex: 0 0 96px; align-self: flex-start; }
.result-poster img { border-radius: 6px; width: 100%; height: auto; }
.poster-fallback-sm { aspect-ratio: 2/3; border-radius: 6px; font-size: .8rem; }
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.result-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.result-title a { color: var(--text); }
.result-meta { color: var(--muted); font-size: .85rem; margin: 0; }
.result-overview {
  color: var(--muted); font-size: .9rem; margin: .25rem 0 .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rating-src { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .4px; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
@media (min-width: 700px) {
  .result-poster { flex-basis: 128px; }
  .result-row { padding: 1rem; }
}

/* ---------- ranked list pages (numbered rows) ---------- */
.ranked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ranked-row {
  display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .9rem;
}
.rank-num {
  flex: 0 0 2.4rem; text-align: center; font-size: 1.35rem; font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.ranked-poster { flex: 0 0 56px; align-self: center; }
.ranked-poster img { border-radius: 4px; width: 100%; height: auto; }
.ranked-info { flex: 1; min-width: 0; }
.ranked-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.ranked-title a { color: var(--text); }
.ranked-meta { color: var(--muted); font-size: .85rem; margin: .15rem 0 0; }
@media (min-width: 700px) {
  .ranked-poster { flex-basis: 72px; }
  .ranked-title { font-size: 1.12rem; }
}

/* ---------- rankings strip on homepage ---------- */
.ranked-strip { margin: 0 0 2.2rem; }
.ranked-strip h2 { font-size: 1.3rem; }

/* ---------- search type tabs ---------- */
.type-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.type-tab {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 700;
  cursor: pointer;
}
.type-tab:hover { border-color: var(--accent); color: var(--accent); }
.type-tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.search-hint { color: var(--muted); font-size: .85rem; margin: -.4rem 0 1rem; }
.type-badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: .1rem .45rem; margin-bottom: .35rem;
}

/* ---------- seasons & episodes ---------- */
.season-list { display: grid; gap: .9rem; }
.season-row {
  display: flex; gap: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem;
  color: var(--text);
}
.season-row:hover { border-color: var(--accent); text-decoration: none; }
.season-row img { width: 96px; border-radius: 6px; flex-shrink: 0; }
.season-row .poster-fallback-sm { width: 96px; flex-shrink: 0; }
.season-info { min-width: 0; }
.season-info h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.season-overview { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.episode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.episode-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem 1rem;
}
.episode-row a { color: var(--text); font-weight: 600; }
.episode-row a:hover { color: var(--accent); }
.episode-row strong { color: var(--accent); margin-right: .4rem; }

/* ---------- studio / company marks ---------- */
.studio-mark {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1b2340 0%, var(--surface-2) 55%, #0b0f1c 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.studio-mark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,175,55,.12) 0%, transparent 60%);
}
.studio-mark span {
  position: relative;
  font-size: 2.6rem; font-weight: 800; color: var(--accent);
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(212,175,55,.25), inset 0 0 12px rgba(212,175,55,.12);
  background: rgba(10,13,22,.6);
}
/* studio cards: compact, centered, premium */
.rail-track .studio-card { flex: 0 0 138px; scroll-snap-align: start; }
.studio-card { text-align: center; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.studio-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.studio-card .card-title { font-size: .85rem; line-height: 1.25; padding: .65rem .5rem 0; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.studio-card .card-title a { color: var(--text); }
.studio-card:hover .card-title a { color: var(--accent); }
.studio-card .card-meta { font-size: .75rem; color: var(--muted); padding: .25rem .5rem .9rem; margin: 0; }
.studio-mark-lg { aspect-ratio: auto; min-height: 220px; border: 1px solid var(--border); border-radius: var(--radius); }
.company-logo { object-fit: contain; background: #fff; padding: 1rem; }
.person-photo-wide img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; max-width: 480px; }

/* ---- rankings index (/rankings/) ---- */
.rankings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.ranking-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ranking-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ranking-card-icon { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #0d0d0f; background: radial-gradient(circle at 30% 30%, #ffe9a8, var(--accent) 70%); border-radius: 50%; }
.ranking-card-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ranking-card-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.ranking-card:hover .ranking-card-title { color: var(--accent); }
.ranking-card-desc { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.ranking-card-arrow { margin-left: auto; color: var(--accent); font-size: 1.25rem; flex: 0 0 auto; }
