:root {
  --primary: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body {
  margin: 0;
  color: #1f2937;
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link,
.mobile-link {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.25s ease;
}

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

.mobile-link {
  display: block;
  padding: 13px 20px;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider,
.hero-slide {
  min-height: 640px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(8, 145, 178, 0.72), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

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

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.8;
  color: #e0f2fe;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: #2563eb;
  background: #eff6ff;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  text-decoration: none;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.34);
}

.primary-btn.wide {
  width: 100%;
}

.ghost-btn {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.stats-section {
  background: #fff;
  padding: 44px 0;
}

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

.stat-card {
  min-height: 128px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  color: var(--dark);
}

.section {
  padding: 72px 0;
}

.gradient-soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-head {
  margin-bottom: 30px;
}

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

.section-head.compact {
  margin-bottom: 22px;
}

.section-head h2,
.rank-panel h2,
.content-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head p,
.rank-panel p,
.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.text-link:hover {
  color: #1d4ed8;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 8px 13px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

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

.meta-line {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h2 a {
  color: #111827;
  text-decoration: none;
}

.movie-card h2 a:hover {
  color: var(--primary);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

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

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

.category-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.category-card strong {
  color: #111827;
  font-size: 22px;
}

.category-card small {
  color: #64748b;
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  color: #334155;
  text-decoration: none;
  background: #f8fafc;
  transition: 0.2s ease;
}

.rank-row:hover {
  color: var(--primary);
  background: #eff6ff;
}

.rank-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
}

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: #64748b;
  font-style: normal;
  font-weight: 700;
}

.page-hero {
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(120deg, #2563eb, #0891b2, #0f766e);
}

.page-hero p {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.4));
}

.detail-hero-content {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  color: #bfdbfe;
  font-weight: 800;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.detail-hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: #e0f2fe;
  font-size: 20px;
  line-height: 1.8;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-button {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.5);
  font-size: 28px;
}

.player-overlay strong {
  max-width: min(620px, 90%);
  text-align: center;
  font-size: 24px;
}

.content-card,
.poster-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

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

.poster-card {
  margin-top: 0;
  position: sticky;
  top: 92px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.poster-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.poster-card li span {
  color: #64748b;
  font-weight: 800;
}

.poster-card li strong {
  text-align: right;
  color: #111827;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 440px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
}

[data-card-list] .movie-card.is-hidden {
  display: none;
}

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

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

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

  .rank-panel,
  .poster-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero,
  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 590px;
  }

  .hero p,
  .detail-hero p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .section-head.split {
    display: block;
  }

  .section-head h2,
  .rank-panel h2,
  .content-card h2 {
    font-size: 28px;
  }

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

  .detail-hero,
  .detail-hero-content {
    min-height: 460px;
  }

  .content-card,
  .poster-card {
    padding: 22px;
  }
}
