:root {
  --warm-50: #faf7f2;
  --warm-100: #f2eadf;
  --warm-200: #e7dac8;
  --warm-300: #cabaa4;
  --warm-600: #766650;
  --warm-700: #5f4d38;
  --warm-800: #403426;
  --warm-900: #241a12;
  --sky-50: #eef8ff;
  --sky-100: #d9eefc;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --shadow-md: 0 12px 28px rgba(36, 26, 18, 0.10);
  --shadow-xl: 0 22px 52px rgba(36, 26, 18, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid rgba(202, 186, 164, 0.45);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--warm-900);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-600), var(--amber-500));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.25);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--warm-700);
  font-size: 14px;
  font-weight: 650;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--sky-600);
}

.header-search {
  position: relative;
  width: min(280px, 30vw);
}

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(202, 186, 164, 0.75);
  outline: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--warm-900);
  padding: 12px 14px;
  font: inherit;
  transition: 180ms ease;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--warm-900);
  background: var(--warm-100);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: var(--warm-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 26%, rgba(14, 165, 233, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(36, 26, 18, 0.96), rgba(36, 26, 18, 0.76) 43%, rgba(36, 26, 18, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 84px 0 104px;
}

.hero-text {
  width: min(650px, 100%);
}

.eyebrow,
.tag-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  padding: 7px 12px;
  color: var(--white);
  background: var(--amber-500);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 20px);
}

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

.hero-meta {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  transition: 180ms ease;
}

.btn-primary {
  color: var(--white);
  background: var(--sky-600);
}

.btn-primary:hover {
  background: var(--sky-700);
  transform: translateY(-1px);
}

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

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

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

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

.hero-dot.active {
  background: var(--sky-500);
}

.section {
  padding: 68px 0;
}

.section-muted {
  background: linear-gradient(135deg, var(--sky-50), var(--warm-50));
}

.section-deep {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--warm-600);
}

.section-deep .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

.more-link {
  color: var(--sky-700);
  font-weight: 750;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--warm-100);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img,
.category-preview:hover .poster img {
  transform: scale(1.07);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(36, 26, 18, 0.76));
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 800;
}

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.92);
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.35;
}

.card-line {
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--warm-600);
  font-size: 14px;
}

.card-meta {
  color: var(--warm-600);
  font-size: 13px;
}

.tag-pill {
  padding: 5px 9px;
  color: var(--sky-700);
  background: var(--sky-100);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(36, 26, 18, 0.92), rgba(2, 132, 199, 0.88));
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease;
}

.category-tile:hover {
  transform: translateY(-3px);
}

.category-icon {
  font-size: 38px;
}

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

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

.category-count {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--warm-900);
  background: var(--amber-400);
  font-weight: 850;
}

.page-hero {
  padding: 58px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.match-count {
  display: flex;
  align-items: center;
  color: var(--warm-600);
  white-space: nowrap;
  font-weight: 700;
}

.list-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.list-card + .list-card {
  margin-top: 16px;
}

.list-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.list-card p {
  margin: 0 0 12px;
  color: var(--warm-600);
}

.player-shell {
  background: #000;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.28), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sky-600);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.35);
}

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

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

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
}

.detail-meta {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--warm-200);
  color: var(--warm-600);
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-card p {
  color: var(--warm-700);
}

.review-box {
  padding: 20px;
  border-radius: 16px;
  background: var(--warm-50);
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.side-list .movie-card {
  box-shadow: none;
  border: 1px solid var(--warm-200);
}

.footer {
  padding: 42px 0;
  color: var(--warm-300);
  background: var(--warm-900);
}

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

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

.site-map-list {
  columns: 4 230px;
  column-gap: 28px;
}

.site-map-list a {
  display: block;
  break-inside: avoid;
  padding: 7px 0;
  color: var(--warm-700);
}

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

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(250, 247, 242, 0.98);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.open {
    display: flex;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 12px;
  }

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

  .section-head,
  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

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

  .brand span:last-child {
    font-size: 17px;
  }

  .card-grid,
  .card-grid.small {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .list-card {
    grid-template-columns: 94px 1fr;
  }

  .detail-card {
    padding: 18px;
  }
}
