:root {
  --bg-start: #fff7ed;
  --bg-mid: #fefce8;
  --bg-end: #fffbeb;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --rose: #f43f5e;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8d1;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 20px 45px rgba(180, 83, 9, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
    linear-gradient(135deg, var(--bg-start), var(--bg-mid) 48%, var(--bg-end));
}

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

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

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
  background: #fef3c7;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--text);
  background: #fffbeb;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-nav a:hover {
  background: #fef3c7;
  color: var(--amber-dark);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #f59e0b 0%, #ea580c 45%, #be123c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%);
  background-size: 34px 34px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(to top, #fff7ed, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 20px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 35px rgba(120, 53, 15, 0.34);
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 8px 24px rgba(120, 53, 15, 0.26);
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.button-primary {
  color: var(--amber-dark);
  background: white;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.28);
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fffbeb;
}

.button-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.hero-panel {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-card {
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.3);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
}

.hero-card-body {
  padding: 24px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-meta span {
  padding: 6px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.hero-card .button-primary {
  margin-top: 18px;
  min-height: 42px;
  padding: 10px 18px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 26px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: white;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section.fluid {
  max-width: none;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.85), rgba(255, 241, 242, 0.72));
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-heading.center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  color: #1f2937;
}

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

.section-link {
  color: var(--amber-dark);
  font-weight: 800;
}

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

.grid-cards.large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.movie-card.featured .poster-link,
.movie-card.large-card .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.year-pill {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #78350f;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 2.7em;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card.featured .card-body h3,
.movie-card.large-card .card-body h3 {
  min-height: auto;
  font-size: 20px;
}

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

.card-meta,
.card-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta {
  font-size: 13px;
  font-weight: 650;
}

.card-line {
  display: -webkit-box;
  margin-top: 8px;
  min-height: 3.25em;
  overflow: hidden;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  color: var(--amber-dark);
  background: #fef3c7;
}

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

.category-card {
  display: block;
  min-height: 190px;
  padding: 26px;
  border-radius: 26px;
  color: #78350f;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.9));
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #92400e;
  line-height: 1.7;
}

.filter-panel {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.search-box span {
  color: var(--amber-dark);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.empty-state.show {
  display: block;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
}

.compact-card img {
  width: 82px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  background: #fed7aa;
}

.compact-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.compact-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-rank {
  width: max-content;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  color: white;
  font-weight: 850;
  font-size: 12px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 72px;
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #fed7aa;
  box-shadow: var(--shadow);
}

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

.detail-main {
  min-width: 0;
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  color: #1f2937;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-weight: 750;
}

.detail-intro,
.detail-text p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.player-shell {
  overflow: hidden;
  position: relative;
  margin: 30px 0;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

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

.play-mark {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--amber-dark);
  font-size: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.play-overlay:hover .play-mark {
  transform: scale(1.08);
}

.play-title {
  margin-top: 14px;
  font-weight: 850;
  font-size: 18px;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.detail-text {
  display: grid;
  gap: 24px;
}

.detail-text section {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.06);
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-text p {
  margin: 0;
}

.related-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, #78350f, #92400e 50%, #9a3412);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 14px;
  color: white;
  font-size: 24px;
  font-weight: 850;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff7ed;
  font-size: 18px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #fde68a;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 34px;
  border-top: 1px solid rgba(253, 230, 138, 0.28);
  text-align: center;
  color: #fcd34d;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
  cursor: pointer;
}

.back-top.show {
  display: flex;
}

@media (max-width: 1100px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 46px;
    gap: 30px;
  }

  .hero-panel,
  .hero-card {
    min-height: 430px;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 14px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .hero-inner,
  .section,
  .related-section,
  .detail-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-card img {
    height: 230px;
  }

  .grid-cards,
  .grid-cards.large {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

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

  .compact-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .compact-card img {
    width: 70px;
    height: 94px;
  }

  .play-mark {
    width: 66px;
    height: 66px;
  }
}
