* {
  box-sizing: border-box;
}

:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber: #f59e0b;
  --white: #ffffff;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
}

.brand-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue-900);
  transition: background 0.2s ease;
}

.brand:hover .brand-icon {
  background: var(--blue-800);
}

.brand-name {
  font-size: 22px;
}

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

.desktop-nav a:hover {
  color: var(--blue-900);
}

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

.nav-search input,
.filter-bar input,
.filter-bar select {
  height: 40px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  background: var(--white);
  padding: 0 14px;
  outline: none;
  color: var(--slate-900);
}

.nav-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #3b82f6;
}

.nav-search button,
.btn,
.player-button {
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  height: 40px;
  padding: 0 16px;
}

.nav-search button:hover,
.btn:hover,
.player-button:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.24);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--slate-700);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 12px 16px 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--slate-700);
  font-weight: 600;
}

.mobile-panel a:hover {
  background: var(--slate-100);
  color: var(--blue-900);
}

.mobile-panel.open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.22), transparent 26%), radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.24), transparent 32%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  display: none;
  min-height: 560px;
  align-items: center;
  gap: 44px;
  padding: 62px 0;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.86fr);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: var(--blue-100);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 710px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-tags span,
.badge,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
}

.btn.light {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.92);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.hero-media {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
  aspect-ratio: 16 / 10;
  background: var(--slate-900);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.hero-media:hover img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.14), transparent);
}

.hero-card-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.hero-card-text strong {
  display: block;
  font-size: 25px;
  margin-bottom: 6px;
}

.hero-card-text span {
  color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}

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

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

.section {
  padding: 56px 0;
}

.section.tight {
  padding: 36px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--slate-900);
}

.section-desc {
  margin: 8px 0 0;
  color: var(--slate-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

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

.large-card .poster-link {
  aspect-ratio: 21 / 9;
}

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

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.movie-card:hover .poster-link::after {
  background: rgba(0, 0, 0, 0.38);
}

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

.score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover {
  color: var(--blue-900);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--slate-600);
  font-size: 13px;
}

.meta-line span {
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--slate-100);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 3px 8px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 12px;
}

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

.category-pill {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--blue-700));
  box-shadow: 0 18px 34px rgba(30, 58, 138, 0.16);
  font-size: 21px;
  font-weight: 800;
}

.category-pill span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
}

.rank-panel {
  border-radius: 24px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
}

.rank-item:hover {
  background: var(--slate-50);
  color: var(--blue-900);
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 800;
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-900), var(--slate-800));
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 170px 150px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
}

.detail-hero {
  background: linear-gradient(120deg, var(--slate-900), var(--blue-900));
  color: var(--white);
  padding: 42px 0 50px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
}

.detail-main .one-line {
  margin: 0 0 20px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.badge {
  padding: 6px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding-top: 36px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32)), var(--poster) center / cover no-repeat;
  cursor: pointer;
  z-index: 2;
}

.player-cover.hide {
  display: none;
}

.player-button {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
}

.content-panel {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 14px;
  color: var(--slate-700);
}

.no-result {
  display: none;
  padding: 34px;
  border-radius: 18px;
  background: var(--white);
  color: var(--slate-600);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-slide.active {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 760px;
  }

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

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

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

  .brand-name {
    font-size: 19px;
  }

  .nav-search {
    display: none;
  }

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 42px 0 64px;
  }

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

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

  .section {
    padding: 38px 0;
  }

  .section-head {
    display: block;
  }

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

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

  .rank-meta {
    grid-column: 3;
  }

  .content-panel {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .grid,
  .grid.six,
  .grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
