:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --bg-deep: #451a03;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.14);
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.18), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(251, 146, 60, 0.16), transparent 34%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(69, 26, 3, 0.86);
  color: var(--white);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #78350f;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(251, 146, 60, 0.35);
}

.logo-text {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.mobile-menu-button {
  display: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: var(--white);
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 12, 2, 0.92) 0%, rgba(69, 26, 3, 0.72) 48%, rgba(69, 26, 3, 0.2) 100%),
    linear-gradient(0deg, #451a03 0%, rgba(69, 26, 3, 0.35) 42%, rgba(69, 26, 3, 0.18) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 60px;
  padding: 86px 0 88px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.chip-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 18px 38px rgba(251, 146, 60, 0.35);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.wide-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  color: #451a03;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  background: #fbbf24;
}

.quick-search {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.search-panel,
.spotlight-card,
.text-panel,
.player-card,
.filter-cloud,
.movie-card,
.category-tile,
.filter-bar {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
}

.search-panel h2,
.section-heading h2,
.spotlight-card h2,
.text-panel h2,
.filter-cloud h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.search-box {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  background: var(--white);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: var(--white);
  color: var(--text);
}

.search-box input {
  padding: 0 18px;
}

.search-box button {
  flex: 0 0 auto;
  border: 0;
  padding: 14px 22px;
  color: #451a03;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-weight: 900;
}

.content-section {
  padding: 74px 0;
}

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

.section-heading.simple {
  align-items: start;
}

.section-heading p,
.spotlight-card p,
.text-panel p,
.filter-cloud p,
.category-tile p,
.movie-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section-more,
.wide-link {
  color: #78350f;
  background: var(--brand-soft);
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
}

.category-cover {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.94), rgba(254, 243, 199, 0.72));
}

.category-tile strong,
.category-tile small,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  display: block;
  color: #111827;
  font-size: 24px;
}

.category-tile small {
  display: inline-flex;
  margin: 10px 0;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #92400e, #f59e0b 50%, #fef3c7);
}

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

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

.poster.is-missing,
.detail-poster.is-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #78350f, #d97706);
}

.poster-fallback.is-visible {
  display: grid;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #451a03;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

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

.card-meta-line,
.card-stats,
.player-info,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-category {
  color: var(--brand-dark);
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
}

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

.tag-row {
  margin: 14px 0;
}

.tag-row span {
  color: #78350f;
  background: var(--brand-soft);
}

.card-stats {
  justify-content: space-between;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: var(--white);
}

.rank-number {
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 20px;
}

.top-rank .rank-number {
  color: #dc2626;
}

.rank-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--brand-soft);
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  margin-top: 4px;
  color: var(--muted);
}

.spotlight-card {
  position: sticky;
  top: 96px;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.35), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.spotlight-card .primary-button {
  margin-top: 20px;
}

.page-hero {
  padding: 100px 0 84px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(69, 26, 3, 0.94), rgba(146, 64, 14, 0.88)),
    radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.3), transparent 30%);
}

.page-hero .container {
  max-width: 920px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 12px;
}

.result-count {
  margin: 16px 0 24px;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.filter-cloud {
  padding: 24px;
  border-radius: var(--radius);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-cloud span {
  color: #78350f;
  background: var(--brand-soft);
}

.chip-cloud em {
  margin-left: 6px;
  color: var(--brand);
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: #451a03;
}

.detail-backdrop {
  filter: blur(1px) saturate(1.1);
  transform: scale(1.03);
}

.detail-hero-inner {
  position: relative;
  padding: 38px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #92400e, #f59e0b);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.4);
}

.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 860px;
}

.detail-meta {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy .primary-button {
  margin-top: 24px;
}

.player-section {
  padding-top: 56px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-info {
  justify-content: space-between;
  padding: 16px 20px;
  color: #78350f;
  background: var(--brand-soft);
  font-weight: 900;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

.text-panel {
  padding: 30px;
  border-radius: var(--radius);
}

.text-panel p {
  font-size: 17px;
}

.accent-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(251, 191, 36, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #451a03;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

  .hero-poster,
  .detail-poster-wrap {
    max-width: 320px;
  }

  .spotlight-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(69, 26, 3, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-content {
    gap: 28px;
    padding-top: 52px;
  }

  .search-panel,
  .filter-bar,
  .two-column,
  .full-ranking,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

  .content-section {
    padding: 52px 0;
  }

  .rank-item {
    grid-template-columns: 42px 48px minmax(0, 1fr);
  }

  .rank-item img {
    width: 48px;
    height: 66px;
  }
}
