
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --yellow: #facc15;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.13), transparent 30%), var(--bg);
  color: var(--text);
  min-width: 320px;
}

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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: white;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

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

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
}

.mobile-menu-inner {
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
}

.site-main {
  padding-top: 64px;
}

.hero {
  position: relative;
  min-height: 540px;
  height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-gradient,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.04));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

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

.hero-kicker,
.hero-stats,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted-strong);
  font-size: 13px;
}

.hero-kicker span:first-child {
  background: rgba(8, 145, 178, 0.86);
  color: white;
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-line {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.hero-summary {
  margin: 0 0 20px;
  color: var(--muted-strong);
  line-height: 1.8;
}

.hero-stats {
  margin-bottom: 18px;
  color: var(--muted-strong);
}

.hero-stats span:first-child {
  color: var(--yellow);
  font-weight: 800;
}

.hero-tags {
  margin-bottom: 26px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(8, 145, 178, 0.42);
}

.hero-arrow {
  position: absolute;
  bottom: 34px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-prev {
  right: 92px;
}

.hero-next {
  right: 36px;
}

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

.hero-dot {
  width: 18px;
  height: 4px;
  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: 36px;
  background: var(--cyan);
}

.content-section {
  padding: 64px 0;
}

.section-tinted {
  background: rgba(15, 23, 42, 0.32);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--cyan);
  font-weight: 700;
}

.horizontal-row {
  display: flex;
  gap: 22px;
  margin: 0 -16px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

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

.movie-card {
  min-width: 0;
  color: white;
  scroll-snap-align: start;
}

.movie-card-wide {
  width: 320px;
  flex: 0 0 320px;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  box-shadow: var(--shadow);
}

.thumb-wide {
  aspect-ratio: 16 / 9;
}

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

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

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0.85;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(8, 145, 178, 0.88);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--cyan);
}

.movie-card em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span:first-child {
  color: var(--yellow);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.rank-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 74px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid var(--line);
}

.slim-hero {
  padding: 70px 0 62px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero p {
  width: min(720px, 100%);
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-4px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
}

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

.category-info {
  display: block;
  padding: 18px;
}

.category-info strong,
.category-info em,
.category-info small {
  display: block;
}

.category-info strong {
  font-size: 20px;
}

.category-info em {
  min-height: 46px;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.category-info small {
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 170px);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 6, 23, 0.76);
  color: var(--text);
  padding: 0 12px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: end;
  min-height: 620px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

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

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

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.18));
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.36);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 20px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
}

.text-panel,
.detail-table {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-soft);
}

.text-panel h2,
.detail-table h2 {
  margin: 0 0 14px;
}

.text-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

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

.detail-table li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-table li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-table span {
  color: var(--muted);
}

.detail-table strong {
  color: var(--muted-strong);
  text-align: right;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 64px 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  border-color: rgba(34, 211, 238, 0.44);
  transform: translateY(-2px);
}

.ranking-index {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-card img {
  width: 76px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy em {
  margin: 5px 0;
  color: var(--muted);
  font-style: normal;
}

.ranking-copy small {
  color: var(--muted);
}

.ranking-score {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.94);
  padding: 46px 0;
}

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

.footer-brand {
  margin-bottom: 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
}

.site-footer a:hover {
  color: var(--cyan);
}

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

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

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

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

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

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

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding-bottom: 100px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-arrow {
    bottom: 28px;
  }

  .hero-prev {
    right: 80px;
  }

  .hero-next {
    right: 26px;
  }

  .hero-dots {
    left: 24px;
    bottom: 46px;
    transform: none;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    min-height: auto;
  }

  .detail-poster {
    width: min(250px, 78vw);
  }

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

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

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

  .brand-copy small {
    display: none;
  }

  .content-section {
    padding: 44px 0;
  }

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

  .movie-card-wide {
    width: 260px;
    flex-basis: 260px;
  }

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

  .rank-row {
    grid-template-columns: 34px 62px 1fr;
  }

  .rank-row img {
    width: 62px;
    height: 82px;
  }

  .rank-score {
    display: none;
  }

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

  .ranking-card img {
    width: 62px;
    height: 82px;
  }

  .ranking-score {
    display: none;
  }
}
