:root {
  --deepblue-950: #06111f;
  --deepblue-900: #0a1e33;
  --deepblue-800: #12375b;
  --ocean-900: #0b4257;
  --ocean-700: #126d89;
  --ocean-600: #1687a7;
  --ocean-100: #d8f3fb;
  --ocean-50: #eefbff;
  --seagreen-700: #0f7c72;
  --seagreen-500: #25b39d;
  --seagreen-50: #e9fbf7;
  --coral-500: #ff715b;
  --coral-400: #ff9b7a;
  --sand-50: #fff8ed;
  --sand-100: #feefd3;
  --ink: #102033;
  --muted: #648093;
  --line: rgba(18, 55, 91, 0.12);
  --shadow: 0 18px 40px rgba(6, 17, 31, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 179, 157, 0.20), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(255, 113, 91, 0.16), transparent 26rem),
    linear-gradient(135deg, var(--sand-50), var(--ocean-50) 46%, var(--seagreen-50));
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--deepblue-800), var(--ocean-700), var(--seagreen-700));
  box-shadow: 0 14px 32px rgba(6, 17, 31, 0.24);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
  box-shadow: 0 12px 24px rgba(255, 113, 91, 0.34);
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  padding: 9px 14px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-box input,
.filter-row select {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.header-search input {
  width: 230px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.play-button,
.search-box button {
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.play-button,
.search-box button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
  box-shadow: 0 12px 24px rgba(255, 113, 91, 0.28);
}

.header-search button {
  padding: 10px 14px;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: #ffffff;
  border-radius: 10px;
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
  background: rgba(6, 17, 31, 0.94);
  backdrop-filter: blur(16px);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-search button {
  padding: 12px 16px;
}

main {
  min-height: 72vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--deepblue-950), var(--deepblue-800) 45%, var(--seagreen-700));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.42;
}

.hero::before {
  width: 360px;
  height: 360px;
  left: -100px;
  top: 80px;
  background: var(--ocean-600);
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -130px;
  bottom: -160px;
  background: var(--coral-500);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  padding: 52px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sand-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.45s ease;
  pointer-events: none;
}

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

.hero-card {
  overflow: hidden;
  min-height: 530px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.hero-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card-body {
  padding: 24px;
}

.hero-card-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.16;
}

.hero-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.hero-card-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-card-meta span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-card-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.section {
  padding: 64px 0 0;
}

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

.section-header h1,
.section-header h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: var(--deepblue-900);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-header p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--ocean-700);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 20px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--deepblue-800), var(--ocean-700));
  box-shadow: var(--shadow);
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--ocean-700), var(--seagreen-700));
}

.category-tile:nth-child(3n + 3) {
  background: linear-gradient(135deg, var(--deepblue-900), var(--coral-500));
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.mini-card:hover,
.category-tile:hover {
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18, 109, 137, 0.18), rgba(255, 113, 91, 0.18));
}

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
  box-shadow: 0 12px 24px rgba(255, 113, 91, 0.30);
}

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

.movie-meta span,
.detail-meta span {
  color: var(--ocean-700);
  background: var(--ocean-50);
}

.movie-card h2 {
  min-height: 54px;
  margin: 0 0 10px;
  color: var(--deepblue-900);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 900;
}

.movie-card p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--deepblue-800);
  background: var(--sand-100);
  font-size: 12px;
  font-weight: 800;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.mini-card img {
  width: 72px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(18, 109, 137, 0.12);
}

.mini-card span {
  display: block;
  color: var(--deepblue-900);
  font-weight: 900;
  line-height: 1.4;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.mini-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
  background: var(--deepblue-800);
}

.page-hero {
  padding: 62px 0 38px;
  background: linear-gradient(135deg, rgba(10, 30, 51, 0.96), rgba(18, 109, 137, 0.90));
  color: #ffffff;
}

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

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar,
.search-box {
  margin: 26px 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.filter-row,
.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-row select,
.search-box input {
  min-height: 46px;
  padding: 0 14px;
  color: var(--deepblue-900);
  background: #ffffff;
  border-color: var(--line);
}

.search-box input {
  flex: 1 1 260px;
}

.search-box button {
  min-height: 46px;
  padding: 0 18px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 42px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020817;
}

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

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

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

.play-button {
  min-width: 132px;
  min-height: 54px;
  font-size: 18px;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: var(--deepblue-900);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 950;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--deepblue-900);
  font-size: 24px;
  font-weight: 950;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.9;
}

.detail-cover {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(18, 109, 137, 0.12);
}

.side-card {
  padding: 18px;
}

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

.breadcrumb {
  margin: 0 0 18px;
  color: var(--ocean-700);
  font-weight: 800;
}

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

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pagination-links a {
  padding: 10px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--deepblue-800);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: var(--ocean-100);
  background: linear-gradient(180deg, var(--deepblue-900), var(--deepblue-950));
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 380px;
  margin: 14px 0 0;
  color: rgba(216, 243, 251, 0.76);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(216, 243, 251, 0.78);
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(216, 243, 251, 0.12);
  color: rgba(216, 243, 251, 0.62);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 24px, 1200px);
    height: 66px;
  }

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 38px 0;
    gap: 30px;
  }

  .hero-stats,
  .category-grid,
  .movie-grid,
  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-card {
    min-height: 500px;
  }

  .hero-card img {
    height: 300px;
  }

  .section-header {
    display: block;
  }

  .mini-card {
    grid-template-columns: auto 64px 1fr;
  }
}
