:root {
  color-scheme: dark;
  --bg: #070812;
  --bg-soft: #10121f;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(12, 14, 28, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f7fb;
  --muted: #a8adbd;
  --accent: #ff4d6d;
  --accent-2: #7c5cff;
  --gold: #ffd166;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 77, 109, 0.24), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(124, 92, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #090a15 0%, #05050b 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 18, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(255, 77, 109, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 12px;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  margin-bottom: 46px;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 12, 0.96) 0%, rgba(4, 5, 12, 0.72) 42%, rgba(4, 5, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 5, 11, 0.92) 0%, transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  align-items: center;
  gap: 46px;
  padding: 70px 0 54px;
}

.hero-copy {
  max-width: 690px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #ffdbe3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 22px 0 0;
  max-width: 640px;
  color: #d3d6e4;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(255, 77, 109, 0.34);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--bg-glass);
  box-shadow: var(--shadow);
}

.hero-card img {
  aspect-ratio: 2 / 2.65;
  object-fit: cover;
}

.hero-card-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(16px);
}

.hero-card-info strong {
  display: block;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  background: var(--text);
}

.search-panel {
  margin: -72px auto 48px;
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 15, 29, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  border-radius: 16px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  margin: 56px auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: #ffdbe3;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.28), rgba(124, 92, 255, 0.24));
}

.poster-img {
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.movie-card:hover .poster-img {
  transform: scale(1.05);
}

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 45%);
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1a1200;
  font-weight: 900;
  background: var(--gold);
}

.movie-card-body {
  padding: 15px;
}

.movie-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-meta,
.movie-line {
  color: var(--muted);
  line-height: 1.65;
}

.movie-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  margin: 8px 0 0;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #d8dbed;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(124, 92, 255, 0.13)),
    rgba(255, 255, 255, 0.06);
}

.category-card strong {
  font-size: 20px;
}

.category-card span {
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 70px 1fr 68px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.rank-no {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
}

.rank-img {
  aspect-ratio: 1 / 1.26;
  object-fit: cover;
  border-radius: 14px;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  font-weight: 900;
  color: var(--gold);
  text-align: right;
}

.page-title {
  padding: 54px 0 24px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.04em;
}

.page-title p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 77, 109, 0.22), transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(124, 92, 255, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-copy .movie-meta {
  font-size: 15px;
}

.detail-copy p {
  color: #d9dcec;
  line-height: 1.9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: auto auto 28px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(255, 77, 109, 0.36);
}

.play-cover.hidden {
  display: none;
}

.article-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-card);
}

.article-box h2 {
  margin: 0 0 14px;
}

.article-box p {
  margin: 0;
  color: #d5d8e8;
  line-height: 1.95;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.46fr;
  gap: 22px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: var(--bg-card);
}

@media (max-width: 1050px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner,
  .detail-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 8, 18, 0.96);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 40px 56px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-hero {
    padding: 22px;
  }
}
