:root {
  --warm-50: #fff9f1;
  --warm-100: #f8eddc;
  --warm-200: #ead8bd;
  --warm-300: #d9c09e;
  --warm-500: #9a7354;
  --warm-600: #755437;
  --warm-700: #4f3828;
  --warm-800: #2d2018;
  --warm-900: #17110d;
  --sky-50: #eff9ff;
  --sky-100: #dcf1ff;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 17, 13, 0.12);
  --soft-shadow: 0 12px 28px rgba(23, 17, 13, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--warm-900);
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--warm-50) 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(154, 115, 84, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--warm-900);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: white;
  font-size: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-600), var(--amber-500));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.24);
}

.brand-name {
  font-size: 21px;
}

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

.nav-link {
  color: var(--warm-700);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--warm-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(154, 115, 84, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav .nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--warm-50);
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--warm-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.36;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(14, 165, 233, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(23, 17, 13, 0.9), rgba(23, 17, 13, 0.55), rgba(23, 17, 13, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 58px;
  min-height: 680px;
  padding: 72px 0 88px;
  color: white;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: var(--amber-400);
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.page-hero .btn-ghost,
.detail-info .btn-ghost {
  color: var(--warm-800);
  background: var(--warm-100);
  border-color: rgba(154, 115, 84, 0.18);
}

.hero-tags,
.genre-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.genre-row span,
.chip-row span,
.chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--warm-700);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--warm-100);
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 24px;
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 12px 14px;
  color: white;
  font-weight: 800;
  border-radius: 16px;
  background: rgba(23, 17, 13, 0.74);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: white;
  font-size: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-400);
}

.search-band {
  background: white;
  border-bottom: 1px solid rgba(154, 115, 84, 0.12);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.content-card h2 {
  margin: 0;
  color: var(--warm-900);
  letter-spacing: -0.03em;
}

.search-band p,
.page-hero p,
.section-head p,
.category-card p,
.movie-card p,
.content-card p,
.detail-one-line {
  color: var(--warm-600);
}

.home-search,
.filter-row {
  display: flex;
  gap: 10px;
}

.home-search input,
.filter-row input,
.filter-row select {
  min-height: 48px;
  border: 1px solid rgba(154, 115, 84, 0.18);
  border-radius: 999px;
  background: var(--warm-50);
  outline: none;
}

.home-search input,
.filter-row input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
}

.home-search button {
  border: 0;
  min-height: 48px;
  padding: 0 24px;
  color: white;
  font-weight: 800;
  border-radius: 999px;
  background: var(--sky-600);
  cursor: pointer;
}

.section-block {
  padding: 70px 0;
}

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

.section-head h2 {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 38px);
}

.small-head h2 {
  font-size: 28px;
}

.text-link {
  color: var(--sky-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(154, 115, 84, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--warm-200);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
}

.year-badge {
  left: 10px;
  background: rgba(2, 132, 199, 0.9);
}

.rank-badge {
  right: 10px;
  background: rgba(245, 158, 11, 0.95);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--warm-500);
  font-size: 13px;
  font-weight: 700;
}

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

.movie-card h3 a:hover {
  color: var(--sky-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.warm-panel {
  background: linear-gradient(135deg, rgba(239, 249, 255, 0.96), rgba(255, 249, 241, 0.98));
}

.category-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 46px;
}

.category-link-grid a,
.category-card-main {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(154, 115, 84, 0.12);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--soft-shadow);
}

.category-link-grid strong {
  color: var(--warm-900);
  font-size: 18px;
}

.category-link-grid span {
  color: var(--warm-600);
  font-size: 14px;
}

.category-strip {
  margin-top: 54px;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  display: grid;
  align-items: center;
  min-height: 280px;
  margin-top: 28px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.18), transparent 30%),
    linear-gradient(135deg, white, var(--warm-50));
  box-shadow: var(--soft-shadow);
}

.slim-hero {
  min-height: 220px;
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 52px);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 17px;
}

.category-overview {
  display: grid;
  gap: 22px;
  padding: 44px 0;
}

.category-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.category-card-main h2 {
  margin: 0;
  font-size: 26px;
}

.category-card-main span {
  color: var(--sky-600);
  font-weight: 800;
}

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

.category-preview a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--warm-200);
}

.category-preview img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.category-preview span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  color: white;
  font-weight: 800;
  border-radius: 12px;
  background: rgba(23, 17, 13, 0.72);
}

.filter-panel {
  padding: 38px 0 70px;
}

.filter-row {
  position: sticky;
  top: 82px;
  z-index: 12;
  padding: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(154, 115, 84, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.filter-row select {
  width: 160px;
  padding: 0 16px;
  color: var(--warm-700);
}

.empty-hint {
  display: none;
  padding: 38px;
  color: var(--warm-600);
  text-align: center;
  border-radius: var(--radius-lg);
  background: white;
}

.empty-hint.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 26px 0 10px;
  color: var(--warm-500);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(135deg, white, var(--warm-50));
  box-shadow: var(--shadow);
}

.detail-poster {
  padding: 12px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 22px;
}

.detail-info h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 18px;
}

.detail-meta {
  margin: 20px 0 14px;
}

.detail-meta span,
.detail-meta a {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--warm-100);
}

.detail-tags span {
  color: var(--warm-700);
  background: var(--sky-100);
}

.player-section {
  padding: 58px 0 26px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 36px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(23, 17, 13, 0.15), rgba(23, 17, 13, 0.66));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-600), var(--amber-500));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 0;
}

.content-card {
  padding: 26px;
  border: 1px solid rgba(154, 115, 84, 0.12);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
}

.site-footer {
  margin-top: 40px;
  color: var(--warm-100);
  background: var(--warm-900);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: var(--warm-300);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 16px;
}

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

.footer-links a {
  color: var(--warm-300);
}

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

.footer-bottom {
  padding: 18px 16px;
  color: var(--warm-300);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    max-width: 310px;
  }

  .movie-grid,
  .dense-grid,
  .compact-grid,
  .search-grid,
  .category-grid,
  .ranking-grid,
  .category-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .header-inner {
    min-height: 62px;
  }

  .brand-name {
    font-size: 18px;
  }

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

  .hero-content {
    padding-top: 46px;
    padding-bottom: 92px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-poster {
    max-width: 230px;
  }

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

  .home-search,
  .filter-row {
    flex-direction: column;
  }

  .filter-row {
    position: static;
  }

  .filter-row select {
    width: 100%;
  }

  .movie-grid,
  .dense-grid,
  .compact-grid,
  .search-grid,
  .category-grid,
  .ranking-grid,
  .category-link-grid,
  .category-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 22px;
  }

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

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 470px) {
  .movie-grid,
  .dense-grid,
  .compact-grid,
  .search-grid,
  .category-grid,
  .ranking-grid,
  .category-link-grid,
  .category-preview {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
