:root {
  --bg: #f7fcfd;
  --surface: #ffffff;
  --surface-soft: #eefcff;
  --ink: #10212b;
  --muted: #647482;
  --line: #d8eef1;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --teal: #14b8a6;
  --blue: #2563eb;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(8, 145, 178, 0.14);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28rem),
    var(--bg);
  min-height: 100vh;
}

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

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

.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.86);
  border-bottom: 1px solid rgba(216, 238, 241, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a,
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #40515d;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown:hover > a {
  color: var(--cyan-dark);
  background: #e7fbff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 46px;
  left: 0;
  width: 440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #52636e;
  font-size: 14px;
  font-weight: 700;
}

.dropdown-panel a:hover {
  color: var(--cyan-dark);
  background: #edfdff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #e7fbff;
  border-radius: 13px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--cyan-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  color: #40515d;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--cyan-dark);
  background: #e7fbff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto;
  height: 540px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(20, 184, 166, 0.10), rgba(37, 99, 235, 0.08));
  filter: blur(1px);
  z-index: -1;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #092736, #0f5966 48%, #11a5a5);
  box-shadow: 0 28px 70px rgba(8, 71, 93, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 34, 0.92), rgba(4, 24, 34, 0.62) 46%, rgba(4, 24, 34, 0.12)),
    linear-gradient(0deg, rgba(4, 24, 34, 0.66), transparent 55%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #d7fbff;
  font-weight: 700;
  font-size: 13px;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #d9eef3;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.26);
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.34);
}

.btn-light {
  color: #074353;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

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

.hero-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
  display: block;
  font-size: 20px;
}

.hero-stat span {
  color: #bcecf3;
  font-size: 12px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 5vw, 64px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
}

.section {
  padding: 56px 0;
}

.section-tint {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.86), rgba(240, 253, 250, 0.86));
}

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

.kicker {
  color: var(--cyan-dark);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-title h1,
.detail-main h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--cyan-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(216, 238, 241, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.24);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #d7fbff, #f0fdfa);
}

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

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

.score,
.duration {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.score {
  top: 10px;
  left: 10px;
  background: rgba(245, 158, 11, 0.95);
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.66);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--cyan-dark);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #657884;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eefcff;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #e6fbff;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: var(--shadow);
}

.category-tile:nth-child(3n+2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-tile:nth-child(3n+3) {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

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

.category-tile p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-tile span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: #e7fbff;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-score {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.search-box span {
  color: var(--cyan-dark);
  font-weight: 900;
}

.search-box input,
.filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.filter-row select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

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

.page-title {
  padding: clamp(28px, 5vw, 50px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.9));
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #03151d;
  box-shadow: 0 24px 60px rgba(3, 21, 29, 0.32);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(3, 21, 29, 0.62), rgba(8, 145, 178, 0.24));
  cursor: pointer;
}

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #08333d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-button svg {
  width: 36px;
  height: 36px;
  margin-left: 5px;
  fill: currentColor;
}

.detail-card,
.related-panel,
.text-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 20px;
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #e7fbff;
  margin-bottom: 16px;
}

.detail-main h1 {
  margin-top: 28px;
}

.detail-intro {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.text-block {
  padding: 24px;
  margin-top: 22px;
}

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

.text-block p {
  margin: 0;
  color: #40515d;
  line-height: 1.95;
}

.related-panel {
  padding: 20px;
  margin-top: 22px;
}

.related-panel h2 {
  margin: 0 0 16px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 78px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #e7fbff;
}

.related-card strong {
  display: block;
  margin-bottom: 6px;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.site-footer {
  margin-top: 54px;
  padding: 46px 0 24px;
  color: #ceeef4;
  background: linear-gradient(135deg, #073240, #0f766e);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 200px 200px;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b9e6ed;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .movie-grid,
  .movie-grid-wide,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-card img {
    margin: 0;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

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

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 80vw);
  }

  .hero-controls {
    left: 28px;
  }

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

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

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

  .rank-score {
    grid-column: 3;
    font-size: 18px;
  }

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

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

  .brand {
    font-size: 17px;
  }

  .hero {
    padding-top: 22px;
  }

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

  .hero-slide {
    padding: 24px;
  }

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

  .hero h2 {
    font-size: 25px;
  }

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

  .movie-grid,
  .movie-grid-wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-card {
    display: block;
  }

  .detail-card img {
    margin-bottom: 16px;
  }
}
