:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-size: 17px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  height: 3px;
  content: "";
  opacity: 0;
  background: var(--blue-600);
  border-radius: 999px;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700) 48%, var(--blue-900));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(249, 115, 22, 0.45), transparent 26%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.45));
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 76px 0 68px;
}

.hero-track {
  position: relative;
  min-height: 476px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange-400);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--blue-100);
  font-size: clamp(18px, 2.2vw, 25px);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.hero-media {
  overflow: hidden;
  min-height: 476px;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(1deg);
}

.hero-media img {
  width: 100%;
  height: 476px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 54px;
  background: var(--orange-500);
}

.section-block {
  padding: 72px 0;
}

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

.section-title-row h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.content-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title-row p,
.page-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 18px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--blue-600);
  border-radius: 999px;
  background: var(--blue-50);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--blue-100), var(--gray-200));
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: var(--orange-500);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
}

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

.movie-card-body h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 24px;
  color: var(--blue-700);
  border: 0;
  background: var(--blue-50);
  font-size: 12px;
}

.category-overview,
.ranking-preview,
.detail-content {
  background: var(--white);
}

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

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

.category-tile,
.category-card-large,
.content-card {
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(249, 115, 22, 0.08)),
    var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.category-tile span {
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 900;
}

.category-tile h2,
.category-card-large h2 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 24px;
  line-height: 1.2;
}

.category-tile p,
.category-card-large p,
.content-card p {
  margin: 0;
  color: var(--gray-500);
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a,
.category-card-large li a {
  color: var(--blue-600);
  font-weight: 700;
}

.category-card-large ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

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

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

.rank-row {
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-50);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.rank-row a {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-number {
  color: var(--orange-500);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-band {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 28px;
}

.search-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.search-band p {
  margin: 10px 0 0;
  color: var(--blue-100);
  font-size: 18px;
}

.hero-search {
  display: flex;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
}

.page-shell {
  min-height: 70vh;
}

.page-hero,
.detail-hero {
  padding: 68px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.34), transparent 26%),
    linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

.page-hero.compact {
  padding: 54px 0;
}

.page-hero h1,
.page-hero p,
.detail-info h1 {
  color: var(--white);
}

.page-hero p {
  color: var(--blue-100);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

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

.page-search {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  outline: 0;
  padding: 0 16px;
  color: var(--gray-800);
  background: var(--gray-50);
}

.page-search:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.filter-buttons button.active {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.3);
}

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

.detail-info h1 {
  max-width: 860px;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0;
  color: var(--blue-100);
  font-size: 20px;
}

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

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
}

.detail-tags a {
  color: var(--white);
}

.player-section {
  padding: 56px 0 28px;
  background: var(--gray-900);
}

.player-section h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(28px, 3.2vw, 40px);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.38);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
  font-size: 34px;
}

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

.content-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-card p {
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo {
  margin-bottom: 16px;
  color: var(--white);
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--gray-500);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: var(--gray-500);
  text-align: center;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
    height: 420px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--blue-50);
  }

  .hero-carousel,
  .hero-container {
    min-height: 740px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-media {
    order: -1;
    min-height: 320px;
    transform: none;
  }

  .hero-media img {
    height: 320px;
    min-height: 320px;
  }

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

  .category-grid,
  .category-grid.large,
  .rank-grid,
  .search-band-inner,
  .content-grid,
  .footer-grid,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .logo {
    font-size: 21px;
  }

  .hero-container {
    padding: 46px 0 42px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

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

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

  .movie-card-body h2 {
    font-size: 15px;
  }

  .rank-row a {
    grid-template-columns: 42px 60px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-row img {
    width: 60px;
    height: 82px;
  }

  .rank-number {
    font-size: 20px;
  }

  .page-hero,
  .detail-hero {
    padding: 42px 0;
  }

  .player-frame {
    border-radius: 16px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
