
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-soft: #111118;
  --panel: rgba(18, 18, 24, .86);
  --panel-border: rgba(255, 255, 255, .08);
  --text: #f5f2e8;
  --muted: #a6a09a;
  --accent: #f0b24a;
  --accent-2: #e26c3e;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 22px;
  --container: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(240, 178, 74, .08), transparent 34%),
    linear-gradient(180deg, #09090b, #0b0b0f 30%, #101016 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 14, .78);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent), #ffdf8d);
  color: #18140d; font-weight: 900; box-shadow: 0 10px 25px rgba(240,178,74,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); margin-top: .25rem; }
.nav-links {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.nav-link {
  padding: .7rem .95rem; border-radius: 999px; color: #ddd7cf;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(240,178,74,.13);
  color: #fff;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none; background: transparent; border: 0; color: var(--text);
  font-size: 1.4rem; padding: .4rem .55rem; border-radius: 12px;
}
.page-top { padding-top: 1.25rem; }
.main-stack { padding-bottom: 3rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 1.2rem;
}
.intro-panel { padding: 1.7rem; }
.hero-kicker, .section-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700;
}
.intro-panel h1, .hero-shell h1, .detail-info h1, .hero-row__copy h2 {
  margin: .45rem 0 0;
  line-height: 1.05;
}
.intro-panel h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.intro-panel p { color: var(--muted); max-width: 58rem; }
.hero-shell {
  position: relative;
  padding: 1.2rem 0 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 1.2rem;
  align-items: stretch;
  min-height: 680px;
}
.hero-copy {
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  max-width: 12ch;
}
.hero-lead {
  color: #d6d0c7;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 58ch;
  margin-top: 1.1rem;
}
.hero-meta, .detail-stats, .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.2rem;
}
.hero-meta span, .detail-stats div, .stats-grid div {
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.chip, .tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .45rem .7rem; border-radius: 999px;
  background: rgba(240,178,74,.12);
  border: 1px solid rgba(240,178,74,.18);
  color: #f8e7be; font-size: .82rem;
}
.hero-actions {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn, .source-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover, .source-btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f6d26e);
  color: #1d1508; font-weight: 800;
}
.btn-ghost, .source-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #f1ebe0;
}
.hero-poster, .detail-poster, .hero-row__poster, .movie-poster, .feature-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--p1), var(--p2) 52%, var(--p3));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-poster::before, .detail-poster::before, .hero-row__poster::before, .movie-poster::before, .feature-poster::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.26), transparent 28%),
    radial-gradient(circle at bottom left, rgba(240,178,74,.2), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.25));
}
.hero-poster { min-height: 680px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; }
.hero-poster__top, .poster-topline {
  position: relative; z-index: 1;
  display: inline-flex; align-self: flex-start;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; letter-spacing: .08em;
}
.hero-poster__body, .movie-poster .poster-main, .feature-body, .strip-content {
  position: relative; z-index: 1;
}
.hero-poster__body { max-width: 28rem; }
.hero-poster__year, .poster-year {
  display: inline-flex; padding: .35rem .65rem; border-radius: 999px;
  background: rgba(0,0,0,.28); margin-bottom: .75rem; font-size: .9rem;
}
.hero-poster h2, .movie-poster h3, .feature-body strong, .strip-content strong {
  margin: 0;
  text-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.hero-poster h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.hero-poster p, .movie-poster p, .feature-body small, .strip-content small {
  color: rgba(255,255,255,.88);
  line-height: 1.65;
}
.hero-poster__footer {
  position: relative; z-index: 1; display: flex; gap: .5rem; flex-wrap: wrap;
}
.hero-poster__footer span, .poster-footer span {
  display: inline-flex; align-items: center;
  padding: .45rem .65rem; border-radius: 999px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12);
  font-size: .84rem;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.feature-card, .strip-card {
  min-height: 132px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  position: relative;
}
.feature-poster { position: absolute; inset: 0; border-radius: inherit; }
.feature-body {
  position: absolute; inset: auto 0 0 0; padding: .9rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
}
.feature-body span, .strip-content span {
  display: inline-flex; margin-bottom: .4rem;
  color: #ffdd95; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.feature-body strong { display: block; font-size: 1rem; }
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.movie-card {
  position: relative;
  min-width: 0;
}
.movie-card.compact .movie-meta { display: none; }
.movie-link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.movie-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0,0,0,.28);
  border-color: rgba(240,178,74,.24);
}
.movie-poster {
  min-height: 280px;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.movie-card.compact .movie-poster { min-height: 150px; }
.poster-main h3 { font-size: 1.15rem; line-height: 1.22; margin: .2rem 0 .45rem; }
.poster-main p { font-size: .9rem; margin: 0; }
.poster-footer { display: flex; gap: .45rem; flex-wrap: wrap; }
.movie-meta { padding: .8rem .15rem .2rem; }
.movie-meta h4 { margin: 0; font-size: 1rem; line-height: 1.35; }
.movie-meta p { margin: .35rem 0 .65rem; color: var(--muted); font-size: .84rem; }
.movie-tags { display: flex; gap: .45rem; flex-wrap: wrap; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h2 { margin: .3rem 0 0; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.category-grid, .overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cat-card, .overview-card {
  display: block;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease;
}
.cat-card:hover, .overview-card:hover { transform: translateY(-3px); border-color: rgba(240,178,74,.25); }
.cat-card h3, .overview-card h3 { margin: .35rem 0 .1rem; font-size: 1.2rem; }
.cat-card p, .overview-card p { color: var(--muted); margin: 0; }
.cat-preview, .overview-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem;
}
.rank-layout { display: grid; grid-template-columns: 1.1fr .7fr; gap: 1rem; }
.rank-box, .rank-stack { display: grid; gap: .65rem; }
.rank-row {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center;
  padding: .9rem 1rem; border-radius: 18px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); transition: transform .2s ease, border-color .2s ease;
}
.rank-row:hover { transform: translateY(-2px); border-color: rgba(240,178,74,.24); }
.rank-num {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(240,178,74,.14); color: #ffd67a; font-weight: 800;
}
.rank-row strong { display: block; }
.rank-row p { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }
.side-box {
  padding: 1rem; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.side-box h3 { margin: .1rem 0 1rem; }
.side-box p { color: var(--muted); line-height: 1.8; }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.stats-grid strong, .detail-stats strong { display: block; font-size: 1.15rem; }
.stats-grid span, .detail-stats span { display: block; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.search-input, .search-select {
  width: min(100%, 28rem);
  padding: .95rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--text);
  outline: none;
}
.search-select { width: auto; padding-right: 2.2rem; }
.search-summary { display: inline-flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.search-summary strong { font-size: 2rem; }
.detail-hero {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 1rem;
  align-items: stretch;
}
.detail-poster { min-height: 720px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.detail-info { display: flex; flex-direction: column; justify-content: center; gap: .85rem; }
.detail-info h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.detail-lead { color: #ddd5ca; font-size: 1.06rem; line-height: 1.9; }
.detail-stats { margin-top: .45rem; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  color: var(--muted); font-size: .85rem;
}
.breadcrumb a { color: #f0d79f; }
.text-block {
  color: #ddd7cf; line-height: 1.9; font-size: 1rem;
}
.player-toolbar { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: .8rem; }
.source-btn.is-active { background: rgba(240,178,74,.16); border-color: rgba(240,178,74,.34); color: #fff2d2; }
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
}
.player-tip { color: var(--muted); margin-top: .75rem; }
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 7, 10, .8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1rem;
}
.footer-brand { font-size: 1.35rem; font-weight: 900; margin-bottom: .6rem; }
.footer-grid h4 { margin: .1rem 0 .75rem; }
.footer-grid a { display: block; color: #d8d3ca; margin-bottom: .45rem; }
.footer-grid p, .footer-note { color: var(--muted); line-height: 1.8; }
.footer-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.overview-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.count-pill {
  display: inline-flex; padding: .4rem .65rem; border-radius: 999px; background: rgba(240,178,74,.12); color: #ffe0a1;
}
.rank-list { display: grid; gap: .65rem; }
.hero-row {
  display: grid; grid-template-columns: 1fr .72fr; gap: 1rem; align-items: stretch;
}
.hero-row__copy {
  padding: 1rem 0;
}
.hero-row__copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: .35rem; }
.hero-row__copy p { color: var(--muted); line-height: 1.8; }
.hero-row__poster { min-height: 360px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.rank-pill {
  position: absolute; top: .85rem; right: .85rem; z-index: 2;
  display: inline-flex; padding: .4rem .7rem; border-radius: 999px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1); color: #fff3cc; font-weight: 800;
}
.strip-card { min-height: 132px; }
.strip-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 100%); }
.strip-content { position: absolute; inset: auto .75rem .7rem .75rem; }
.strip-content strong { display: block; font-size: .98rem; }
.strip-content small { display: block; margin-top: .2rem; }
.search-results .movie-card { display: none; }
@media (max-width: 1180px) {
  .hero-grid, .detail-hero, .hero-row, .rank-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-strip, .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid, .overview-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 72px;
    padding: .8rem; border-radius: 18px; background: rgba(10, 10, 14, .96);
    border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; }
  .hero-grid { min-height: unset; }
  .hero-copy { padding-top: 1rem; }
  .hero-poster, .detail-poster { min-height: 460px; }
  .hero-strip, .movie-grid, .cat-preview, .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta, .detail-stats, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-panel h1, .detail-info h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 1rem, var(--container)); }
  .hero-strip, .movie-grid, .cat-preview, .overview-grid { grid-template-columns: 1fr; }
  .hero-meta, .detail-stats, .stats-grid { grid-template-columns: 1fr; }
  .search-input, .search-select { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .source-btn { width: 100%; }
  .section-head { align-items: start; flex-direction: column; }
}
