:root {
  --rain-950: #102033;
  --rain-900: #162a40;
  --rain-800: #203852;
  --rain-700: #31506c;
  --rain-600: #496985;
  --rain-500: #6f879c;
  --rain-300: #b8c7d4;
  --rain-100: #e8eef4;
  --mist-700: #2b7f91;
  --mist-600: #3b97a9;
  --mist-500: #52aebf;
  --mist-200: #bfe8ee;
  --mist-100: #e0f6f8;
  --alley-50: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(18, 32, 51, 0.14);
  --soft-shadow: 0 12px 30px rgba(18, 32, 51, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rain-900);
  background:
    radial-gradient(circle at 8% 0%, rgba(82, 174, 191, 0.2), transparent 34rem),
    radial-gradient(circle at 96% 4%, rgba(49, 80, 108, 0.14), transparent 30rem),
    var(--alley-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 248, 251, 0.88);
  border-bottom: 1px solid rgba(184, 199, 212, 0.5);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rain-900);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mist-600), var(--rain-800));
  box-shadow: 0 10px 24px rgba(43, 127, 145, 0.28);
}

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

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--rain-700);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rain-950);
  background: rgba(82, 174, 191, 0.14);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 32vw);
  padding: 6px;
  border: 1px solid rgba(184, 199, 212, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.header-search input,
.filter-input,
.filter-select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--rain-900);
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
}

.header-search button,
.primary-button,
.secondary-button,
.hero-arrow,
.play-overlay,
.menu-toggle {
  border: 0;
  cursor: pointer;
}

.header-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--mist-600), var(--rain-800));
  box-shadow: 0 14px 28px rgba(49, 80, 108, 0.2);
}

.header-search button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 14px;
  background: var(--white);
}

.menu-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--rain-800);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--rain-700);
}

.mobile-nav a:hover {
  background: var(--mist-100);
  color: var(--rain-900);
}

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

main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  width: min(1320px, calc(100% - 24px));
  min-height: 640px;
  margin: 22px auto 46px;
  border-radius: 34px;
  background: var(--rain-950);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 34px;
  padding: 78px min(6vw, 78px);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 51, 0.92), rgba(16, 32, 51, 0.52), rgba(16, 32, 51, 0.2)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(82, 174, 191, 0.38), transparent 22rem),
    linear-gradient(0deg, rgba(16, 32, 51, 0.55), transparent 46%);
}

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

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

.hero-content {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mist-200);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.98;
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.hero-meta,
.meta-row,
.breadcrumb,
.detail-meta,
.player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta span,
.hero-meta a {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  width: min(360px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

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

.hero-poster span {
  display: block;
  padding: 16px 18px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.section {
  margin: 54px 0;
}

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

.section h2,
.filter-panel h2,
.page-hero h1,
.detail-title h1,
.category-card h2 {
  margin: 0;
  color: var(--rain-950);
}

.section h2,
.filter-panel h2,
.category-card h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.section-lead,
.page-hero p,
.category-card p,
.detail-lead {
  color: var(--rain-600);
  line-height: 1.8;
}

.section-link {
  color: var(--mist-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(184, 199, 212, 0.55);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 32, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(82, 174, 191, 0.45);
  box-shadow: 0 22px 48px rgba(18, 32, 51, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--rain-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 32, 51, 0.72), transparent 46%);
  opacity: 0.78;
}

.type-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-badge {
  top: 12px;
  right: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 32, 51, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--rain-950);
  background: linear-gradient(135deg, #fff7b0, #ffd66b);
  font-size: 13px;
  font-weight: 900;
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--rain-950);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--rain-950);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--mist-700);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--rain-600);
  font-size: 14px;
  line-height: 1.75;
}

.meta-row {
  justify-content: space-between;
  color: var(--rain-500);
  font-size: 13px;
}

.meta-row a {
  color: var(--mist-700);
  font-weight: 800;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--rain-700);
  background: var(--rain-100);
  font-size: 12px;
}

.filter-panel,
.page-hero,
.category-card,
.detail-card,
.watch-card {
  border: 1px solid rgba(184, 199, 212, 0.55);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 26px;
  margin: 34px 0;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 160px 150px;
  gap: 12px;
}

.filter-input,
.filter-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(184, 199, 212, 0.7);
  border-radius: 14px;
  background: var(--white);
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 18px;
  color: var(--rain-600);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.empty-state.is-visible {
  display: block;
}

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

.category-card {
  overflow: hidden;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.category-samples img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 46px;
  margin: 34px 0;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-badge {
  min-width: 120px;
  padding: 18px;
  border-radius: 24px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--mist-600), var(--rain-800));
  box-shadow: 0 18px 38px rgba(49, 80, 108, 0.2);
}

.page-badge strong {
  display: block;
  font-size: 28px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(184, 199, 212, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(18, 32, 51, 0.07);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rain-800), var(--mist-600));
  font-weight: 900;
}

.ranking-item img {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0;
  color: var(--rain-600);
  line-height: 1.7;
}

.ranking-item .primary-button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.breadcrumb {
  margin: 26px 0 18px;
  color: var(--rain-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--mist-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.watch-card,
.detail-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--rain-950);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--rain-950);
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rain-950);
  background: linear-gradient(0deg, rgba(16, 32, 51, 0.35), rgba(16, 32, 51, 0.08));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.25);
  font-size: 34px;
  transform: translateX(3px);
}

.play-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.watch-info,
.detail-card {
  padding: 26px;
}

.player-meta span,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--rain-700);
  background: var(--rain-100);
  font-size: 13px;
}

.detail-title {
  margin-bottom: 20px;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-lead {
  margin: 18px 0 0;
  font-size: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--rain-950);
}

.detail-section p {
  margin: 0;
  color: var(--rain-700);
  font-size: 16px;
  line-height: 1.95;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

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

.mini-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 32, 51, 0.08);
}

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

.mini-card span,
.mini-card small {
  display: block;
  padding: 0 12px;
}

.mini-card span {
  padding-top: 12px;
  color: var(--rain-950);
  font-weight: 800;
  line-height: 1.35;
}

.mini-card small {
  padding-bottom: 14px;
  color: var(--rain-500);
  margin-top: 6px;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 28px;
  color: var(--rain-300);
  background: var(--rain-950);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 480px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rain-300);
  background: rgba(255, 255, 255, 0.07);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(82, 174, 191, 0.22);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--rain-500);
  font-size: 13px;
}

[data-card].is-hidden {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
    width: min(380px, 48vw);
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

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

  .header-search {
    display: none;
  }

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

  .hero-slide {
    padding: 58px 24px 96px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-controls {
    left: 24px;
    right: auto;
    bottom: 24px;
  }

  .section-head,
  .page-hero,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    min-height: auto;
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 48px 72px 1fr;
  }

  .ranking-item img {
    width: 72px;
  }

  .ranking-item .primary-button {
    grid-column: 2 / -1;
    width: 100%;
  }

  .page-hero,
  .filter-panel,
  .detail-card,
  .watch-info {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .card-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-number,
  .ranking-item img {
    width: 100%;
  }

  .ranking-number {
    height: 42px;
  }
}
