:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --sky-soft: #e0f2fe;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --bg: #f8fafc;
  --radius-xl: 24px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 36%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.32);
  font-size: 15px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #075985;
  background: #e0f2fe;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: #f1f5f9;
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.64) 46%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(650px, 100%);
  color: #ffffff;
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #0284c7;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.3);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 26px 0 34px;
  color: #f8fafc;
  font-size: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 780;
  transition: 180ms ease;
}

.btn-primary {
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 18px 32px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px) scale(1.02);
}

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

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

.hero-search {
  width: min(470px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 8px;
}

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-search button {
  border: 0;
  border-radius: 13px;
  padding: 10px 16px;
  color: #075985;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: 180ms ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

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

.page-hero,
.category-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
}

.page-hero-inner,
.category-hero-inner,
.detail-hero-inner,
.section,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-hero-inner,
.category-hero-inner,
.detail-hero-inner {
  padding-top: 54px;
  padding-bottom: 54px;
}

.page-hero h1,
.category-hero h1,
.detail-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.page-hero p,
.category-hero p,
.detail-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.75;
}

.section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section.alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(90deg, #e0f2fe, #eff6ff);
}

.section.alt > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #075985;
  background: #e0f2fe;
}

.section-more {
  color: #0284c7;
  font-weight: 760;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.72) 100%);
}

.card-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.card-content {
  padding: 18px;
}

.card-meta,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.card-content h3 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 820;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-content p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.tag-row span,
.pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 760;
}

.movie-card-compact .card-content {
  padding: 14px;
}

.movie-card-compact .card-content h3 {
  font-size: 16px;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  box-shadow: 0 18px 46px rgba(2, 132, 199, 0.22);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #059669, #0f766e);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #9333ea, #4338ca);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.category-card span {
  width: fit-content;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  font-weight: 800;
}

.filter-wrap {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 34px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.65fr));
  gap: 16px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
  padding: 12px 13px;
  color: #0f172a;
  transition: 160ms ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

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

.timeline {
  position: relative;
  display: grid;
  gap: 40px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: #bae6fd;
}

.year-block h3 {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.25);
}

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

.mini-item {
  display: grid;
  grid-template-columns: auto 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: 180ms ease;
}

.mini-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.mini-item img {
  width: 112px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: #0284c7;
  font-weight: 850;
}

.mini-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.mini-item em {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.55));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0284c7;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.32);
  transition: 180ms ease;
}

.player-start:hover span {
  transform: scale(1.08);
}

.player-card.is-playing .player-start {
  display: none;
}

.detail-copy h2,
.panel h2,
.panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.detail-copy p,
.panel p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 16px;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 18px;
  background: #0f172a;
}

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

.site-footer {
  margin-top: 42px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  padding-top: 38px;
  padding-bottom: 38px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px 20px;
}

.footer-links a:hover {
  color: #38bdf8;
}

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

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

  .grid.three,
  .grid.four,
  .grid.categories,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 620px;
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 92px;
  }

  .hero-arrow {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .hero-arrow.prev {
    left: 20px;
  }

  .hero-arrow.next {
    right: 20px;
  }

  .hero-dots {
    bottom: 42px;
  }

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

  .grid.three,
  .grid.four,
  .grid.categories,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .section,
  .page-hero-inner,
  .category-hero-inner,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .mini-item {
    grid-template-columns: auto 92px 1fr;
  }

  .mini-item img {
    width: 92px;
    height: 60px;
  }
}
