* {
  box-sizing: border-box;
}

:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --cyan-500: #06b6d4;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --green-50: #f0fdf4;
  --slate-950: #020617;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

body {
  margin: 0;
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

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

.brand,
.desktop-nav,
.mobile-panel {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue-900);
  background: var(--yellow-400);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4);
}

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

.desktop-nav {
  gap: 26px;
}

.nav-link {
  padding: 20px 0;
  font-weight: 650;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow-300);
  opacity: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  padding: 8px 16px 16px;
  background: rgba(15, 23, 42, 0.18);
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 85% 18%, rgba(250, 204, 21, 0.28), transparent 24%), linear-gradient(100deg, #172554 0%, #1d4ed8 54%, #06b6d4 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 46px;
  align-items: center;
  min-height: 520px;
  padding: 76px 0 96px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--blue-900);
  background: var(--yellow-400);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.24);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--blue-900);
  background: var(--yellow-400);
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.28);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

.hero-stats span {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.hero-media {
  position: relative;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fade-in 0.45s ease both;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.42);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.78));
}

.hero-poster-title {
  font-size: 22px;
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--yellow-400);
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(90deg, #f0fdf4 0%, #ecfeff 100%);
}

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

.eyebrow {
  display: inline-flex;
  color: var(--orange-500);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 8px 0 0;
  color: var(--slate-800);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.section-more {
  color: var(--blue-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: rgba(2, 6, 23, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.poster-year {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--blue-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--slate-600);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.tag-row span {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  color: var(--blue-700);
  background: #dbeafe;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
}

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

.category-card {
  min-height: 166px;
  padding: 22px;
  color: var(--white);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
}

.category-card em {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-style: normal;
}

.category-card span {
  display: inline-flex;
  margin-top: 22px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--blue-900);
  background: var(--yellow-400);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.search-label {
  font-weight: 800;
}

.page-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.page-search:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--blue-900);
  background: var(--yellow-400);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

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

.small-card {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.small-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #dbeafe;
}

.small-card strong,
.small-card em {
  display: block;
}

.small-card em {
  color: var(--slate-500);
  font-style: normal;
}

.rank-no {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-900);
  background: var(--yellow-400);
  border-radius: 999px;
  font-weight: 900;
}

.page-hero {
  padding: 54px 0;
  color: var(--white);
  background: linear-gradient(100deg, #172554 0%, #2563eb 58%, #06b6d4 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

.player-card,
.detail-card,
.side-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000000;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

.play-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--blue-900);
  background: var(--yellow-400);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 22px 45px rgba(250, 204, 21, 0.3);
}

.player-title {
  padding: 20px 22px 24px;
}

.player-title h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
}

.detail-card p {
  margin: 0 0 18px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.info-list div {
  padding: 12px;
  border-radius: 12px;
  background: var(--slate-100);
}

.info-list strong {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

.side-card {
  padding: 20px;
}

.side-card .small-card {
  grid-template-columns: 70px 1fr;
  padding: 10px 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--slate-200);
  border-radius: 0;
}

.side-card .small-card:last-child {
  border-bottom: 0;
}

.side-card .small-card img {
  width: 62px;
  height: 82px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}

.pagination .current {
  color: var(--blue-900);
  background: var(--yellow-400);
}

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

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

.empty-result {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.empty-result.show {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel.open {
    display: flex;
  }

  .hero-inner,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: 420px;
  }

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

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

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

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

  .hero-inner {
    min-height: auto;
    padding: 48px 0 72px;
  }

  .hero-stats,
  .info-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: 340px;
  }

  .section-head {
    display: block;
  }

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

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

  .movie-card p,
  .tag-row {
    display: none;
  }

  .small-card {
    grid-template-columns: auto 60px 1fr;
  }
}
