:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --brand: #f59e0b;
  --brand-dark: #b45309;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 38%, #fff7ed 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #78350f;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32);
}

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

.nav-link,
.mobile-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 650;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #78350f;
  background: var(--brand-soft);
}

.header-search {
  position: relative;
  width: min(280px, 28vw);
}

.global-search,
.local-filter,
.year-filter,
.type-filter {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 16px;
  outline: none;
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(146, 64, 14, 0.08);
}

.global-search:focus,
.local-filter:focus,
.year-filter:focus,
.type-filter:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.global-results {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 90vw);
  max-height: 440px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-item:hover {
  background: #fff7ed;
}

.search-item img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #fef3c7;
}

.search-item strong {
  display: block;
  line-height: 1.35;
}

.search-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #92400e;
}

.mobile-panel {
  padding: 10px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-link {
  display: block;
  margin: 4px 0;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms ease, transform 1200ms ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 44%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 76vh;
  margin: 0 auto;
  padding: 96px 22px 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pills span,
.tag-row span {
  display: inline-flex;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 650;
}

.hero-copy .hero-pills span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 4;
  width: min(1160px, calc(100% - 36px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-category-strip a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 13px;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 22px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 30px;
  align-items: center;
}

.intro-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-panel h2 {
  margin: 0;
  color: #78350f;
  line-height: 1.15;
}

.intro-band h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-band p,
.page-hero p,
.category-overview p,
.content-panel p,
.detail-line {
  color: var(--muted);
}

.home-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

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

.section-heading > a,
.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.category-card,
.category-overview,
.content-panel,
.player-card,
.detail-hero,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(146, 64, 14, 0.18);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #fef3c7;
}

.category-card strong,
.category-title {
  display: block;
  color: #78350f;
  font-size: 20px;
  font-weight: 850;
}

.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fef3c7;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.play-corner,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.play-corner {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
}

.card-body h3 {
  margin: 7px 0 8px;
  color: #78350f;
  font-size: 19px;
  line-height: 1.3;
}

.card-body p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-body .tag-row {
  margin-top: 12px;
}

.rank-section {
  padding-top: 34px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.rank-num {
  color: var(--brand);
  font-size: 24px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

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

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

.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 22px 80px;
}

.page-hero {
  margin: 28px 0 22px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.24), transparent 30rem),
    linear-gradient(135deg, #fff7ed, #ffffff 58%, #fef3c7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 17px;
}

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

.category-overview {
  padding: 24px;
}

.category-overview ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-overview li a {
  color: #92400e;
}

.filter-panel {
  margin: 24px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
}

.empty-state {
  margin: 28px 0 0;
  padding: 20px;
  border-radius: 18px;
  background: #fff7ed;
  color: #92400e;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 750;
}

.detail-hero {
  padding: clamp(24px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 28rem),
    #fff;
}

.detail-info h1 {
  font-size: clamp(36px, 6vw, 64px);
}

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

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: #fef3c7;
  box-shadow: 0 22px 50px rgba(146, 64, 14, 0.18);
}

.player-card {
  margin-top: 28px;
  padding: 16px;
  background: #111827;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-size: 26px;
  padding-left: 5px;
}

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

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.content-panel p {
  margin: 0;
  white-space: pre-line;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

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

.footer-links a {
  color: #92400e;
  font-weight: 700;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-search {
    margin-left: auto;
    width: min(360px, 46vw);
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
    padding: 0 14px;
    gap: 12px;
  }

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

  .header-search {
    display: none;
  }

  .hero-slider,
  .hero-grid {
    min-height: 82vh;
  }

  .hero-grid {
    padding: 78px 18px 142px;
  }

  .hero-poster {
    display: none;
  }

  .hero-category-strip {
    bottom: 72px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .section-wrap,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .filter-panel,
  .home-search {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row {
    grid-template-columns: 36px 54px 1fr;
  }
}
