@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* CineVault — Collider-style dark theme. Original implementation, our colors. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #eeeeee;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #7c3aed;
  --accent-ink: #ffffff;
  --accent-2: #e5484d;
  --radius: 8px;
  --maxw: 1280px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Archivo", "Inter", -apple-system, 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;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
main { min-height: 60vh; }

/* ============ header (Collider-style) ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #000; border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; gap: 1rem; height: 60px;
}
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .5rem; margin-left: -.5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; }
.logo { display: flex; align-items: center; gap: .5rem; color: #fff; margin-right: auto; }
.logo:hover { color: #fff; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-word { font-size: 1.4rem; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.logo-word em { font-style: normal; color: var(--accent); }
.main-nav { display: none; align-items: stretch; height: 60px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 0 .9rem; height: 60px;
  display: flex; align-items: center; white-space: nowrap;
}
.nav-item > a:hover { color: var(--accent); }
.nav-item > a.nav-accent { color: var(--accent); }
.nav-item > a.nav-accent:hover { color: #fff; }
.sub-toggle {
  background: none; border: 0; color: var(--accent); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; padding: 0 .4rem 0 0; line-height: 1;
}
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #111; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,.6); z-index: 70;
}
.nav-item.open .submenu { display: block; }
.submenu a {
  display: block; padding: .7rem 1.1rem; color: #333; font-size: .88rem; font-weight: 600;
  border-bottom: 1px solid #1e1e22;
}
.submenu a:hover { color: var(--accent); background: #18181b; }
.submenu a:last-child { border-bottom: 0; }
.header-actions { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.header-search-btn { color: #fff; display: flex; padding: .4rem; }
.header-search-btn:hover { color: var(--accent); }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .logo { margin-right: 0; }
  .header-actions { margin-left: auto; }
}

/* ============ drawer (mobile menu, like Collider) ============ */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6);
}
.drawer-scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: min(340px, 88vw); background: #101012; border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1rem 1.4rem 2rem;
  transform: translateX(-100%); transition: transform .25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer[hidden] { display: block; visibility: hidden; }
.drawer.open[hidden] { visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-close {
  background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; padding: .2rem .4rem;
}
.drawer-close:hover { color: var(--accent); }
.drawer-nav { display: grid; }
.drawer-item { border-bottom: 1px solid #1e1e22; }
.drawer-item > a {
  display: block; padding: .9rem 0; color: #fff; font-weight: 800;
  font-size: 1.02rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.drawer-item > a.nav-accent { color: var(--accent); }
.drawer-item.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.drawer-item.has-sub > a { flex: 1; }
.drawer-item .sub-toggle { font-size: 1.4rem; padding: .7rem .2rem; }
.drawer-item .submenu {
  position: static; display: none; flex-basis: 100%;
  background: none; border: 0; box-shadow: none; min-width: 0;
}
.drawer-item.open .submenu { display: block; }
.drawer-item .submenu a {
  padding: .55rem 0 .55rem 1rem; font-size: .92rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; border-bottom: 0; color: #c9c9ce;
}

/* ============ buttons ============ */
.btn {
  display: inline-block; padding: .6rem 1.3rem; border-radius: 4px;
  font-weight: 800; font-size: .85rem; letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: #fff; border-color: #3a3a40; }
.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: 4px; padding: .5rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; 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: .35rem .9rem; margin: 0 .4rem .4rem 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-size: .85rem; font-weight: 600;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-row { margin-bottom: 1.5rem; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-track { position: relative; }
.hero-slide { position: relative; min-height: 68vh; 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(0,0,0,.15) 0%, rgba(0,0,0,.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: 2.5px;
  color: #000; background: var(--accent); text-transform: uppercase;
  padding: .3rem .8rem; margin-bottom: .8rem;
}
.hero-text h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); margin: 0 0 .4rem; text-transform: none; }
.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: 1.2rem; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 1px solid #3a3a40; 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: #000; border-color: var(--accent); }
.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); }

/* ============ sections & rails (Collider-style) ============ */
.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.6rem; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; border-bottom: 2px solid var(--border); padding-bottom: .6rem;
}
.rail-head h2 {
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0;
  border-left: 4px solid var(--accent); padding-left: .7rem;
}
.rail-desc { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.view-all {
  white-space: nowrap; font-size: .78rem; font-weight: 800; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase;
}
.view-all:hover { color: #fff; }
.rail-track {
  display: flex; gap: 1rem; 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: 176px; } }

/* ============ cards (Collider-style article cards) ============ */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.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;
  transition: transform .2s ease, border-color .2s ease;
}
.movie-card:hover { transform: translateY(-3px); border-color: #3d3d44; }
.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), #0d0d10); padding: 1rem;
  text-align: center; color: var(--muted);
}
.play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.72);
  border: 1.5px solid rgba(255,255,255,.9); 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-kicker {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: .3rem;
}
.card-body { padding: .7rem .8rem .9rem; }
.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: 4px; padding: .15rem .5rem;
}
.rating-badge .star { color: var(--accent); }
.rating-badge.big { font-size: 1.05rem; padding: .3rem .8rem; }
.card-title { font-size: .95rem; margin: .35rem 0 .15rem; font-weight: 800; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  color: var(--muted); font-size: .85rem; margin: .3rem 0 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { color: var(--muted); font-size: .78rem; margin: .3rem 0 0; }
.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* article-style wide cards (news / trailers hub) */
.article-grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: #3d3d44; }
.article-thumb { display: block; aspect-ratio: 16/9; background: var(--surface-2); position: relative; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: .9rem 1rem 1.1rem; }
.article-title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin: .3rem 0 .4rem; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--accent); }
.article-excerpt {
  color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta { color: var(--muted); font-size: .78rem; margin-top: .6rem; }

/* ============ detail page ============ */
.detail-hero { position: relative; background: #000; }
.detail-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--maxw); margin: 0 auto;
  padding: .8rem 1rem; position: sticky; top: 60px; z-index: 30;
  background: rgba(11,11,13,.94); 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: .78rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 4px;
}
.detail-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.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);
}
.score-card {
  display: inline-flex; align-items: center; gap: .9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; 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; color: var(--accent); }
.overview { max-width: 720px; color: #d5dbe9; }
.detail-actions { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.detail-section { margin-top: 2.4rem; }
.detail-section h2 {
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1.5px;
  border-left: 4px solid var(--accent); padding-left: .7rem; margin-bottom: 1rem;
}
.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: 4px;
  padding: .4rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 700;
}
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: .72rem; font-weight: 800; letter-spacing: 2px;
  color: #000; background: var(--accent); text-transform: uppercase;
  padding: .25rem .7rem; margin-bottom: .6rem;
}
.bio { max-width: 720px; color: #d5dbe9; }
.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-head h1 { text-transform: uppercase; letter-spacing: 1px; }
.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: 4px; 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: 4px; 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: 3px solid var(--accent); margin-top: 3rem; background: #000; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1rem; display: grid; gap: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 420px; }
.footer-sections { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-sections a { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.footer-sections a:hover { color: var(--accent); }
.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; }
.copyright a { color: var(--muted); }

/* ============ trailer modal / toast ============ */
.trailer-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88);
  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: 8px; 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 results ============ */
.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: 4px; width: 100%; height: auto; }
.poster-fallback-sm { aspect-ratio: 2/3; border-radius: 4px; 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 lists ============ */
.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; }
}
.ranked-strip { margin: 0 0 2.2rem; }

/* ============ search tabs ============ */
.type-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .4rem; }
.type-tab {
  padding: .45rem 1rem; border-radius: 4px; 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); }
.season-row img { width: 96px; border-radius: 4px; 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 marks ============ */
.studio-mark {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1b1b1f 0%, var(--surface-2) 55%, #0b0b0d 100%);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.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;
  background: rgba(10,10,12,.6);
}
.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; }
.studio-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.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-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);
}
.ranking-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.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; }

/* ============ news teaser ============ */
.news-teaser { margin-bottom: 2.6rem; }
.np-section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--border); padding-bottom: .6rem; margin-bottom: 1rem;
}
.np-section-head h2 {
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0;
  border-left: 4px solid var(--accent); padding-left: .7rem;
}

/* ============ Collider-style homepage ============ */
.cl-hero-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.cl-hero-feature { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #f0f0f0; margin: 16px 16px 0; }
.cl-hero-feature img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.cl-hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem 1.4rem 1.4rem; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 50%, transparent 100%); }
.cl-hero-text h1 { font-size: 1.35rem; margin: 0; color: #fff; font-weight: 800; line-height: 1.3; letter-spacing: -0.2px; }
.cl-hero-text p { color: #555; margin: .4rem 0 0; font-size: .95rem; }
.cl-hero-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.cl-hero-card { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #f0f0f0; aspect-ratio: 16/10; margin: 12px 16px 0; }
.cl-hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cl-hero-card h3 { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 3rem 1.4rem 1.4rem; font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.2px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 50%, transparent 100%); }

.cl-latest-side { background: #f5f5f5; border-radius: 8px; padding: 1.2rem; align-self: start; }
.cl-latest-side h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 1rem; border-bottom: 2px solid var(--accent); padding-bottom: .5rem; }
.cl-latest-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.cl-latest-side li a { display: flex; gap: .8rem; text-decoration: none; }
.cl-latest-side li img { width: 90px; height: 51px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.cl-latest-side h3 { font-size: .85rem; margin: .2rem 0 0; color: var(--text); line-height: 1.35; }
.cl-time { font-size: .75rem; color: var(--muted); }
.cl-more { display: block; text-align: right; margin-top: 1rem; font-size: .85rem; color: var(--accent); font-weight: 600; }

.cl-section { margin-bottom: 2.5rem; }
.cl-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cl-section-head h2 { font-size: 1.2rem; margin: 0; }
.cl-section-head a { font-size: .85rem; color: var(--accent); font-weight: 600; }
.cl-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cl-big-card { display: block; border-radius: 16px; overflow: hidden; background: #f0f0f0; text-decoration: none; position: relative; aspect-ratio: 16/10; margin-bottom: 1rem; }
.cl-big-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cl-big-card h3 { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 3rem 1.2rem 1rem; font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 50%, transparent 100%); }
.cl-big-card .cl-byline { position: absolute; bottom: 0.6rem; left: 1.2rem; right: 1.2rem; color: #ddd; font-size: 0.8rem; z-index: 2; }
.cl-big-card h3 { padding-bottom: 2.2rem; }

.cl-shorts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cl-short { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #f0f0f0; text-decoration: none; }
.cl-short img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.cl-play { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: 2rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.cl-short h4 { font-size: .78rem; padding: .5rem; margin: 0; color: var(--text); line-height: 1.3; }

.cl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.cl-list li a { display: flex; justify-content: space-between; align-items: center; background: #f5f5f5; border-radius: 6px; padding: .9rem 1rem; text-decoration: none; }
.cl-list h3 { font-size: .92rem; margin: 0; color: var(--text); }
.cl-list span { color: var(--accent); font-weight: 700; white-space: nowrap; }

.cl-feed .cl-tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.cl-tabs button { background: #f0f0f0; border: 1px solid var(--border); color: var(--text); padding: .45rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600; cursor: pointer; text-transform: uppercase; }
.cl-tabs button.active { background: var(--accent); color: #0d0d0f; border-color: var(--accent); }
.cl-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.cl-feed-list li a { display: flex; gap: 1.2rem; text-decoration: none; }
.cl-feed-list img { width: 140px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.cl-feed-list h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--text); }
.cl-feed-list p { font-size: .88rem; color: var(--muted); margin: 0 0 .4rem; line-height: 1.45; }
.cl-meta { font-size: .8rem; color: var(--muted); }
.cl-see-more { display: block; text-align: center; background: #f0f0f0; border-radius: 6px; padding: .9rem; margin-top: 1.5rem; color: var(--text); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }

@media (max-width: 900px) {
  .cl-hero-wrap { grid-template-columns: 1fr; }
  .cl-cards-3 { grid-template-columns: 1fr; }
  .cl-shorts { grid-template-columns: repeat(2, 1fr); }
  .cl-duo { grid-template-columns: 1fr; }
  .cl-feed-list img { width: 100px; }
}

/* Date badges on featured cards */
.cl-big-card { position: relative; }
.cl-date-badge { position: absolute; top: .8rem; left: .8rem; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; padding: .3rem .6rem; border-radius: 4px; }

/* Shorts metadata */
.cl-short-wrap h4 { font-size: .82rem; margin: .5rem 0 .2rem; line-height: 1.35; }
.cl-short-wrap h4 a { color: var(--text); text-decoration: none; }
.cl-short-meta { font-size: .75rem; color: var(--muted); }

/* Review/profile cards with authors */
.cl-review-cards, .cl-profile-cards { display: flex; flex-direction: column; gap: 1rem; }
.cl-review-card, .cl-profile-card { display: flex; gap: 1rem; background: #f5f5f5; border-radius: 8px; overflow: hidden; text-decoration: none; }
.cl-review-card img, .cl-profile-card img { width: 110px; aspect-ratio: 2/3; object-fit: cover; flex: 0 0 auto; }
.cl-review-card div, .cl-profile-card { padding: .8rem; }
.cl-review-card h3, .cl-profile-card h3 { font-size: .92rem; margin: 0 0 .4rem; color: var(--text); }
.cl-byline { font-size: .78rem; color: var(--muted); }

/* Feed + What to Watch sidebar */
.cl-feed-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.cl-watch-side { align-self: start; }
.cl-watch-side h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 1rem; }
.cl-watch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.cl-watch-card { display: block; border-radius: 10px; overflow: hidden; text-decoration: none; position: relative; }
.cl-watch-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.cl-watch-card:hover img { transform: scale(1.05); }
.cl-watch-card img { transition: transform 0.3s ease; }
.cl-watch-rating { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.75); color: #ffd700; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

@media (max-width: 900px) {
  .cl-feed-wrap { grid-template-columns: 1fr; }
}

/* ---- Collider mobile-style Latest feed ---- */
.cl-feed-item { display: flex; gap: 1rem; text-decoration: none; align-items: flex-start; }
.cl-feed-item img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.cl-feed-text { flex: 1; min-width: 0; }
.cl-feed-time { font-size: 0.8rem; color: #888; display: block; margin-bottom: 0.3rem; }
.cl-feed-text h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 0.4rem; color: #1a1a1a; }
.cl-feed-meta { font-size: 0.82rem; color: #777; }
.cl-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.cl-feed-list li { margin: 0; }

/* ---- Pill filter tabs (Collider style) ---- */
.cl-tabs { display: flex; gap: 0.6rem; margin: 1rem 0 1.4rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tabs button { background: #e0e0e0; color: #333; border: none; padding: 0.6rem 1.1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; flex: 0 0 auto; transition: all 0.2s; }
.cl-tabs button:hover { background: #d0d0d0; color: #000; }
.cl-tabs button.active { background: #7c3aed; color: #fff; }

/* ---- Big SEE MORE button ---- */
.cl-see-more { display: block; text-align: center; background: #f0f0f0; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; padding: 1.1rem; border-radius: 12px; margin: 2rem auto; max-width: 420px; text-decoration: none; border: 1px solid #333; }
.cl-see-more:hover { background: #e8e8e8; }

/* ---- Profiles carousel arrows ---- */
.cl-profile-nav { display: flex; gap: 0.6rem; }
.cl-profile-nav button { background: #f0f0f0; color: #fff; border: none; width: 44px; height: 44px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.cl-profile-nav button:hover { background: #2e2e30; }

/* Back button on detail pages */
.cv-back-btn { position: fixed; top: 80px; left: 16px; z-index: 9999; display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.95); color: #1a1a1a; border: 1px solid #ddd; padding: 0.7rem 1.3rem; border-radius: 30px; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.cv-back-btn:hover { background: #2e2e30; }

/* Collider-style end section */
.cl-end-section { text-align: center; padding: 3rem 1rem 2rem; background: #fff; }
.cl-see-more-btn { display: inline-block; background: #1a1a1a; color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; padding: 1rem 3.5rem; border-radius: 12px; text-decoration: none; margin-bottom: 2.5rem; }
.cl-see-more-btn:hover { background: #7c3aed; }
.cl-end-logo .logo-word { font-size: 2.5rem; font-weight: 900; color: #1a1a1a; }
.cl-end-logo .logo-word em { font-style: normal; color: #7c3aed; }

/* Collider-style typography */
h1, h2, h3, h4, h5, h6,
.cl-hero-text h1, .cl-hero-card h3, .cl-big-card h3, .cl-watch-card h3,
.cl-section-head h2, .news-kicker, .logo-word {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cl-hero-text h1 { font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.8rem); }
.cl-section-head h2 { font-weight: 900; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.02em; }

/* Shorts: horizontal scroll vertical cards */
.cl-shorts-section { margin-bottom: 2.5rem; }
.cl-shorts-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cl-shorts-scroll::-webkit-scrollbar { height: 6px; }
.cl-shorts-scroll::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 3px; }
.cl-shorts-card { flex: 0 0 160px; scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; text-decoration: none; background: #f0f0f0; aspect-ratio: 9/16; }
.cl-shorts-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-shorts-card:hover img { transform: scale(1.05); }
.cl-shorts-card img { transition: transform 0.3s ease; }
.cl-shorts-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: rgba(124, 58, 237, 0.9); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cl-shorts-card h4 { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 1.5rem 0.6rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: #fff; line-height: 1.3; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
@media (max-width: 640px) { .cl-shorts-card { flex: 0 0 130px; } }

/* Reviews: Collider-style horizontal cards */
.cl-reviews-list { display: flex; flex-direction: column; gap: 1rem; background: #f8f8f8; border-radius: 16px; padding: 1.25rem; }
.cl-review-row { display: flex; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; border: 1px solid #eee; }
.cl-review-row img { width: 140px; min-width: 140px; aspect-ratio: 4/3; object-fit: cover; }
.cl-review-row-body { padding: 0.9rem 1rem; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.cl-review-date { font-size: 0.75rem; color: #888; margin-bottom: 0.3rem; }
.cl-review-row-body h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 800; line-height: 1.3; color: #1a1a1a; }
.cl-review-author { font-size: 0.8rem; color: #555; font-weight: 600; }
.cl-review-row:hover { border-color: #7c3aed; }
@media (max-width: 640px) { .cl-review-row img { width: 110px; min-width: 110px; } }

/* Profiles: Collider-style carousel */
.cl-profiles-carousel { position: relative; }
.cl-profiles-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; scrollbar-width: none; }
.cl-profiles-track::-webkit-scrollbar { display: none; }
.cl-profile-slide { flex: 0 0 320px; scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; text-decoration: none; aspect-ratio: 16/9; background: #f0f0f0; }
.cl-profile-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cl-profile-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1rem 1rem; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.cl-profile-overlay h3 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.cl-profile-nav { display: flex; gap: 0.6rem; margin-top: 0.8rem; justify-content: flex-end; }
.cl-profile-nav button { background: #1a1a1a; color: #fff; border: none; width: 48px; height: 48px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; }
.cl-profile-nav button:hover { background: #7c3aed; }
@media (max-width: 640px) { .cl-profile-slide { flex: 0 0 260px; } }
