:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef7ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img,
video {
  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: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

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

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-dark);
  background: #e0f2fe;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--primary-dark);
  cursor: pointer;
}

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  padding: 86px 0 76px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-label {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(186, 230, 253, 0.3);
  padding: 8px 13px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.section-kicker.light {
  color: #e0f2fe;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-chips span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

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

.btn {
  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;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.35);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 36px;
  line-height: 42px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.search-band {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.global-search,
.filter-panel {
  display: flex;
  gap: 10px;
}

.global-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.global-search button {
  min-width: 96px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
  cursor: pointer;
}

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

.section-soft {
  background: linear-gradient(180deg, #f1f5f9, #ffffff);
}

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

.section-title-row.tight {
  margin-bottom: 16px;
}

.section-title-row h2,
.page-hero h1,
.content-card h2,
.side-card h2 {
  margin: 6px 0 0;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

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

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.text-link:hover {
  color: var(--accent);
}

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

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

.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 {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.15);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82));
}

.play-badge,
.score-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  right: 10px;
  top: 10px;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  font-size: 13px;
}

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

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #0369a1;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.chip-row.large span {
  min-height: 34px;
  padding: 0 13px;
  font-size: 14px;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-title {
  min-height: 42px;
  font-size: 15px;
}

.movie-card-compact .movie-card-body p {
  min-height: 42px;
  font-size: 13px;
}

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

.rank-panel,
.side-card,
.content-card,
.player-card,
.detail-poster-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 92px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: #bae6fd;
  transform: translateX(3px);
}

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

.rank-title {
  display: block;
  font-weight: 900;
}

.rank-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.rank-item strong {
  color: var(--accent);
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  height: 150px;
  padding: 8px;
  background: linear-gradient(135deg, #e0f2fe, #ffedd5);
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.category-body {
  padding: 20px;
}

.category-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.page-hero {
  padding: 82px 0;
}

.gradient-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.42), transparent 28%),
    linear-gradient(135deg, #0369a1, #0284c7 42%, #f97316);
}

.page-hero h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.78);
}

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

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel select {
  max-width: 180px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 68px 104px minmax(0, 1fr) 68px;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ranking-number {
  font-size: 26px;
  font-weight: 950;
  color: #94a3b8;
}

.ranking-poster img {
  width: 104px;
  height: 134px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.ranking-score {
  color: var(--accent);
  font-size: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  opacity: 0.38;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-bg-shade {
  background:
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.62));
}

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

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

.detail-poster-card {
  overflow: hidden;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.detail-copy h1 {
  max-width: 850px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.detail-meta span,
.detail-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.detail-meta strong {
  color: #fed7aa;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.15));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.3);
  font-size: 36px;
}

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

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  font-size: 26px;
}

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

.detail-side {
  position: sticky;
  top: 92px;
}

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

.footer-inner {
  display: grid;
  gap: 10px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
}

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

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

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

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

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

  .nav-shell {
    min-height: 64px;
  }

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

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

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

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

  .hero-content {
    padding: 72px 0 68px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

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

  .search-panel,
  .global-search,
  .filter-panel,
  .detail-layout,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .global-search,
  .filter-panel {
    flex-direction: column;
  }

  .filter-panel select {
    max-width: none;
  }

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

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

  .movie-grid,
  .movie-grid-6,
  .movie-grid-5,
  .movie-grid-4,
  .movie-grid-3,
  .category-grid,
  .category-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-cover {
    height: 120px;
  }

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

  .movie-title {
    font-size: 15px;
  }

  .movie-card-body p {
    display: none;
  }

  .detail-hero-inner {
    padding: 36px 0 46px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-poster-card {
    max-width: 230px;
  }

  .ranking-number {
    font-size: 22px;
  }

  .ranking-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-6,
  .movie-grid-5,
  .movie-grid-4,
  .movie-grid-3,
  .category-grid,
  .category-grid-wide {
    grid-template-columns: 1fr;
  }

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