:root {
  --cream-50: #fefdfb;
  --cream-100: #fdf8f3;
  --warm-50: #faf5f0;
  --warm-100: #f5ebe0;
  --warm-300: #d8b693;
  --warm-700: #8f5c3e;
  --warm-800: #744a38;
  --warm-900: #5d3d2d;
  --tea-50: #fdf8f3;
  --tea-100: #f8eadc;
  --tea-400: #e9a06c;
  --tea-600: #d9703c;
  --tea-700: #b45833;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-large: 0 20px 50px rgba(93, 61, 45, 0.16);
}

* {
  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: linear-gradient(180deg, var(--cream-50), #ffffff 45%, var(--warm-50));
}

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

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

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

.header-inner {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--warm-800);
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #ffffff;
  background: var(--tea-600);
  box-shadow: 0 8px 24px rgba(217, 112, 60, 0.28);
}

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

.nav-link {
  font-weight: 650;
  color: var(--warm-700);
  transition: color 0.25s ease;
}

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

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--warm-50);
  color: var(--warm-800);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  background: #ffffff;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 86px;
  max-width: 690px;
  color: #ffffff;
}

.hero-kicker,
.page-hero p {
  margin: 0 0 13px;
  font-weight: 800;
  color: var(--tea-400);
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
}

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

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

.hero-tags span,
.detail-tags span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
}

.hero-tags span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
  background: var(--tea-600);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(217, 112, 60, 0.32);
}

.primary-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  background: var(--tea-700);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.content-section,
.search-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px;
}

.search-panel {
  padding-bottom: 12px;
}

.search-card {
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-card label {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}

.search-row input,
.search-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--warm-900);
  background: var(--cream-50);
  outline: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-title span {
  color: var(--tea-600);
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--warm-900);
}

.sub-title {
  margin-top: 34px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  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-large);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm-100);
}

.movie-poster img,
.rank-poster img,
.detail-poster img,
.detail-backdrop img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-poster img {
  transition: transform 0.5s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--tea-600);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--warm-900);
}

.movie-line {
  margin: 0 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  overflow: hidden;
  color: #7f6657;
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta span {
  padding: 4px 9px;
  color: var(--warm-700);
  background: var(--warm-50);
}

.category-overview {
  padding-top: 28px;
}

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

.category-tile,
.category-card-large {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: var(--tea-50);
}

.category-tile strong {
  font-size: 18px;
}

.category-tile span {
  color: #7f6657;
  font-size: 14px;
  line-height: 1.55;
}

.page-hero {
  min-height: 310px;
  display: grid;
  place-items: end start;
  padding: 100px max(24px, calc((100vw - 1180px) / 2)) 54px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(217, 112, 60, 0.72), transparent 36%), linear-gradient(135deg, #5d3d2d, #130f0d);
}

.page-hero span {
  display: block;
  max-width: 680px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  overflow: hidden;
  min-height: 150px;
  border-radius: 16px;
  background: var(--warm-100);
}

.category-card-large h2 {
  margin: 5px 0 10px;
}

.category-card-large p {
  color: #7f6657;
  line-height: 1.7;
}

.text-link {
  min-height: 38px;
  padding: 0 18px;
  background: var(--tea-600);
  color: #ffffff;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  min-height: 130px;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  background: var(--warm-100);
}

.rank-number {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--tea-600);
  font-weight: 900;
}

.rank-info {
  padding: 22px;
}

.rank-info h2 {
  margin: 0 0 10px;
}

.rank-info p {
  color: #7f6657;
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #130f0d;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(3px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #130f0d, rgba(19, 15, 13, 0.62));
}

.detail-layout {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 98px 20px 58px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: var(--warm-100);
  box-shadow: var(--shadow-large);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.detail-line {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.detail-tags span,
.detail-meta span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.player-section {
  padding-bottom: 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--tea-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
}

.player-box.is-playing .player-overlay {
  display: none;
}

.detail-text p {
  color: #6f584a;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 20px;
  background: var(--warm-900);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.footer-logo {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

@media (max-width: 1000px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-layout {
    grid-template-columns: 220px 1fr;
  }
}

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

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

  .hero {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 82px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

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

  .movie-info {
    padding: 13px;
  }

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

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

  .category-card-large,
  .rank-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    padding-top: 84px;
  }

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