:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
}

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: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

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

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--slate-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--slate-50);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(2, 6, 23, 0.48) 48%,
    rgba(2, 6, 23, 0.16) 100%
  );
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  color: var(--white);
  max-width: 1180px;
}

.hero-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.eyebrow {
  margin-bottom: 12px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5db;
  font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.primary-button {
  color: var(--white);
  background: var(--emerald);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.26);
}

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

.primary-button:hover {
  background: var(--emerald-dark);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.82);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.section {
  padding: 72px 0;
}

.pull-up {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

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

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

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--emerald);
  font-weight: 800;
}

.feature-grid,
.movie-grid,
.category-grid,
.category-cover-grid,
.compact-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

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

.feature-card,
.movie-card,
.category-card,
.category-cover,
.detail-card,
.content-panel,
.side-panel,
.filter-panel,
.ranking-panel {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.feature-card a,
.feature-card img,
.feature-shade {
  position: absolute;
  inset: 0;
}

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

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

.feature-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18));
}

.feature-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: var(--white);
}

.feature-content span,
.category-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--emerald-dark);
  background: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.feature-content h2 {
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

.feature-content p {
  margin: 0;
  color: #e5e7eb;
}

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

.movie-card.is-hidden,
.compact-card.is-hidden {
  display: none;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--slate-200);
}

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

.year-pill,
.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.year-pill {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.play-pill {
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  background: var(--emerald);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

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

.rank-badge {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta {
  gap: 6px;
  color: var(--slate-500);
}

.card-meta span {
  background: var(--slate-100);
}

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

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

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
}

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

.compact-head {
  align-items: center;
}

.ranking-panel {
  padding: 24px;
}

.ranking-list,
.side-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
}

.compact-card img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-card span {
  color: var(--slate-800);
  font-weight: 800;
}

.compact-card strong {
  color: var(--emerald);
  font-size: 18px;
}

.page-hero {
  padding: 86px 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at top left,
      rgba(16, 185, 129, 0.28),
      transparent 34%
    ),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: var(--white);
}

.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.category-cover div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

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

.category-cover p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #e5e7eb;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 220px));
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.player-section {
  background: var(--slate-950);
}

.player-wrap {
  padding: 28px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(
    circle,
    rgba(2, 6, 23, 0.18),
    rgba(2, 6, 23, 0.58)
  );
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.player-cover span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.32);
  font-size: 30px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-weight: 700;
}

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

.detail-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  margin-bottom: 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 20px;
  background: var(--slate-200);
}

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

.detail-info h1 {
  margin: 14px 0;
  color: var(--slate-900);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-meta {
  color: var(--slate-600);
}

.detail-meta span {
  background: var(--slate-100);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.tag-list span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
  font-weight: 800;
}

.one-line {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--emerald);
  border-radius: 14px;
  color: var(--slate-700);
  background: #ecfdf5;
  font-size: 17px;
}

.content-panel {
  padding: 26px;
  margin-bottom: 22px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

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

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 24px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

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

  .feature-grid,
  .movie-grid,
  .small-grid,
  .compact-grid,
  .category-grid,
  .category-cover-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-poster {
    height: 260px;
  }

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

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

  .detail-poster img {
    height: auto;
  }

  .player-wrap {
    width: 100%;
    padding: 0;
  }

  .player-box {
    border-radius: 0;
  }
}
