:root {
  color-scheme: light;
  --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;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --teal-500: #14b8a6;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.section-block,
.quick-search-inner,
.breadcrumb,
.watch-layout,
.container-narrow {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  color: var(--white);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.45);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbeafe;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(16, 185, 129, 0.18);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

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

.hero-slides {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.9) 0%,
      rgba(15, 23, 42, 0.78) 42%,
      rgba(2, 6, 23, 0.18) 100%
    ),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #d1fae5;
  border-color: rgba(209, 250, 229, 0.28);
  background: rgba(15, 23, 42, 0.42);
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  color: var(--white);
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.26);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--emerald-400);
}

.quick-search {
  position: relative;
  z-index: 10;
  margin-top: -54px;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.quick-search h2,
.quick-search p {
  margin: 0;
}

.quick-search p {
  margin-top: 6px;
  color: var(--slate-500);
}

.quick-search input,
.filter-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: var(--slate-50);
}

.quick-search input:focus,
.filter-search input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.section-soft {
  margin-top: 72px;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--emerald-700);
  font-weight: 800;
}

.compact-heading {
  margin-bottom: 18px;
}

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

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

.ranking-grid {
  counter-reset: movie-rank;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald-500);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.32);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  margin: 8px 0;
  color: var(--slate-500);
  font-size: 13px;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.35s ease;
}

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

.category-card span,
.category-card small {
  position: absolute;
  left: 20px;
  right: 20px;
  color: var(--white);
}

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

.category-card small {
  bottom: 22px;
  color: #e2e8f0;
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.side-card,
.detail-card,
.poster-panel,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.ranking-list,
.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li + li,
.compact-list li + li {
  border-top: 1px solid var(--slate-200);
}

.ranking-list a {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.rank-num {
  color: var(--emerald-700);
  font-size: 20px;
  font-weight: 900;
}

.ranking-list img {
  width: 56px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-200);
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong,
.compact-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.compact-list em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--slate-900), var(--emerald-700));
  color: var(--white);
}

.container-narrow h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.container-narrow p:last-child {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  padding: 22px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  border-color: var(--emerald-500);
  background: #ecfdf5;
  color: var(--emerald-700);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-200);
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  color: var(--slate-900);
}

.category-overview-card p {
  color: var(--slate-600);
  line-height: 1.7;
}

.empty-state {
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 42px;
  background: var(--white);
  color: var(--slate-500);
  text-align: center;
}

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

.detail-main {
  padding-top: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.18));
  color: var(--white);
  cursor: pointer;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.32);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.84);
  color: var(--white);
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.lead-text {
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin: 22px 0 28px;
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.poster-panel {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--slate-200);
}

.poster-panel .btn {
  width: 100%;
  margin-top: 14px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 22px;
}

.compact-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.compact-list span {
  color: var(--emerald-700);
  font-weight: 900;
}

.compact-list em {
  grid-column: 2;
}

.related-block {
  padding-bottom: 24px;
}

.site-footer {
  margin-top: 80px;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 42px 0;
}

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

.footer-brand strong {
  color: var(--white);
  font-size: 20px;
}

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

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 22px;
  color: #94a3b8;
  font-size: 13px;
}

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

  .two-column,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
  }

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

  .hero,
  .hero-content {
    min-height: 570px;
  }

  .hero-vignette {
    background: linear-gradient(
      0deg,
      rgba(2, 6, 23, 0.9),
      rgba(2, 6, 23, 0.34)
    );
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .quick-search {
    margin-top: 0;
  }

  .quick-search-inner {
    grid-template-columns: 1fr;
    border-radius: 0;
    width: 100%;
  }

  .section-block {
    padding-top: 46px;
  }

  .section-soft {
    margin-top: 46px;
    padding: 26px 16px;
    border-radius: 24px;
  }

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

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

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

  .watch-layout,
  .breadcrumb,
  .section-block,
  .quick-search-inner,
  .filter-panel,
  .container-narrow {
    width: min(100% - 24px, 1180px);
  }

  .detail-card {
    padding: 22px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .category-card {
    min-height: 180px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
