:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf0e3;
  --primary-600: #2a724c;
  --primary-700: #1e5b3b;
  --primary-800: #174a30;
  --secondary-600: #6083b5;
  --accent-50: #f5f8fa;
  --night-50: #f4f6f8;
  --night-100: #e3e8ed;
  --night-700: #526170;
  --night-900: #2e3946;
  --text: #17202a;
  --muted: #657383;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(32, 52, 72, 0.14);
  --soft-shadow: 0 14px 35px rgba(32, 52, 72, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--night-50) 42%, #ffffff 100%);
  line-height: 1.65;
}

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.94);
  border-bottom: 1px solid rgba(227, 232, 237, 0.9);
  box-shadow: 0 12px 30px rgba(46, 57, 70, 0.06);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-700);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 10px 26px rgba(42, 114, 76, 0.26);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}

.main-nav a,
.sub-nav a,
.footer-links a {
  color: var(--night-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.sub-nav a:hover,
.footer-links a:hover {
  color: var(--primary-600);
}

.nav-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--night-50);
  border: 1px solid var(--night-100);
}

.nav-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.nav-search input {
  width: 220px;
  padding: 8px 12px;
}

.nav-search button,
.big-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  background: var(--primary-600);
  padding: 8px 16px;
}

.sub-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--night-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--night-900);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--night-900);
}

.hero-track {
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
  padding: 90px max(28px, calc((100vw - 1280px) / 2 + 28px));
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.92), rgba(23, 32, 42, 0.62), rgba(23, 32, 42, 0.24)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 30%;
  height: 280px;
  background: radial-gradient(circle, rgba(42, 114, 76, 0.42), transparent 68%);
}

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

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

.hero-content h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.eyebrow,
.section-kicker {
  color: var(--primary-600);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9f3cd;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-tags span {
  color: var(--primary-700);
  background: var(--primary-50);
}

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

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

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  box-shadow: 0 16px 38px rgba(42, 114, 76, 0.3);
}

.button.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.button.soft {
  color: var(--primary-700);
  background: var(--primary-50);
}

.hero-poster {
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  width: 26px;
  background: #ffffff;
}

.section-block,
.section-narrow,
.page-hero,
.detail-hero,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-block {
  padding-top: 66px;
  padding-bottom: 24px;
}

.section-narrow {
  padding-top: 38px;
  padding-bottom: 16px;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--night-900);
}

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

.text-link {
  color: var(--primary-600);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 24px;
}

.big-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--night-100);
  box-shadow: var(--soft-shadow);
}

.big-search input,
.filter-bar input,
.filter-bar select {
  padding: 12px 16px;
}

.big-search.standalone {
  max-width: 740px;
  margin-top: 26px;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(23, 32, 42, 0.84), rgba(42, 114, 76, 0.46)),
    var(--category-image) center / cover no-repeat;
  box-shadow: var(--soft-shadow);
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(227, 232, 237, 0.86);
  box-shadow: 0 12px 30px rgba(46, 57, 70, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-50));
}

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(42, 114, 76, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.ranking-card h2 {
  margin: 10px 0 6px;
  line-height: 1.28;
}

.card-body h3 {
  font-size: 17px;
}

.card-meta,
.card-desc,
.page-hero p,
.content-card p,
.footer-grid p,
.detail-line,
.ranking-card p {
  color: var(--muted);
}

.card-meta {
  margin: 0 0 8px;
  font-size: 13px;
}

.card-desc {
  min-height: 46px;
  margin: 0;
  font-size: 14px;
}

.split-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--night-100);
}

.rank-item b {
  color: var(--primary-600);
  font-size: 22px;
}

.rank-item span {
  font-weight: 900;
}

.rank-item em,
.mini-card em {
  color: var(--muted);
  font-style: normal;
}

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

.mini-grid.single {
  grid-template-columns: 1fr;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--night-100);
}

.mini-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.page-hero {
  padding-top: 78px;
  padding-bottom: 46px;
}

.compact-hero,
.channel-hero {
  border-radius: 0 0 34px 34px;
}

.page-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
}

.page-hero p {
  max-width: 800px;
  font-size: 18px;
}

.channel-hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 114, 76, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, var(--primary-50));
}

.filter-bar {
  max-width: 780px;
  margin-top: 24px;
  border-radius: 22px;
}

.filter-bar select {
  max-width: 180px;
  border-left: 1px solid var(--night-100);
}

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

.overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--night-100);
  box-shadow: var(--soft-shadow);
}

.overview-cover {
  min-height: 190px;
  display: flex;
  align-items: end;
  padding: 24px;
  color: #ffffff;
  background:
    linear-gradient(180deg, transparent, rgba(23, 32, 42, 0.86)),
    var(--overview-image) center / cover no-repeat;
}

.overview-cover span {
  font-size: 28px;
  font-weight: 900;
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 8px;
}

.overview-body p {
  color: var(--muted);
}

.overview-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.overview-samples span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 13px;
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--night-100);
  box-shadow: 0 12px 30px rgba(46, 57, 70, 0.06);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
}

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

.ranking-cover b {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 540px;
  padding-top: 86px;
  padding-bottom: 52px;
  color: #ffffff;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - 1280px) / -2);
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.94), rgba(23, 32, 42, 0.64), rgba(23, 32, 42, 0.46)),
    var(--detail-image) center / cover no-repeat;
  z-index: -2;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - 1280px) / -2);
  background: linear-gradient(180deg, transparent, rgba(244, 246, 248, 0.16));
  z-index: -1;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
}

.detail-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-main,
.detail-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.content-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--night-100);
  box-shadow: 0 12px 30px rgba(46, 57, 70, 0.06);
}

.content-card p {
  margin: 12px 0 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.meta-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-100);
}

.meta-list b {
  color: var(--night-900);
}

.meta-list span {
  color: var(--muted);
}

.search-summary {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 60px;
  padding-top: 42px;
  padding-bottom: 38px;
  border-top: 1px solid var(--night-100);
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  max-width: 560px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  margin: 24px 0 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .main-nav.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: start;
  }

  .nav-search input {
    width: 100%;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 70px;
  }

  .hero-poster {
    max-width: 240px;
    transform: rotate(0deg);
  }

  .search-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-card {
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 560px) {
  .section-block,
  .section-narrow,
  .page-hero,
  .detail-hero,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-wrap,
  .sub-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

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

  .big-search,
  .filter-bar,
  .footer-grid,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
    border-left: 0;
    border-top: 1px solid var(--night-100);
  }
}
