:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111c33;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-500: #14b8a6;
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 40px rgba(2, 6, 23, 0.28);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-100);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(135deg, var(--slate-900), var(--slate-800) 45%, var(--slate-900));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 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(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.28);
}

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

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

.nav-link,
.mobile-link {
  color: var(--gray-300);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--emerald-400);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--gray-200);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
}

.page {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 38%, rgba(15, 23, 42, 0.16) 68%),
    linear-gradient(0deg, var(--slate-900), rgba(15, 23, 42, 0.52) 42%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 36px;
  min-height: 650px;
  padding: 76px 0;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: white;
  background: var(--emerald-500);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 12px;
  color: white;
  line-height: 1.05;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 14px;
  color: var(--gray-100);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 800;
}

.hero p,
.page-hero p,
.detail-copy p,
.cta-inner p {
  margin: 0;
  color: var(--gray-300);
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-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.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: white;
  background: var(--emerald-500);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--emerald-600);
}

.ghost-button {
  color: var(--gray-200);
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.42);
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.56);
  color: var(--emerald-300);
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-soft);
}

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

.hero-search input {
  padding: 0 12px;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  padding: 12px 22px;
  color: white;
  border-radius: 999px;
  background: var(--emerald-500);
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-xl);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.search-item:hover {
  background: rgba(51, 65, 85, 0.6);
}

.search-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.search-item strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}

.search-item span {
  color: var(--gray-400);
  font-size: 13px;
}

.hero-panel,
.side-card,
.content-card,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.82);
  box-shadow: var(--shadow-xl);
}

.hero-panel {
  padding: 22px;
  backdrop-filter: blur(12px);
}

.hero-panel h2,
.side-card h2,
.content-card h2,
.section-heading h2 {
  margin: 0;
  color: white;
  font-size: 26px;
  font-weight: 850;
}

.focus-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(51, 65, 85, 0.55);
  transition: background 0.22s ease, transform 0.22s ease;
}

.compact-link:hover {
  background: rgba(51, 65, 85, 0.92);
  transform: translateY(-2px);
}

.compact-link img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-link em {
  display: block;
  margin-top: 4px;
  color: var(--gray-400);
  font-size: 12px;
  font-style: normal;
}

.section-block {
  padding: 72px 0;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--emerald-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--emerald-400);
  font-weight: 700;
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-xl);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-800);
}

.poster-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.84), transparent 46%);
  pointer-events: none;
}

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

.poster-link:hover img {
  transform: scale(1.08);
}

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 8px;
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  left: 10px;
  background: rgba(16, 185, 129, 0.92);
}

.rank-badge {
  right: 10px;
  background: rgba(245, 158, 11, 0.94);
}

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

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0 0 8px;
  color: white;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.poster-link:hover h2 {
  color: var(--emerald-400);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--gray-400);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 38px;
  margin-top: 8px;
  overflow: hidden;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.24), rgba(20, 184, 166, 0.14));
}

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

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

.category-tile {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.86), rgba(15, 118, 110, 0.86));
}

.category-tile span {
  color: white;
  font-size: 22px;
  font-weight: 850;
}

.category-tile p {
  margin: 12px 0 0;
  color: var(--gray-300);
  line-height: 1.65;
}

.cta-panel {
  padding: 84px 0;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.cta-inner {
  text-align: center;
}

.play-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  color: white;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 16px rgba(16, 185, 129, 0.1);
}

.cta-inner h2 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(30px, 4vw, 48px);
}

.cta-inner .primary-button {
  margin-top: 28px;
}

.page-hero {
  position: relative;
  padding: 76px 0 38px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.24), transparent 36rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--gray-400);
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.filter-bar input,
.filter-bar select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-bar select option {
  color: var(--slate-900);
}

.category-list .movie-card.is-hidden {
  display: none;
}

.rank-leads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 54px;
}

.rank-lead-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.rank-lead-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-lead-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.rank-lead-card span,
.rank-lead-card h2,
.rank-lead-card p {
  position: relative;
  z-index: 1;
}

.rank-lead-card span {
  display: inline-flex;
  padding: 6px 10px;
  color: white;
  border-radius: 999px;
  background: var(--emerald-500);
  font-weight: 850;
}

.rank-lead-card h2 {
  margin: 170px 0 10px;
  color: white;
  font-size: 28px;
}

.rank-lead-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--gray-300);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 58px 0 72px;
}

.detail-head-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-800);
  box-shadow: var(--shadow-xl);
}

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

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 62px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.tag {
  display: inline-flex;
  padding: 7px 11px;
  color: var(--gray-200);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.86);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 56px 0 80px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 18px rgba(16, 185, 129, 0.16), var(--shadow-xl);
  font-size: 34px;
}

.content-card,
.side-card,
.player-card {
  padding: 24px;
}

.content-card p {
  margin: 14px 0 0;
  color: var(--gray-300);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.sticky-side {
  position: sticky;
  top: 88px;
}

.info-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 18px 0 0;
}

.info-list dt {
  color: var(--gray-400);
}

.info-list dd {
  margin: 0;
  color: white;
}

.site-footer {
  background: var(--slate-950);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

  .hero-panel,
  .detail-side {
    max-width: 760px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-content {
    padding: 70px 0 48px;
  }

  .hero-search,
  .filter-bar,
  .detail-head-grid,
  .rank-leads,
  .footer-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button {
    width: 100%;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

  .detail-layout {
    padding-top: 34px;
  }
}

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

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

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

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

  .section-block,
  .category-band,
  .cta-panel {
    padding: 46px 0;
  }

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

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

  .movie-card-body h2 {
    font-size: 14px;
  }

  .compact-link {
    grid-template-columns: 82px 1fr;
  }

  .compact-link img {
    width: 82px;
    height: 56px;
  }

  .content-card,
  .side-card,
  .player-card {
    padding: 16px;
  }

  .player-start {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
