:root {
  --blue-950: #071631;
  --blue-900: #0f2654;
  --blue-800: #173f87;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 38, 84, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f7f9fd 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700), var(--blue-900));
  box-shadow: 0 12px 30px rgba(8, 31, 76, 0.24);
}

.nav-shell {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 15px;
}

.main-nav a,
.mobile-nav a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #bfdbfe;
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 42px;
  height: 42px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 10px 0;
  font-weight: 600;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--blue-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.5), transparent 28%),
    linear-gradient(90deg, rgba(2, 8, 23, 0.96) 0%, rgba(15, 38, 84, 0.76) 45%, rgba(2, 8, 23, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 8, 23, 0.8), rgba(2, 8, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 22px 120px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.quick-links,
.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.detail-tags a,
.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.small-button,
.search-form button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.search-form button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #f97316);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.small-button {
  color: var(--blue-700);
  background: var(--blue-100);
}

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

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.search-strip {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding: 0 22px;
}

.search-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-shell h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.search-form,
.search-panel {
  display: flex;
  gap: 12px;
}

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

.search-form input:focus,
.search-panel input:focus,
.toolbar input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-links {
  margin-top: 16px;
}

.quick-links a {
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px 0;
}

.inner-section {
  padding-top: 36px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--blue-900);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 8, 23, 0.88), rgba(2, 8, 23, 0.22));
}

.category-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 22px;
  color: #ffffff;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #bfdbfe;
  font-weight: 900;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 14px;
}

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

.ranking-grid,
.mini-grid {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 38, 84, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.movie-card figure img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card figure::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: rgba(2, 8, 23, 0.42);
  transition: opacity 0.3s ease;
}

.movie-card:hover figure::after {
  opacity: 1;
}

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

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

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

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

.movie-card.compact p {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(2, 8, 23, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: linear-gradient(135deg, #f97316, #2563eb);
}

.card-meta span {
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 5px 9px;
  font-size: 12px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  margin: 0 auto;
  padding: 84px 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.45), transparent 32%),
    linear-gradient(120deg, var(--blue-950), var(--blue-700));
}

.page-hero > div {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
  font-size: 18px;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-700);
  font-weight: 800;
}

.toolbar {
  margin-bottom: 24px;
}

.category-overview-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  gap: 34px;
}

.category-overview-block {
  border-radius: 28px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 38, 84, 0.08);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: #334155;
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-tags a {
  color: var(--blue-700);
  background: var(--blue-100);
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 48px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020817;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.25);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020817;
}

.play-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(2, 8, 23, 0.38));
}

.play-toggle span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 38px;
  backdrop-filter: blur(8px);
}

.video-player.is-playing .play-toggle {
  display: none;
}

.detail-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-content article {
  border-radius: 26px;
  padding: 28px;
  background: var(--soft);
  box-shadow: 0 10px 28px rgba(15, 38, 84, 0.06);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.search-panel {
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 38, 84, 0.08);
}

.site-footer {
  margin-top: 86px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

.footer-brand p {
  margin: 0;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1024px) {
  .category-grid,
  .movie-grid,
  .ranking-grid,
  .mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-hero {
    grid-template-columns: 280px 1fr;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .search-form,
  .search-panel,
  .section-heading,
  .category-overview-head,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-hero,
  .detail-content,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 46px;
  }
}
