* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 15% 0%, rgba(148, 163, 184, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.18), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a,
.nav-dropdown > button {
  color: #cbd5e1;
  font-weight: 650;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.nav-dropdown > button:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 168px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: rgba(148, 163, 184, 0.14);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.nav-search input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.86);
  color: #ffffff;
  outline: none;
  padding: 10px 13px;
}

.nav-search input {
  width: 220px;
}

.nav-search button,
.btn,
.play-button,
.search-panel button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 16px;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.btn:hover,
.play-button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.28);
}

.btn.alt {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.2);
  color: #e2e8f0;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.66);
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px 0 auto;
  height: 360px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.16), rgba(148, 163, 184, 0.10));
  filter: blur(20px);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 26px 90px rgba(2, 6, 23, 0.5);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 30px;
  padding: 58px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.08) contrast(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.42) 100%),
    radial-gradient(circle at 72% 22%, rgba(148, 163, 184, 0.24), transparent 26rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.54);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 13px;
}

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

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: #f8fafc;
}

.section {
  padding: 42px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 8px 0 0;
  max-width: 720px;
  color: #94a3b8;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 232, 240, 0.24);
  background: rgba(30, 41, 59, 0.78);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.card-meta a {
  color: #e2e8f0;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #a8b3c7;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 10%, rgba(148, 163, 184, 0.24), transparent 12rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.78));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.category-card p {
  margin: 0 0 18px;
  color: #a8b3c7;
}

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

.rank-item {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-item::before {
  content: counter(rank);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(226, 232, 240, 0.12);
  color: #ffffff;
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 4px;
  color: #ffffff;
}

.rank-item p {
  margin: 0;
  color: #94a3b8;
}

.breadcrumb {
  padding: 26px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #e2e8f0;
}

.detail-hero {
  padding: 28px 0 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.detail-copy .lead {
  color: #cbd5e1;
  font-size: 18px;
}

.article-box {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.article-box h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

.article-box p {
  margin: 0 0 14px;
  color: #b8c2d6;
}

.player-section {
  padding: 26px 0 42px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.42);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.5);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(140px, 0.55fr)) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
}

.search-panel input,
.search-panel select {
  width: 100%;
}

.site-footer {
  margin-top: 42px;
  padding: 34px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
}

.footer-grid strong {
  color: #ffffff;
  font-size: 20px;
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .hero-poster {
    display: none;
  }

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

  .detail-poster {
    max-width: 360px;
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 16px;
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .nav-dropdown {
    display: none;
  }

  .hero-shell {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
  }

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

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

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

  .card-body {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-item .btn {
    display: none;
  }

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

  .footer-grid {
    flex-direction: column;
  }
}
