:root {
  --bg: #fffbeb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d999;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-dark);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.28);
}

.desktop-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: var(--brand);
}

.header-search,
.mobile-search,
.quick-filter form,
.page-filter {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.06);
}

.header-search input,
.mobile-search input,
.quick-filter input,
.page-filter input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--ink);
}

.header-search button,
.mobile-search button,
.quick-filter button,
.page-filter button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand);
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  padding: 90px 24px 84px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags,
.filter-chips,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 30px rgba(180, 83, 9, 0.3);
}

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

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster span,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.quick-filter,
.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-filter {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  align-items: center;
  gap: 20px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.quick-filter form {
  min-height: 68px;
}

.quick-filter input {
  flex: 1;
  font-size: 16px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 12px 16px;
  border-radius: 999px;
  color: #78350f;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.22);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
}

.content-section {
  padding-top: 64px;
}

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

.section-heading h2,
.detail-sidebar h2,
.text-block h2,
.player-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p,
.text-block p,
.page-hero p,
.card-desc,
.category-card-large p,
.footer-inner p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.75;
}

.section-more,
.text-link {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #78350f;
}

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

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

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--brand);
}

.card-meta {
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-tags span,
.detail-meta span {
  color: #92400e;
  background: #fef3c7;
}

.amber-panel {
  margin-top: 64px;
  padding-top: 44px;
  padding-bottom: 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32%),
    #fff7ed;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  z-index: 1;
}

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.compact-card .card-desc {
  display: none;
}

.page-main {
  padding-top: 36px;
  padding-bottom: 72px;
}

.page-hero,
.detail-hero {
  border-radius: 34px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, #fffbeb, #ffffff);
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1,
.search-hero h1 {
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #92400e;
  font-weight: 800;
}

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

.page-filter {
  max-width: 620px;
  margin-top: 24px;
}

.page-filter input {
  flex: 1;
}

.filter-chips {
  margin-top: 18px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #ffffff;
  background: var(--brand);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
}

.category-covers img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 4px 0 10px;
  font-size: 26px;
  font-weight: 950;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.18);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

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

.detail-info .primary-btn {
  margin-top: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  margin-top: 36px;
}

.detail-content,
.detail-sidebar {
  min-width: 0;
}

.player-section,
.text-block,
.detail-sidebar {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-section + .text-block,
.text-block + .text-block {
  margin-top: 24px;
}

.playback-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  font-size: 26px;
}

.play-cover strong {
  font-size: 18px;
}

.text-block p {
  margin: 14px 0 0;
  font-size: 16px;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.side-rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-rank-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fffbeb;
  font-weight: 900;
}

.side-rank-item:hover {
  color: var(--brand);
}

.side-rank-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 24px;
  background: #111827;
  color: #ffffff;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #fbbf24;
  font-weight: 800;
}

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

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

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-slider {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .hero-poster {
    display: none;
  }

  .quick-filter {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

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

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

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-filter,
  .content-section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .horizontal-row {
    grid-auto-columns: 74%;
  }

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

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

  .hero-desc,
  .detail-one-line {
    font-size: 16px;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .text-block,
  .detail-sidebar {
    border-radius: 22px;
  }
}
