:root {
  color-scheme: dark;
  --page: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --panel-soft: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --emerald: #10b981;
  --emerald-strong: #059669;
  --amber: #f97316;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.16), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.36);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  font-weight: 700;
  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-link:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.76);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.82);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  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.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.32) 34%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  padding-top: 44px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6ee7b7;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
}

.secondary-button,
.section-more {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
}

.ghost-button {
  color: #d1fae5;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(16, 185, 129, 0.26);
}

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

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  margin-top: -120px;
  z-index: 10;
}

.hero-search-card,
.hero-rank-card,
.detail-card,
.side-panel,
.category-overview-card,
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card {
  padding: 26px;
}

.hero-search-card h2,
.side-panel h2,
.section-title-row h2,
.category-overview-card h2,
.detail-card h2 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-search-line {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hero-search-line input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
}

.hero-search-line input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(16, 185, 129, 0.62);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero-search-line button {
  min-width: 96px;
  border: 0;
  color: #ffffff;
  background: var(--emerald);
  border-radius: 16px;
  font-weight: 850;
}

.hero-rank-card {
  padding: 18px;
}

.mini-title {
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.rank-grid,
.side-rank-list {
  display: grid;
  gap: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(30, 41, 59, 0.82);
}

.rank-item span {
  color: #6ee7b7;
  font-size: 18px;
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong {
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--soft);
  font-style: normal;
  font-size: 12px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-controls div {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.32) !important;
}

.hero-dot.is-active {
  width: 30px !important;
  background: var(--emerald) !important;
}

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

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

.section-title-row h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-title-row p {
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.18;
  overflow: hidden;
}

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

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), #dc2626);
  border-radius: 999px;
  font-weight: 950;
}

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

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta span {
  min-height: 24px;
  padding: 3px 8px;
  color: #bbf7d0;
  font-size: 11px;
}

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #6ee7b7;
}

.movie-card p {
  margin: 10px 0 13px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.12);
}

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(30, 41, 59, 0.74)),
    rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.42);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.category-tile em {
  display: grid;
  gap: 6px;
  color: #6ee7b7;
  font-style: normal;
  font-size: 12px;
}

.category-tile em a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-main {
  min-height: 70vh;
  padding-bottom: 86px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 48px;
  border-radius: 30px;
  background:
    radial-gradient(circle at right top, rgba(16, 185, 129, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.55));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.overview-list {
  display: grid;
  gap: 24px;
  padding-top: 42px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  padding: 24px;
}

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

.category-preview-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.category-preview-row a {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.category-preview-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.category-preview-row span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.empty-result {
  padding: 22px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 28px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #6ee7b7;
}

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

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.2), transparent 15rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
}

.play-layer span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  box-shadow: 0 18px 52px rgba(16, 185, 129, 0.38);
  font-size: 32px;
  transform: translateX(3px);
}

.play-layer.is-hidden {
  display: none;
}

.detail-card {
  padding: 26px;
}

.detail-headline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-headline h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-meta {
  margin: 18px 0;
}

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

.prose-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.prose-card h2 + p {
  margin-top: 12px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.cover-panel {
  padding: 14px;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.side-panel {
  padding: 18px;
}

.side-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: var(--soft);
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px;
  color: var(--soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 790px;
  }

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

  .hero-panel {
    grid-template-columns: 1fr;
    margin-top: -168px;
  }

  .hero-rank-card {
    display: none;
  }

  .hero-search-line,
  .section-title-row,
  .page-hero,
  .detail-headline {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid-six,
  .movie-grid-five,
  .movie-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-overview-card,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero h1 {
    font-size: 38px;
  }

  .hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .section-more {
    width: 100%;
  }

  .page-hero,
  .detail-card {
    padding: 22px;
  }

  .movie-grid-six,
  .movie-grid-five,
  .movie-grid-four,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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