:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-700: #44403c;
  --ink: #2f160c;
  --muted: #7c6359;
  --shadow: 0 18px 38px rgba(120, 53, 15, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--stone-100) 100%);
}

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: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo {
  font-size: 24px;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-800), var(--amber-600));
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: #78350f;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-800);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.page-filter input {
  width: 240px;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--red-900);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.page-filter input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.top-search button,
.btn-primary,
.btn-outline,
.page-filter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.top-search button,
.btn-primary,
.page-filter button {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.24);
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.btn-primary:hover,
.page-filter button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--red-900);
}

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--amber-200);
  background: rgba(255, 251, 235, 0.98);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a,
.mobile-cat-link {
  color: var(--red-900);
  font-weight: 700;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.mobile-cat-link {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--red-100);
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #130905;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.active img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px 70px;
  color: #fff;
}

.hero-content-inner {
  max-width: 840px;
}

.hero-eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.72;
}

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

.hero-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.52);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px 34px;
}

.page-hero-card,
.detail-card,
.content-section,
.category-tile,
.player-shell,
.info-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.page-hero-card {
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, #fff7ed, #fff 52%, #fef2f2);
}

.page-hero h1,
.detail-card h1 {
  margin: 0 0 16px;
  color: var(--red-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p,
.detail-card p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick-links a,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--red-800);
  font-weight: 800;
  background: var(--red-100);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto 34px;
  padding: clamp(22px, 4vw, 34px);
}

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

.section-title-row h2 {
  margin: 0 0 8px;
  color: var(--red-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  font-weight: 900;
}

.section-title-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--amber-700);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.11);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.2);
  transform: translateY(-5px);
}

.poster-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #d97706);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.92);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge,
.mini-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-800), var(--amber-600));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 52px;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--red-900);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--red-700);
}

.movie-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.movie-meta,
.movie-tags,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.movie-meta {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--red-700);
  font-weight: 800;
}

.movie-meta span:first-child {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--red-800);
  background: var(--red-100);
}

.movie-tags span,
.detail-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  background: #fef3c7;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 210px;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(135deg, #fff, #fff7ed);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(120, 53, 15, 0.16);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  color: var(--red-900);
  font-size: 25px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples span {
  display: block;
  overflow: hidden;
  color: var(--amber-700);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(120, 53, 15, 0.17);
}

.mini-card img {
  width: 128px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #d97706);
}

.mini-card h3 {
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--red-900);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mini-rank {
  top: 8px;
  right: 8px;
  min-width: 28px;
  height: 28px;
  font-size: 13px;
}

.page-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-filter input {
  width: min(100%, 420px);
}

.no-result {
  display: none;
  padding: 28px;
  border-radius: 16px;
  color: var(--red-800);
  font-weight: 800;
  background: var(--red-100);
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto 38px;
  padding: 0 22px;
}

.breadcrumb {
  margin: 24px 0;
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.player-shell {
  overflow: hidden;
  background: #111;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  color: #fff;
  background: #111;
  cursor: pointer;
}

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

.play-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

.play-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

.detail-card,
.info-card {
  padding: clamp(24px, 4vw, 34px);
}

.detail-card {
  margin-top: 22px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 50px);
}

.detail-meta {
  margin: 0 0 18px;
}

.detail-text h2,
.sidebar h2 {
  margin: 28px 0 12px;
  color: var(--red-900);
  font-size: 24px;
  font-weight: 900;
}

.detail-text p {
  margin: 0 0 18px;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sidebar {
  position: sticky;
  top: 94px;
}

.site-footer {
  margin-top: 48px;
  color: #fee2e2;
  background: linear-gradient(135deg, var(--red-900), #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 720px;
  color: #fecaca;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 26px 0;
}

.footer-links a {
  color: #fde68a;
  font-weight: 800;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(254, 202, 202, 0.28);
}

@media (max-width: 1120px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-slider {
    height: 76vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 38px 18px 64px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .mini-card img {
    width: 108px;
    height: 72px;
  }

  .play-cover span {
    width: 76px;
    height: 76px;
    font-size: 17px;
  }
}
