:root {
  --color-ink: #23150d;
  --color-muted: #7a6656;
  --color-soft: #fff7ed;
  --color-card: #ffffff;
  --color-line: rgba(120, 53, 15, 0.14);
  --color-amber: #d97706;
  --color-orange: #ea580c;
  --color-gold: #fbbf24;
  --color-dark: #27130a;
  --shadow-soft: 0 18px 55px rgba(120, 53, 15, 0.13);
  --shadow-strong: 0 28px 70px rgba(50, 22, 8, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fffaf2 0%, #fff7ed 36%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #78350f, #92400e 45%, #7c2d12);
  box-shadow: 0 12px 40px rgba(69, 26, 3, 0.28);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand__icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand__text strong {
  display: block;
  line-height: 1.05;
  font-size: 23px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__text small {
  display: block;
  margin-top: 4px;
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #ffedd5;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fcd34d;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: #fff7ed;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.2);
}

.mobile-link {
  display: block;
  padding: 13px 10px;
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.45), transparent 34%), linear-gradient(135deg, #451a03, #7c2d12 48%, #1c1917);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  animation: softPulse 6s ease-in-out infinite alternate;
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fde68a, #fff7ed 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  margin: 0 0 26px;
  max-width: 680px;
  color: #ffedd5;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.movie-card__tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-card__tags span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 36px rgba(234, 88, 12, 0.33);
}

.button-ghost {
  color: #fff7ed;
  border: 1px solid rgba(255, 237, 213, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-slide__image {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-slide__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.54));
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  width: min(720px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 237, 213, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
}

.hero-search input::placeholder {
  color: #ffedd5;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #78350f;
  background: #fde68a;
  font-weight: 900;
  cursor: pointer;
}

.section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-warm {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.section-head a,
.text-link {
  color: var(--color-orange);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(120, 53, 15, 0.2);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-card--compact .movie-card__poster {
  aspect-ratio: 3 / 4;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
  opacity: 0.86;
}

.movie-card__duration,
.movie-card__category {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-card__category {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.movie-card__body {
  padding: 16px;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--color-orange);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #9a7a5d;
  font-size: 12px;
  font-weight: 700;
}

.movie-card__tags {
  min-height: 28px;
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35);
}

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

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

.category-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card__media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 130px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  padding: 18px;
}

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

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

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  margin: 34px 0 32px;
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.36), transparent 36%), linear-gradient(135deg, #78350f, #7c2d12 56%, #1c1917);
  box-shadow: var(--shadow-strong);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-wrap,
.select-wrap {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.search-wrap input,
.select-wrap select {
  width: 100%;
  height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  color: var(--color-ink);
  background: #fffaf2;
}

.search-wrap input:focus,
.select-wrap select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-muted);
  background: #fff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  color: #9a7a5d;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.42);
  font-size: 34px;
}

.detail-panel,
.sidebar-card {
  margin-top: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  font-size: 13px;
  font-weight: 900;
}

.lead-text {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.prose-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-panel h2:not(:first-child) {
  margin-top: 28px;
}

.prose-panel p {
  margin: 0;
  color: #5f4635;
  font-size: 17px;
  line-height: 1.95;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

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

.sidebar-card h2 {
  margin: 0 0 14px;
}

.sidebar-card p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 12px 0;
  color: var(--color-muted);
}

.sidebar-card strong {
  color: #92400e;
}

.related-section {
  width: 100%;
  padding-bottom: 72px;
}

.site-footer {
  margin-top: 40px;
  color: #ffedd5;
  background: linear-gradient(135deg, #1c1917, #451a03 58%, #1c1917);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
}

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

.site-footer p {
  margin: 0;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: #fed7aa;
  font-size: 14px;
}

@keyframes softPulse {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.32;
  }
}

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-carousel {
    min-height: 680px;
  }

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

  .hero-slide__image {
    width: min(360px, 80vw);
    margin: 0 auto;
    grid-row: 1;
  }

  .hero-controls {
    bottom: 88px;
  }

  .movie-grid--four,
  .movie-grid--three,
  .category-grid,
  .category-grid--wide,
  .footer-grid,
  .detail-layout,
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 66px;
  }

  .brand__text small {
    display: none;
  }

  .brand__text strong {
    font-size: 19px;
  }

  .hero {
    min-height: 790px;
  }

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

  .hero-search {
    flex-direction: column;
    gap: 8px;
    border-radius: 22px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .section,
  .section-warm {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .movie-grid--four,
  .movie-grid--three,
  .category-grid,
  .category-grid--wide,
  .footer-grid,
  .detail-layout,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 32px 22px;
  }

  .detail-panel,
  .sidebar-card {
    padding: 18px;
  }
}
