
:root {
  --bg: #0c0b0a;
  --bg2: #14100d;
  --panel: rgba(20, 16, 13, 0.88);
  --panel-soft: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.08);
  --text: #f4ede6;
  --muted: rgba(244, 237, 230, 0.72);
  --accent: #d9a84d;
  --accent-2: #ffcf7a;
  --accent-3: #8a5d1e;
  --shadow: 0 28px 80px rgba(0,0,0,.42);
  --radius: 24px;
  --radius-lg: 32px;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217,168,77,.14), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(255,207,122,.08), transparent 20%),
    linear-gradient(180deg, #10100e 0%, #090808 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(10, 8, 7, 0.76);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 137, .95), rgba(185, 120, 23, .9));
  box-shadow: 0 12px 32px rgba(217,168,77,.32);
  display: grid;
  place-items: center;
  color: #19130a;
  font-weight: 900;
}
.brand__text { min-width: 0; }
.brand__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand__sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a, .nav button {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(244,237,230,.86);
  border: 1px solid transparent;
  background: transparent;
}
.nav a:hover, .nav button:hover {
  border-color: rgba(217,168,77,.18);
  background: rgba(255,255,255,.03);
  color: #fff;
}
.nav__menu-btn { display: none; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}
.search-bar input::placeholder { color: rgba(244,237,230,.45); }
.search-bar button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1204;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 14px;
}
.hero__shell {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 214, 140, .20), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .09), transparent 18%),
    linear-gradient(145deg, rgba(27,20,16,.98), rgba(12,10,9,.96));
  box-shadow: var(--shadow);
  padding: 32px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
}
.hero__eyebrow, .eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--accent-2);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.hero__desc {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.btn--primary {
  border: 0;
  color: #1b1204;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.stat {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.stat__num { display:block; font-size: 1.6rem; font-weight: 900; color: #fff; }
.stat__label { display:block; color: var(--muted); font-size: .88rem; margin-top: 2px; }

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}
.hero-spotlight {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-spotlight__top {
  min-height: 244px;
  padding: 20px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 214, 140, .22), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(145deg, rgba(58,39,20,.9), rgba(18,13,11,.94));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-spotlight__tag { color: var(--accent-2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.hero-spotlight__title { margin: 10px 0 0; font-size: 1.55rem; line-height: 1.12; }
.hero-spotlight__meta { margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: .92rem; }
.hero-spotlight__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-spotlight__list {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mini-card {
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  padding: 12px;
}
.mini-card__kicker { color: var(--accent-2); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mini-card__title { margin: 8px 0 0; font-size: .98rem; line-height: 1.35; }
.mini-card__meta { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }

.section { padding: 30px 0 10px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.section-head .section-desc { margin: 8px 0 0; color: var(--muted); max-width: 72ch; }
.section-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-grid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.movie-card {
  display: grid;
  gap: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  min-width: 0;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217,168,77,.34);
  background: rgba(255,255,255,.05);
}
.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 25% 18%, hsla(var(--hue), 95%, 64%, .22), transparent 22%),
    linear-gradient(145deg, hsla(var(--hue), 60%, 20%, 0.95), hsla(calc(var(--hue) + 46), 55%, 11%, 0.95));
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.42) 100%);
}
.movie-card__poster-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,10,10,.45);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 700;
}
.movie-card__poster-text {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(255,255,255,.94);
  text-shadow: 0 10px 26px rgba(0,0,0,.34);
}
.movie-card__body { padding: 14px 14px 16px; }
.movie-card__meta { color: var(--accent-2); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.movie-card__title { margin: 8px 0 0; font-size: 1rem; line-height: 1.35; min-height: 2.7em; }
.movie-card__excerpt { margin: 8px 0 0; color: var(--muted); font-size: .86rem; min-height: 3.25em; }
.movie-card__tags { margin-top: 10px; color: rgba(255,255,255,.56); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.list-card__rank {
  width: 84px; height: 84px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,215,137,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: var(--accent-2); font-size: 1.6rem; font-weight: 900;
}
.list-card__title { margin: 0; font-size: 1rem; }
.list-card__meta { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.list-card__excerpt { margin: 8px 0 0; color: rgba(244,237,230,.84); font-size: .88rem; }

.page-hero {
  padding: 28px 0 0;
}
.page-hero__panel {
  border-radius: 32px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(25,20,16,.94), rgba(10,9,8,.94));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.page-hero__title { margin: 0; font-size: clamp(1.8rem, 3vw, 3.1rem); line-height: 1.05; }
.page-hero__desc { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px;
}
.toolbar .chip {
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.84);
}
.toolbar select, .toolbar input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
}
.toolbar input::placeholder { color: rgba(244,237,230,.4); }

.movie-hero {
  padding: 24px 0 4px;
}
.movie-hero__panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(23,18,14,.98), rgba(10,9,8,.95));
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.movie-poster-lg {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.movie-poster-lg img { width: 100%; height: 100%; object-fit: cover; }
.movie-meta { display:flex; gap:8px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.82); font-size: .84rem;
}
.movie-title { margin: 0; font-size: clamp(2rem, 3vw, 3.6rem); line-height: 1.02; }
.movie-lead { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }
.movie-actions { display:flex; gap:12px; flex-wrap: wrap; margin-top: 20px; }

.player-box {
  margin-top: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 18px;
}
.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.player-shell video {
  width: 100%; height: 100%; background: #000; display: block; object-fit: contain;
}
.player-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.38));
}
.player-overlay button {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; padding: 14px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #201305; font-weight: 900; cursor: pointer;
}
.player-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-top: 24px;
}
.detail-card, .related-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 28px;
  padding: 20px;
}
.detail-card h2, .related-card h2 { margin-top: 0; }
.detail-list { display:grid; gap: 10px; margin:0; }
.detail-list div {
  display:flex; gap: 14px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin:0; text-align:right; }
.prose { color: rgba(244,237,230,.92); }
.prose p { margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.footer {
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0 36px;
  color: var(--muted);
}
.footer__inner {
  display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer a { color: rgba(255,255,255,.84); }

.empty-state {
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 22px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__grid, .movie-hero__panel, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; }
  .search-bar { order: 3; width: 100%; max-width: none; min-width: 0; }
  .nav { display: none; width: 100%; flex-wrap: wrap; }
  .nav.is-open { display: flex; }
  .nav__menu-btn { display: inline-flex; }
  .hero__shell, .page-hero__panel, .movie-hero__panel { padding: 20px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero-spotlight__list { grid-template-columns: 1fr; }
  .section-grid, .section-grid--wide, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .hero__shell, .page-hero__panel, .movie-hero__panel, .detail-card, .related-card, .player-box { border-radius: 22px; }
  .section-grid, .section-grid--wide, .related-grid { grid-template-columns: 1fr; }
  .movie-card__title { min-height: 0; }
}
