:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #fef3c7;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --soft-shadow: 0 10px 28px rgba(124, 45, 18, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(254, 215, 170, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(90deg, #b45309, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--orange);
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  color: #4b5563;
  border-radius: 14px;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #fb923c 0%, #f59e0b 45%, #f97316 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 237, 213, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(194, 65, 12, 0.68) 46%, rgba(124, 45, 18, 0.32));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--orange);
  background: #fff7ed;
  border-color: var(--line);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.tag-cloud span {
  padding: 7px 12px;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: var(--orange);
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.36);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 0;
}

.feature-strip-grid div {
  padding: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.feature-strip-grid strong,
.feature-strip-grid span {
  display: block;
}

.feature-strip-grid strong {
  margin-bottom: 4px;
  color: #9a3412;
  font-size: 18px;
}

.feature-strip-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 64px 0;
}

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

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--orange);
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #fdba74;
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-wrap img {
  filter: brightness(0.86);
  transform: scale(1.08);
}

.year-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  font-size: 12px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}

.play-badge {
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 17px;
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-section,
.rank-section {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(254, 215, 170, 0.7);
  border-bottom: 1px solid rgba(254, 215, 170, 0.7);
}

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

.category-tile,
.category-card-large {
  display: grid;
  gap: 10px;
  min-height: 165px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-icon {
  font-size: 34px;
}

.category-tile strong,
.category-card-large h2 {
  margin: 0;
  color: #9a3412;
  font-size: 21px;
  font-style: normal;
}

.category-tile em,
.category-card-large p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.category-card-large em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 237, 213, 0.28), transparent 28%),
    linear-gradient(135deg, #c2410c 0%, #f97316 52%, #f59e0b 100%);
}

.compact-hero {
  text-align: center;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #ffedd5;
  font-size: 18px;
}

.category-hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #9a3412;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

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

.filter-btn {
  padding: 9px 14px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-color: transparent;
}

.empty-state {
  margin-top: 24px;
  padding: 42px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #fdba74;
  border-radius: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 24px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.player-area {
  padding: 18px;
  background: linear-gradient(135deg, #431407, #111827);
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 13px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 14px;
  font-weight: 800;
}

.player-status.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding: 34px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.meta-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.meta-list span {
  color: var(--muted);
}

.meta-list strong {
  color: #9a3412;
  text-align: right;
}

.detail-main h1 {
  margin: 16px 0 14px;
  color: #111827;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lead {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 19px;
}

.detail-tags {
  margin-bottom: 24px;
}

.text-block {
  padding: 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.text-block h2 {
  margin: 0 0 12px;
  color: #9a3412;
  font-size: 23px;
}

.text-block p {
  margin: 0;
  color: #374151;
}

.review-block {
  background: #ffffff;
}

.related-section {
  padding-top: 48px;
}

.site-footer {
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 34px 0;
}

.footer-brand {
  color: #9a3412;
  font-size: 20px;
}

.footer-inner p,
.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: #4b5563;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--orange);
}

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

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

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

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

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

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

@media (max-width: 820px) {
  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
  }

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

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

  .category-hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-hero-inner {
    display: grid;
    text-align: center;
  }

  .hero-icon {
    margin: 0 auto;
  }

  .detail-layout {
    padding: 22px;
  }

  .detail-side {
    max-width: 320px;
  }
}

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-strip-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 62px 0;
  }

  .section {
    padding: 44px 0;
  }
}
