:root {
  --page-bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.38);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 22px rgba(180, 83, 9, 0.25);
}

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

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

.nav-link {
  color: #78350f;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.section-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.section-search input {
  min-width: 220px;
  border: 1px solid #fcd34d;
  border-right: 0;
  color: #78350f;
  background: #fff;
  padding: 10px 14px;
  outline: none;
  border-radius: 12px 0 0 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.section-search input:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.section-search button {
  border: 0;
  color: #fff;
  background: var(--brand);
  padding: 11px 16px;
  border-radius: 0 12px 12px 0;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fef3c7;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #92400e;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel a {
  color: #78350f;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  background: #0f0a05;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 50%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1240px) / 2));
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 32px;
}

.hero-meta span {
  color: #fffbeb;
  background: rgba(180, 83, 9, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.32);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--brand);
  padding: 15px 26px;
  box-shadow: 0 16px 26px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #b45309;
}

.ghost-btn {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 14px 24px;
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(180, 83, 9, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.section {
  padding: 52px 0;
}

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

.page-head {
  display: block;
  padding: 54px 0 26px;
}

.section-eyebrow {
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-title,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.88)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.32), transparent 38%);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(146, 64, 14, 0.18);
}

.category-tile span {
  color: #78350f;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fbbf24;
  box-shadow: 0 20px 42px rgba(146, 64, 14, 0.16);
}

.movie-card.is-hidden {
  display: none;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  font-weight: 950;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #d97706;
  border-radius: 12px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span,
.detail-meta span,
.tag,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

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

.card-body p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #92400e;
  font-size: 13px;
}

.card-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.small-btn {
  color: #fff;
  background: var(--brand);
  padding: 11px 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid #fcd34d;
  color: #92400e;
  background: #fffbeb;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #fff;
  background: var(--brand);
}

.detail-wrap {
  padding: 40px 0 64px;
}

.breadcrumb {
  margin-bottom: 20px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.content-panel {
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #050505;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.46), rgba(0, 0, 0, 0.7) 58%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #d97706;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.player-copy {
  padding: 24px;
}

.player-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.player-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-side {
  padding: 20px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.content-panel {
  padding: 24px;
}

.content-panel h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 24px;
  font-weight: 950;
}

.content-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.related-section {
  margin-top: 46px;
}

.site-footer {
  margin-top: 60px;
  background: #1f1308;
  color: #fef3c7;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  max-width: 580px;
  margin: 0;
  color: #fde68a;
  line-height: 1.8;
}

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

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

.empty-message {
  display: none;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 18px;
  font-weight: 800;
}

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

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

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

  .hero-stage {
    min-height: 560px;
  }

  .hero-content {
    top: auto;
    bottom: 74px;
    transform: none;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .section-search input,
  .mobile-search input {
    min-width: 0;
    width: 100%;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 132px 1fr;
  }

  .card-poster {
    min-height: 198px;
  }

  .card-body p {
    -webkit-line-clamp: 3;
  }

  .detail-side {
    display: block;
  }

  .detail-side img {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 460px) {
  main,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .movie-card {
    grid-template-columns: 112px 1fr;
    border-radius: 18px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 17px;
  }

  .card-footer {
    display: none;
  }
}
