
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #34d399;
  --accent-strong: #10b981;
  --rose: #fb7185;
  --amber: #fbbf24;
  --purple: #c084fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #052e2b;
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.3);
}

.brand-name {
  font-size: 1.22rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link,
.header-search {
  color: var(--muted-strong);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(52, 211, 153, 0.12);
}

.header-search {
  padding: 10px 16px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
}

.header-search:hover {
  transform: translateY(-1px);
  background: rgba(52, 211, 153, 0.2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-brand {
  color: var(--accent);
  font-weight: 800;
  margin: 6px 0 10px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.52) 50%, rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 82px 0 92px;
}

.hero-copy {
  width: min(650px, 100%);
}

.hero-tag,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
}

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

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

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

.btn-primary {
  color: #052e2b;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.26);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12;
}

.section-more {
  color: var(--accent);
  font-weight: 800;
}

.wide-band {
  width: min(1240px, calc(100% - 20px));
  margin: 24px auto;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.38));
  box-shadow: var(--shadow);
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 300px);
  gap: 24px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-rail .movie-card {
  scroll-snap-align: start;
}

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

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

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

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

.movie-card {
  min-width: 0;
  color: var(--text);
  transition: transform 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.poster-wrap,
.compact-poster,
.list-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

.poster-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.compact-poster {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 10px;
}

.poster-wrap img,
.compact-poster img,
.list-poster img,
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.type-badge,
.poster-meta {
  position: absolute;
  left: 12px;
  z-index: 2;
}

.type-badge {
  top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
}

.poster-meta {
  bottom: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.play-mark,
.featured-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-mark {
  width: 52px;
  height: 52px;
}

.featured-play {
  width: 76px;
  height: 76px;
  font-size: 1.6rem;
}

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

.card-title,
.compact-title,
.list-title {
  display: block;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.38;
  transition: color 0.2s ease;
}

.card-title {
  margin-top: 12px;
  font-size: 1rem;
}

.card-desc,
.list-desc {
  display: -webkit-box;
  color: var(--muted);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.65;
}

.card-desc {
  margin-top: 6px;
  font-size: 0.88rem;
}

.movie-card:hover .card-title,
.movie-card:hover .compact-title,
.movie-card:hover .list-title {
  color: var(--accent);
}

.movie-card-list {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.movie-card-list:hover {
  background: rgba(30, 41, 59, 0.72);
}

.list-poster {
  width: 180px;
  flex: 0 0 180px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-title {
  font-size: 1.05rem;
}

.card-meta {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 10px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--amber), var(--accent));
  font-size: 0.85rem;
}

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

.compact-title {
  font-size: 0.95rem;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile,
.category-card-large {
  display: block;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.55));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.32);
}

.category-tile span,
.category-card-title {
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 850;
}

.category-tile em,
.category-card-large p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

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

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-sample a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
  font-size: 0.84rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

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

.ranking-full {
  margin-top: 28px;
}

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

.featured-card {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.86);
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px;
}

.featured-content strong {
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.featured-content em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  padding: 82px 0 68px;
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 211, 153, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.small-hero h1,
.rank-hero h1 {
  max-width: 850px;
}

.small-hero p,
.rank-hero p {
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.filter-panel {
  position: relative;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-keyword input,
.filter-selects select {
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.68);
  color: #ffffff;
  outline: 0;
}

.filter-keyword input {
  width: 100%;
  padding: 0 14px;
}

.filter-keyword input:focus,
.filter-selects select:focus {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 126px;
  padding: 0 12px;
}

.filter-empty {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.76);
}

.filter-empty.is-visible {
  display: block;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: #020617;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(1px);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.94)),
    linear-gradient(0deg, #020617, transparent 48%);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.86);
}

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

.detail-info h1 {
  max-width: 860px;
}

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

.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.16);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding-bottom: 26px;
}

.detail-article,
.detail-side {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #ffffff;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--muted-strong);
  line-height: 2;
  font-size: 1.02rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: #ffffff;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  color: var(--accent);
}

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

  .movie-grid-4,
  .category-grid,
  .category-large-grid,
  .featured-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 72vh;
  }

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

  .movie-grid-6,
  .movie-grid-5,
  .movie-grid-4,
  .category-grid,
  .category-large-grid,
  .featured-rank-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout,
  .detail-content-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .filter-selects {
    flex-wrap: wrap;
  }
}

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

  .site-header-inner {
    height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }

  .hero-content {
    padding-top: 70px;
  }

  .movie-grid-6,
  .movie-grid-5,
  .movie-grid-4,
  .category-grid,
  .category-large-grid,
  .featured-rank-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-rail {
    grid-auto-columns: 78vw;
  }

  .movie-card-list {
    gap: 12px;
    padding: 12px;
  }

  .list-poster {
    width: 116px;
    flex-basis: 116px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-top: 32px;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
