:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --brown-950: #2b1506;
  --text: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: rgba(180, 83, 9, 0.16);
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 26px;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon,
.footer-brand span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #4b5563;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.14);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.25);
  background: white;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(120, 53, 15, 0.07);
}

.header-search input,
.mobile-search input,
.search-panel input,
.local-filter input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  min-width: 210px;
}

.header-search button,
.mobile-search button,
.search-panel button,
.quick-search-band button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.13);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-700);
  transition: 0.2s ease;
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.hero {
  margin: 28px auto 32px;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--brown-950);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 42px;
  padding: 70px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-content {
  color: white;
  max-width: 650px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  color: #fed7aa;
  background: rgba(255, 247, 237, 0.13);
  border: 1px solid rgba(254, 215, 170, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 18px 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

.hero-summary {
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
  max-width: 620px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(254, 243, 199, 0.18);
  border: 1px solid rgba(254, 243, 199, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.btn.light {
  color: #7c2d12;
  background: #fff7ed;
}

.btn:hover,
.movie-card:hover,
.category-tile:hover,
.rank-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: white;
}

.quick-search-band,
.content-section,
.ranking-section,
.detail-content,
.overview-grid,
.rank-grid {
  margin: 34px 0;
}

.quick-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fff7ed, white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.quick-search-band h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
}

.quick-search-band p,
.section-heading p,
.page-hero p,
.card-body p,
.detail-line,
.detail-content p,
.overview-card p,
.rank-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.quick-search-band form,
.search-panel {
  display: flex;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.quick-search-band input,
.search-panel input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 18px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-more,
.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.movie-card,
.overview-card,
.rank-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.09);
  transition: 0.2s ease;
}

.poster-link,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.26);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: var(--orange-900);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: 0.3s ease;
}

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

.category-tile span,
.category-tile em {
  position: relative;
  display: block;
  padding: 0 18px;
  z-index: 1;
}

.category-tile span {
  margin-top: 118px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: #ffedd5;
  font-style: normal;
  line-height: 1.55;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.ranking-item img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #111827;
  font-weight: 900;
}

.rank-info em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px;
  margin: 28px 0 34px;
  border-radius: 34px;
  color: white;
  background: linear-gradient(135deg, #78350f, #ea580c 58%, #f59e0b);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 260px;
}

.page-hero h1 {
  color: white;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 780px;
  color: #ffedd5;
  font-size: 18px;
}

.local-filter {
  max-width: 520px;
  margin-top: 24px;
  border-radius: 999px;
  background: white;
}

.local-filter input {
  width: 100%;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.overview-card h2 {
  margin: 0;
  color: #111827;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.rank-copy {
  position: relative;
}

.rank-large {
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(217, 119, 6, 0.12);
  font-size: 70px;
  font-weight: 1000;
  line-height: 1;
}

.rank-copy h2 {
  margin: 4px 0 10px;
  padding-right: 60px;
  color: #111827;
}

.detail-hero {
  margin: 28px 0 34px;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--amber-700);
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.2);
}

.detail-kicker {
  color: var(--amber-700);
  background: #fef3c7;
}

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

.detail-line {
  font-size: 20px;
  font-weight: 700;
}

.tag-row.wide {
  margin: 18px 0 24px;
}

.player-section {
  margin: 34px 0;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111827;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.42), rgba(124, 45, 18, 0.58));
  cursor: pointer;
  z-index: 3;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 32px;
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.38);
}

.play-overlay strong {
  max-width: min(680px, 90%);
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

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

.detail-content article {
  padding: 28px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.08);
}

.detail-content h2 {
  margin: 0 0 12px;
}

.related-grid .movie-card .card-title {
  min-height: 0;
}

.site-footer {
  margin-top: 70px;
  color: #ffedd5;
  background: linear-gradient(90deg, #78350f, #7c2d12);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

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

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: white;
}

.site-footer p,
.site-footer a {
  color: #fed7aa;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  color: #fed7aa;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .rank-grid,
  .detail-content,
  .overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-search-band,
  .detail-grid,
  .overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  main,
  .header-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-stage {
    min-height: 610px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px 22px 72px;
  }

  .hero-control {
    display: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .quick-search-band,
  .page-hero,
  .detail-hero,
  .detail-content article {
    padding: 22px;
    border-radius: 22px;
  }

  .quick-search-band form,
  .search-panel {
    border-radius: 22px;
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .ranking-list,
  .rank-grid,
  .detail-content,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    max-width: 260px;
  }

  .rank-card {
    grid-template-columns: 110px 1fr;
  }

  .detail-grid {
    gap: 22px;
  }
}
