:root {
  --bg: #fff7ed;
  --bg-soft: #ffedd5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #291607;
  --muted: #7c4a24;
  --line: rgba(146, 64, 14, 0.16);
  --accent: #ea580c;
  --accent-dark: #9a3412;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(154, 52, 18, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 32rem),
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.26), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 46%, #ffffff 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

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

.site-nav a {
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  padding: 10px 16px;
}

main {
  padding: 26px 0 64px;
}

.hero,
.page-hero,
.detail-hero,
.content-section {
  margin-top: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 38px;
  background: linear-gradient(135deg, #431407, #ea580c 52%, #fbbf24);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 85% 70%, rgba(255, 237, 213, 0.36), transparent 20rem);
}

.hero-frame {
  position: relative;
  height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-slide img {
  height: 480px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.42);
}

.hero-copy {
  color: #fff7ed;
}

.eyebrow,
.section-heading span,
.movie-meta,
.breadcrumb,
.top-rank-card span {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffedd5;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.detail-subtitle {
  max-width: 680px;
  color: rgba(255, 247, 237, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.hero-inline-links,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.section-link,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.ghost-btn {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.page-hero,
.detail-hero,
.content-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(154, 52, 18, 0.08);
}

.page-hero {
  padding: clamp(36px, 6vw, 74px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 237, 213, 0.86));
}

.page-hero p {
  color: var(--muted);
}

.small-hero {
  min-height: 260px;
}

.content-section {
  padding: clamp(24px, 4vw, 42px);
}

.content-section.tinted {
  background: rgba(255, 237, 213, 0.54);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  flex: none;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 16px 36px rgba(154, 52, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(154, 52, 18, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(67, 20, 7, 0.72);
  backdrop-filter: blur(12px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-style: normal;
}

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

.movie-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

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

.movie-card p:not(.movie-meta) {
  display: -webkit-box;
  min-height: 72px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-list span,
.detail-meta span,
.hero-inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--accent-dark);
  background: rgba(255, 237, 213, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.tag-list.large span {
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.category-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-card {
  overflow: hidden;
  min-height: 240px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-card a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 240px;
}

.category-card img {
  position: absolute;
  inset: 0;
  filter: saturate(1.08) contrast(0.92);
}

.category-card a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.08), rgba(67, 20, 7, 0.78));
}

.category-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
  color: #fff7ed;
}

.category-card span {
  color: #fed7aa;
  font-weight: 900;
}

.category-card h3 {
  margin: 8px 0;
  font-size: 28px;
}

.category-card p {
  margin: 0;
  line-height: 1.7;
}

.filter-panel,
.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-panel label {
  width: 100%;
}

.filter-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
}

.filter-panel input,
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.search-box input:focus {
  border-color: rgba(234, 88, 12, 0.58);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.top-rank-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(154, 52, 18, 0.14);
}

.top-rank-card img {
  height: 320px;
}

.top-rank-card div {
  padding: 20px;
}

.top-rank-card h2 {
  margin: 0;
  font-size: 25px;
}

.top-rank-card p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(22px, 5vw, 48px);
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 237, 213, 0.78));
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  color: var(--text);
}

.detail-subtitle {
  color: var(--muted);
}

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

.player-section {
  margin-top: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #140903;
  box-shadow: 0 24px 70px rgba(20, 9, 3, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #140903;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.26), rgba(20, 9, 3, 0.72));
  cursor: pointer;
}

.player-layer.is-hidden {
  display: none;
}

.player-layer span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 20px;
  font-weight: 900;
}

.player-layer strong {
  font-size: clamp(22px, 3vw, 36px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-content article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
}

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

.detail-content p {
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 28px;
  padding: 36px 0;
}

.footer-inner strong {
  font-size: 24px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-content: start;
}

.footer-inner nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 32px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

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

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

  .hero-slide img {
    height: 360px;
  }

  .section-heading,
  .footer-inner,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .footer-inner,
  main {
    width: min(100% - 20px, 1180px);
  }

  .brand strong {
    font-size: 20px;
  }

  .hero,
  .hero-frame {
    min-height: 700px;
  }

  .hero-slide img {
    height: 300px;
  }

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

  .filter-panel,
  .search-box {
    flex-direction: column;
  }
}
