:root {
  --dark-950: #050607;
  --dark-900: #07090c;
  --dark-800: #0b0d10;
  --dark-700: #101419;
  --dark-600: #151a21;
  --dark-500: #1a2129;
  --dark-400: #333d47;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --primary-500: #f5871f;
  --primary-600: #dc6f0d;
  --primary-soft: rgba(245, 135, 31, 0.18);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.36);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dark-800);
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.86);
  border-bottom: 1px solid rgba(51, 61, 71, 0.72);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary-500);
  box-shadow: 0 0 28px rgba(245, 135, 31, 0.42);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--primary-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--dark-600);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--dark-500);
  background: var(--dark-700);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text-soft);
  font-weight: 600;
}

.mobile-nav.is-open {
  display: block;
}

.page-main {
  padding-top: 72px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark-900);
}

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

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(11, 13, 16, 0.88) 42%, rgba(11, 13, 16, 0.25) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 24%, rgba(245, 135, 31, 0.28), transparent 28%), linear-gradient(0deg, var(--dark-800) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 680px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-500);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 820px;
  margin-bottom: 22px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 19px;
  max-width: 640px;
}

.hero-actions,
.section-heading,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button,
.text-link,
.hero-dot,
.play-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--primary-500);
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(245, 135, 31, 0.26);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--primary-600);
  box-shadow: 0 22px 48px rgba(245, 135, 31, 0.34);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: calc((100vw - min(1180px, calc(100vw - 40px))) / 2);
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
  background: var(--primary-500);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--primary-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1,
.detail-section h2 {
  margin: 0;
  color: #ffffff;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading p,
.page-title p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid.cards-medium {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card,
.category-tile,
.review-card,
.ranking-row,
.filter-panel,
.detail-panel,
.player-panel {
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 135, 31, 0.48);
  background: var(--dark-600);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--dark-900);
}

.poster-link img,
.ranking-cover img,
.detail-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover img,
.ranking-row:hover img,
.category-tile:hover img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.poster-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(245, 135, 31, 0.92);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.poster-year,
.poster-region {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.poster-region {
  left: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(245, 135, 31, 0.9);
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 a,
.ranking-body h2 a,
.review-card h3 a {
  transition: color 0.25s ease;
}

.movie-info h3 a:hover,
.ranking-body h2 a:hover,
.review-card h3 a:hover {
  color: var(--primary-500);
}

.movie-info p,
.review-card p,
.ranking-body p,
.detail-copy p,
.detail-panel p {
  color: var(--text-muted);
}

.movie-info p {
  height: 50px;
  margin: 0 0 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 700;
}

.hero .tag-row {
  margin-bottom: 30px;
}

.hero .tag-row span {
  color: #ffbd7a;
  background: var(--primary-soft);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  margin-bottom: 32px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--dark-400);
  border-radius: 12px;
  background: var(--dark-800);
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(245, 135, 31, 0.16);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--dark-700), var(--dark-600));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 135, 31, 0.48);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 135, 31, 0.34), transparent 26%);
}

.category-tile h2,
.category-tile p,
.category-tile span {
  position: relative;
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.page-title {
  padding: 136px 0 44px;
  background: radial-gradient(circle at 16% 22%, rgba(245, 135, 31, 0.24), transparent 28%), var(--dark-900);
  border-bottom: 1px solid var(--dark-500);
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 56px);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  overflow: hidden;
}

.ranking-cover {
  height: 160px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--dark-900);
}

.ranking-body h2 {
  margin: 8px 0;
  font-size: 22px;
}

.ranking-body p {
  margin: 0 0 12px;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.rank-no {
  color: var(--primary-500);
}

.text-link {
  color: var(--primary-500);
  font-weight: 800;
  white-space: nowrap;
}

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

.review-card {
  padding: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  background: var(--dark-600);
  border-color: rgba(245, 135, 31, 0.48);
}

.review-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.review-card p {
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  padding: 118px 0 46px;
  background: radial-gradient(circle at 18% 18%, rgba(245, 135, 31, 0.25), transparent 30%), linear-gradient(180deg, var(--dark-900), var(--dark-800));
  border-bottom: 1px solid var(--dark-500);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--primary-500);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: var(--dark-900);
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 18px;
}

.detail-copy p {
  margin: 0 0 20px;
  font-size: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.player-panel {
  padding: 18px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary-500);
  box-shadow: 0 24px 60px rgba(245, 135, 31, 0.38);
  font-size: 30px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--primary-600);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 26px;
}

.detail-panel {
  padding: 26px;
}

.detail-panel h2,
.detail-section h2 {
  margin: 0 0 16px;
}

.detail-panel p {
  margin: 0 0 18px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list a {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease;
}

.side-list a:hover {
  background: rgba(245, 135, 31, 0.13);
}

.side-list img {
  height: 94px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--dark-900);
}

.side-list strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.side-list span {
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0 28px;
  background: var(--dark-700);
  border-top: 1px solid var(--dark-500);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.site-footer p {
  max-width: 520px;
  color: var(--text-muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--dark-500);
  color: var(--text-muted);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid.cards-large,
  .grid.cards-medium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-cover {
    max-width: 320px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 112px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 20px;
    bottom: 24px;
  }

  .grid.cards-large,
  .grid.cards-medium,
  .grid.cards-small,
  .category-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 92px 1fr;
  }

  .ranking-cover {
    height: 130px;
  }

  .ranking-row .text-link {
    grid-column: 1 / -1;
  }

  .page-title {
    padding-top: 118px;
  }

  .detail-hero {
    padding-top: 104px;
  }

  .detail-copy h1 {
    font-size: 36px;
  }
}

@media (max-width: 460px) {
  .nav-wrap {
    height: 66px;
  }

  .logo {
    font-size: 14px;
  }

  .page-main {
    padding-top: 66px;
  }

  .movie-info {
    padding: 14px;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-cover {
    height: auto;
    aspect-ratio: 2 / 3;
  }
}
