:root {
  --primary-50: #e6fffb;
  --primary-100: #c0f5ef;
  --primary-400: #1ab0b0;
  --primary-500: #009999;
  --primary-600: #007a7a;
  --primary-700: #005b5b;
  --accent-500: #f97316;
  --secondary-50: #f0f4f8;
  --secondary-100: #d9e2ec;
  --secondary-200: #bcccdc;
  --secondary-300: #9fb3c8;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-800: #243b53;
  --secondary-900: #102a43;
  --white: #ffffff;
  --black: #05090d;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
  --shadow-strong: 0 28px 80px rgba(5, 9, 13, 0.32);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--secondary-900);
  background: var(--secondary-50);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, var(--secondary-200), var(--secondary-100));
}

button,
input,
select {
  font: inherit;
}

.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.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(159, 179, 200, 0.32);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  box-shadow: 0 12px 25px rgba(0, 153, 153, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 3px;
  color: var(--secondary-600);
  font-size: 12px;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--secondary-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--secondary-900);
  background: var(--secondary-100);
  cursor: pointer;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  padding-top: 46px;
}

.hero-badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: rgba(0, 153, 153, 0.92);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--primary-500);
  box-shadow: 0 14px 26px rgba(0, 153, 153, 0.28);
}

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

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

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

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

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

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-100));
}

.section-dark {
  color: var(--white);
  background: var(--secondary-900);
}

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

.section-heading .kicker {
  color: var(--primary-700);
  background: var(--primary-50);
}

.section-heading h2,
.page-title h1 {
  margin: 10px 0 8px;
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  margin: 0;
  color: var(--secondary-600);
  line-height: 1.8;
}

.section-dark .section-heading p {
  color: var(--secondary-300);
}

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

.grid {
  display: grid;
  gap: 24px;
}

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

.movie-card,
.category-card,
.rank-row,
.detail-card {
  background: var(--white);
  border: 1px solid rgba(159, 179, 200, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 153, 153, 0.42);
  box-shadow: 0 24px 55px rgba(16, 42, 67, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--secondary-100);
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  inset: auto 16px 16px auto;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 153, 153, 0.92);
  border-radius: 50%;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent-500);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--primary-600);
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--secondary-600);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  color: var(--secondary-700);
  background: var(--secondary-100);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 340px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 24px;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--secondary-800);
  box-shadow: var(--shadow-strong);
}

.feature-tile.large {
  grid-row: span 2;
}

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

.feature-tile:hover img {
  transform: scale(1.08);
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

.feature-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
}

.feature-caption span {
  color: var(--primary-400);
  font-weight: 800;
  font-size: 13px;
}

.feature-caption h3 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 22px;
}

.page-hero {
  padding: 64px 0 42px;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
  color: var(--white);
}

.page-title {
  max-width: 820px;
}

.page-title p {
  color: var(--secondary-200);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid rgba(159, 179, 200, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--secondary-700);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--secondary-900);
  background: var(--secondary-50);
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(0, 153, 153, 0.11);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 153, 153, 0.45);
}

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

.category-card p {
  margin: 0 0 22px;
  color: var(--secondary-600);
  line-height: 1.8;
}

.category-card span {
  margin-top: auto;
  color: var(--primary-600);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 136px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: var(--primary-500);
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0;
  color: var(--secondary-600);
  line-height: 1.7;
}

.rank-meta {
  color: var(--secondary-500);
  font-weight: 800;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  color: var(--white);
  background: var(--secondary-900);
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 42, 67, 0.96), rgba(16, 42, 67, 0.72));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: end;
  padding: 58px 0;
}

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

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

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

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.85;
}

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

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.16));
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary-500);
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(0, 153, 153, 0.36);
  cursor: pointer;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.detail-card {
  padding: 28px;
}

.detail-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--secondary-700);
  line-height: 2;
}

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

.related-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  background: var(--secondary-50);
}

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

.related-item img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

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

.related-item span {
  color: var(--secondary-500);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  color: var(--secondary-200);
  background: var(--secondary-900);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

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

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

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

.is-hidden-by-filter {
  display: none !important;
}

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

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

  .feature-tile.large {
    grid-column: span 2;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(159, 179, 200, 0.35);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

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

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

  .hero {
    min-height: 620px;
  }

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

  .section-heading,
  .footer-grid {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 48px 96px 1fr;
  }

  .rank-meta {
    grid-column: 3;
  }
}

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

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

  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .section {
    padding: 54px 0;
  }

  .card-grid,
  .category-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile.large {
    grid-column: auto;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-poster {
    display: none;
  }

  .rank-meta {
    grid-column: 2;
  }

  .detail-card {
    padding: 22px;
  }
}
