:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --dark: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 45%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--dark);
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #7c3aed 58%, var(--accent));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.04em;
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--primary);
  background: #eff6ff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--dark);
  background: #f1f5f9;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-track,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  transform: translateX(34px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background-position: center;
  background-size: cover;
  filter: saturate(1.2) blur(16px);
  transform: scale(1.08);
  opacity: 0.34;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(37, 99, 235, 0.72), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.45), transparent 25%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.80) 48%, rgba(2, 6, 23, 0.90) 100%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button.dark {
  color: var(--dark);
  background: #ffffff;
  border-color: var(--line);
}

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

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

.hero-controls button {
  cursor: pointer;
  border: 0;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

.white-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

.section-heading {
  margin-bottom: 28px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.sub-hero h1 {
  margin: 12px 0 0;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 840px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-search,
.search-panel {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.hero-search input,
.search-panel input,
.filter-bar input {
  min-width: 280px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--dark);
  background: transparent;
  font-size: 15px;
}

.hero-search button,
.search-panel button,
.filter-actions button {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

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

.category-chip,
.category-overview-card,
.content-card,
.player-card,
.movie-card,
.rank-row {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.category-chip {
  min-height: 132px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-overview-card:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-chip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 20px;
}

.category-chip span,
.category-overview-card p,
.card-body p,
.rank-content em {
  color: var(--muted);
  line-height: 1.65;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}

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

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

.poster-tag,
.poster-year {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-tag {
  left: 12px;
  background: var(--primary);
}

.poster-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 19px;
  line-height: 1.3;
}

.card-body p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 92px max(16px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 15% 12%, rgba(37, 99, 235, 0.20), transparent 30%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 56%, #fff7ed 100%);
}

.sub-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-name {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
}

.category-overview-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 28px;
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
  color: #334155;
  font-weight: 700;
}

.category-overview-card li span {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.search-label {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  color: var(--dark);
  font-weight: 900;
}

.search-label input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  background: #f8fafc;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions button {
  background: #0f172a;
}

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

.rank-row {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-link img {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-content strong,
.rank-content em,
.rank-content span {
  display: block;
}

.rank-content strong {
  color: var(--dark);
  font-size: 18px;
}

.rank-content em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.rank-content span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.rank-score {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.search-panel {
  width: min(760px, 100%);
  margin-top: 28px;
}

.search-panel input {
  flex: 1;
  min-height: 48px;
}

.detail-hero {
  padding-top: 70px;
  padding-bottom: 70px;
  color: #ffffff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.32;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.58), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.player-section {
  padding-bottom: 40px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.10), rgba(2, 6, 23, 0.56));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.play-overlay strong {
  font-size: 18px;
}

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

.player-info {
  padding: 24px;
}

.player-info h2 {
  margin: 0 0 10px;
  color: var(--dark);
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 38px;
}

.content-card {
  padding: 28px;
  border-radius: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.nav-neighbor {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-neighbor a {
  flex: 1;
  padding: 18px;
  border-radius: 18px;
  color: var(--primary);
  background: #eff6ff;
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

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

@media (max-width: 1080px) {
  .hero-slide {
    grid-template-columns: 1fr 330px;
    gap: 28px;
  }

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 86px 0 120px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .split-heading,
  .filter-bar,
  .search-label,
  .nav-neighbor {
    align-items: stretch;
    flex-direction: column;
  }

  .category-chip-grid,
  .movie-grid,
  .category-overview-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-link {
    grid-template-columns: 44px 78px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .hero-search,
  .search-panel {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input,
  .search-panel input,
  .filter-bar input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 20px;
  }

  .section,
  .white-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .hero-copy p,
  .detail-one-line,
  .lead-text,
  .sub-hero p {
    font-size: 16px;
  }

  .movie-grid {
    gap: 16px;
  }

  .rank-link {
    gap: 10px;
    padding: 10px;
  }

  .rank-link img {
    width: 78px;
    height: 54px;
  }
}
