:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --line: #e7e5e4;
  --text: #1c1917;
  --muted: #78716c;
  --muted-dark: #57534e;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --dark-line: #334155;
  --accent: #d97706;
  --accent-soft: #f59e0b;
  --accent-light: #fef3c7;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.25);
}

.brand-text {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: #e7e5e4;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 9px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 28%, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(135deg, #0f172a, #111827 52%, #1e293b);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-badge,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  background: rgba(217, 119, 6, 0.24);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: #e7e5e4;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  color: #f5f5f4;
}

.hero-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-light {
  color: var(--dark);
  background: #ffffff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  transition: 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.hero-arrow:hover,
.hero-dot.is-active {
  background: var(--accent);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 38px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
}

main {
  position: relative;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #ffffff;
}

.section.dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.section-head h2 {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section.dark .section-head h2 {
  color: #ffffff;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.section.dark .section-head p {
  color: #cbd5e1;
}

.section-action {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--accent);
  font-weight: 800;
  border-radius: 999px;
  background: var(--accent-light);
}

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

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 60% 20%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(145deg, #334155, #0f172a);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 48%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.movie-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.movie-title {
  min-height: 1.6em;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-desc {
  min-height: 3.1em;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 4px 8px;
  color: var(--muted-dark);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
  border-radius: var(--radius);
  background: radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #334155);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: #e7e5e4;
}

.category-link {
  margin-top: 20px;
  color: var(--accent-light);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #334155, #0f172a);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
}

.rank-action {
  padding: 9px 13px;
  color: var(--accent);
  font-weight: 800;
  border-radius: 999px;
  background: var(--accent-light);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.45fr));
  gap: 12px;
  padding: 18px;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-soft);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.page-hero {
  padding: 68px 0 46px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(217, 119, 6, 0.25), transparent 34%), linear-gradient(135deg, #0f172a, #111827 54%, #334155);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(2px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(15, 23, 42, 0.58)), linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 54%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
  padding: 76px 0 50px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #334155, #0f172a);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.player-section {
  padding: 48px 0 20px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25));
}

.player-overlay.is-hidden {
  display: none;
  pointer-events: none;
}

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  font-size: 38px;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px 0 64px;
}

.article-card,
.side-card {
  padding: 26px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.article-card p,
.side-card p {
  margin: 0 0 20px;
  color: var(--muted-dark);
}

.side-card {
  align-self: start;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  color: var(--muted);
}

.related-section {
  padding: 0 0 74px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-logo {
  color: #ffffff;
  font-weight: 900;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #94a3b8;
}

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

.footer-links a {
  color: #e2e8f0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-controls {
    align-items: flex-end;
  }

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

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 68px 1fr;
  }

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    height: 62px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-dots {
    display: none;
  }

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

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 46px 0 36px;
  }

  .movie-info {
    padding: 14px;
  }
}
