
:root {
  --primary-50: #e6f3f8;
  --primary-100: #cce5f1;
  --primary-400: #3fa7d6;
  --primary-500: #0582ca;
  --primary-600: #006494;
  --primary-700: #005073;
  --primary-800: #00324a;
  --secondary-600: #0582ca;
  --accent-50: #fff8db;
  --accent-500: #d8b11f;
  --accent-600: #c49c0c;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-500: #868e96;
  --neutral-600: #495057;
  --neutral-700: #343a40;
  --neutral-800: #212529;
  --neutral-900: #14181d;
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 12px 34px rgba(0, 0, 0, 0.13);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.header-inner {
  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: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 100, 148, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 1.35rem;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--neutral-500);
  font-weight: 500;
}

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

.nav-link {
  color: var(--neutral-700);
  font-weight: 600;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.desktop-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-search input,
.mobile-search input,
.local-filter input,
.local-filter select {
  width: 260px;
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  padding: 10px 42px 10px 14px;
  background: #fff;
  color: var(--neutral-800);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-search input:focus,
.mobile-search input:focus,
.local-filter input:focus,
.local-filter select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(5, 130, 202, 0.12);
}

.desktop-search button,
.mobile-search button {
  position: absolute;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--neutral-500);
  cursor: pointer;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--neutral-100);
  color: var(--neutral-700);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

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

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

.mobile-nav {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mobile-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--neutral-700);
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--neutral-100);
  color: var(--primary-600);
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, var(--primary-700), var(--primary-600) 52%, var(--secondary-600));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -140px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -170px;
  background: rgba(196, 156, 12, 0.2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 46px;
  padding: 76px 0;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--primary-50);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary,
.btn-ghost,
.btn-light,
.section-link,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary,
.btn-light,
.btn-ghost {
  min-height: 46px;
  padding: 12px 20px;
}

.btn-light {
  background: #fff;
  color: var(--primary-700);
  box-shadow: var(--shadow-soft);
}

.btn-light:hover,
.btn-primary:hover,
.btn-ghost:hover,
.section-link:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(0, 50, 74, 0.42);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  border: 0;
}

.btn-primary:hover {
  background: var(--primary-700);
}

.hero-tags a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
  position: relative;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--neutral-800);
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.5s ease both;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--neutral-200);
}

.hero-slide-body {
  padding: 20px;
}

.hero-slide h2 {
  margin: 0 0 8px;
  color: var(--neutral-900);
  font-size: 1.45rem;
}

.hero-slide p {
  margin: 0 0 16px;
  color: var(--neutral-600);
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-slide-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 0.82rem;
  font-weight: 650;
}

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

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

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

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--neutral-100);
}

.section.soft-gradient {
  background: linear-gradient(90deg, var(--accent-50), var(--primary-50));
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--neutral-900);
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--neutral-600);
}

.section-link {
  color: var(--primary-600);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--neutral-200);
}

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

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

.type-badge,
.score-badge,
.rank-badge {
  position: absolute;
  border-radius: 8px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
}

.type-badge {
  left: 10px;
  top: 10px;
  background: var(--primary-600);
}

.score-badge {
  right: 10px;
  top: 10px;
  background: var(--accent-600);
}

.rank-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.22s ease;
}

.card-title:hover {
  color: var(--primary-600);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 12px;
  color: var(--neutral-600);
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 0.82rem;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  color: var(--neutral-900);
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--neutral-600);
}

.category-strip {
  display: flex;
  gap: 8px;
}

.category-strip img {
  width: 30%;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--neutral-200);
}

.page-hero {
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border-bottom: 1px solid var(--neutral-200);
}

.page-hero-inner {
  padding: 48px 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-hero p {
  max-width: 780px;
  color: var(--neutral-600);
  font-size: 1.08rem;
}

.local-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.local-filter input {
  flex: 1 1 280px;
  width: auto;
}

.local-filter select {
  width: 180px;
  padding-right: 14px;
}

.filter-chip {
  border: 0;
  padding: 10px 14px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--primary-600);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 34px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--neutral-600);
  font-size: 0.94rem;
}

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

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

.player-box video,
.player-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-700);
  font-size: 2rem;
  box-shadow: var(--shadow-medium);
}

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

.detail-card,
.side-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.detail-title h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--neutral-600);
  margin: 16px 0 20px;
}

.detail-card h2 {
  margin: 26px 0 10px;
  color: var(--neutral-900);
  font-size: 1.35rem;
}

.detail-card p {
  color: var(--neutral-700);
  margin: 0 0 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 16px;
  color: var(--neutral-900);
}

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

.side-movie {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.side-movie img {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: var(--neutral-200);
}

.side-movie strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 0.95rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.22s ease;
}

.side-movie:hover strong {
  color: var(--primary-600);
}

.side-movie em {
  display: block;
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 0.78rem;
  font-style: normal;
}

.related-section {
  padding-bottom: 60px;
}

.search-empty {
  display: none;
  padding: 56px 20px;
  text-align: center;
  color: var(--neutral-500);
}

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

.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.25rem;
}

.footer-main p,
.site-footer a,
.footer-bottom {
  color: var(--neutral-500);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-search input {
    width: 210px;
  }

  .desktop-nav {
    gap: 16px;
  }

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

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

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

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

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

  .hero-panel {
    max-width: 560px;
  }

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

  .side-card {
    position: static;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-actions a,
  .btn-primary,
  .btn-light,
  .btn-ghost {
    width: 100%;
  }

  .section-heading,
  .detail-title,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.four,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 20px;
  }

  .side-movie {
    grid-template-columns: 96px 1fr;
  }

  .side-movie img {
    width: 96px;
  }
}
