:root {
  --ocean-50: #f0f9ff;
  --ocean-100: #e0f2fe;
  --ocean-400: #38bdf8;
  --ocean-600: #0284c7;
  --ocean-700: #0369a1;
  --island-50: #f0fdf4;
  --island-100: #dcfce7;
  --island-600: #16a34a;
  --sand-50: #fefce8;
  --sand-100: #fef9c3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(2, 132, 199, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.24);
}

.logo-text {
  background: linear-gradient(90deg, var(--ocean-600), var(--island-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean-600);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px;
  color: var(--gray-700);
  background: transparent;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-100);
  background: #ffffff;
  padding: 12px 24px 18px;
}

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

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--ocean-50);
  color: var(--ocean-600);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-white {
  background: #ffffff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--gray-600);
}

.more-link {
  color: var(--ocean-600);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.08);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.25)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 44%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  padding-top: 32px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--ocean-50);
  color: var(--ocean-700);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.3);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: var(--ocean-700);
  background: var(--ocean-50);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--ocean-600);
  cursor: pointer;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
}

.card-row .movie-card {
  scroll-snap-align: start;
}

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

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

.movie-card {
  position: relative;
}

.poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--ocean-100), var(--island-100));
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
}

.poster-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  color: #ffffff;
}

.poster-meta h3 {
  margin: 0 0 6px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.25;
}

.poster-meta p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 184px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  font-weight: 900;
}

.rank-cover {
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ocean-100);
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.rank-info p {
  margin: 0;
  color: var(--gray-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 28px 0 30px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 12px 14px;
  outline: 0;
  color: var(--gray-900);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--ocean-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.empty-state {
  display: none;
  padding: 46px;
  border-radius: 26px;
  color: var(--gray-600);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-hero {
  background: #020617;
  color: #ffffff;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: end;
  min-height: 520px;
  padding: 72px 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--ocean-100), var(--island-100));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-desc {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.panel {
  margin-bottom: 24px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.panel p {
  margin: 0;
  color: var(--gray-700);
}

.player-panel {
  overflow: hidden;
  padding: 0;
  background: #020617;
}

.player-wrap {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.player-overlay.hidden {
  display: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.32);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.side-card {
  position: sticky;
  top: 88px;
}

.related-list {
  display: grid;
  gap: 16px;
}

.related-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
}

.related-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: var(--ocean-100);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-item:hover img {
  transform: scale(1.08);
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.related-item:hover h3 {
  color: var(--ocean-600);
}

.related-item p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer p,
.footer a {
  color: var(--gray-300);
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero,
  .hero-slider,
  .hero-image {
    min-height: 680px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 70px;
  }

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

  .category-grid,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    min-height: auto;
    padding-top: 46px;
  }

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

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

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

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .container,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    font-size: 20px;
  }

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

  .card-row {
    grid-auto-columns: 220px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input {
    min-height: 42px;
  }

  .poster-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .poster-meta h3 {
    font-size: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .panel {
    padding: 22px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }
}
