:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --orange: #f97316;
  --gold: #f59e0b;
  --line: rgba(127, 29, 29, 0.12);
  --shadow: 0 22px 70px rgba(127, 29, 29, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 36rem),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(127, 29, 29, 0.08);
}

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

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

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

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: #fee2e2;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  cursor: pointer;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 6px;
  color: #374151;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  color: #fff;
  background: #180b0b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.05);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.34), transparent 24rem),
    linear-gradient(90deg, rgba(23, 8, 8, 0.96) 0%, rgba(55, 13, 13, 0.78) 44%, rgba(127, 29, 29, 0.44) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 42px;
  align-items: center;
  min-height: 590px;
  padding: 78px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 860px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tabs a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.hero-feature {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-feature-body {
  padding: 18px;
}

.hero-feature-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-feature-body p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #ffedd5;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 36px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-head p,
.page-title p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.search-panel input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  color: #111827;
  background: #fff;
}

.search-results {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-results.open {
  display: grid;
  gap: 10px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
}

.search-result-item:hover {
  background: #fff1e7;
}

.search-result-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.category-tile {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.9)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 12rem);
  box-shadow: 0 16px 45px rgba(127, 29, 29, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
}

.category-tile h3 {
  margin: 0 0 10px;
  color: #991b1b;
  font-size: 20px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(127, 29, 29, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(127, 29, 29, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(185, 28, 28, 0.88);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

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

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.meta-pill {
  border-radius: 999px;
  padding: 5px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 88px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(127, 29, 29, 0.08);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(127, 29, 29, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  font-weight: 900;
}

.rank-item img {
  width: 88px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 68px 0 38px;
}

.page-title {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.86)),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 24rem);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(127, 29, 29, 0.48));
  cursor: pointer;
}

.player-box.is-playing .play-layer {
  display: none;
}

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 22px 55px rgba(220, 38, 38, 0.38);
  font-size: 34px;
}

.detail-card,
.side-card {
  border: 1px solid rgba(127, 29, 29, 0.08);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 55px rgba(127, 29, 29, 0.11);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.prose p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 2;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 8px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #fff1e7;
}

.compact-card img {
  width: 64px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 50px;
  padding: 46px 0;
  color: #fef3c7;
  background: linear-gradient(135deg, #7f1d1d, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

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

.footer-links a {
  color: #fed7aa;
}

@media (max-width: 1024px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle {
    display: inline-grid;
  }

  .header-inner {
    min-height: 68px;
  }

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

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

  .hero-content {
    padding: 48px 0 70px;
  }

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

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .search-panel,
  .filter-bar,
  .footer-grid,
  .rank-item {
    grid-template-columns: 1fr;
  }

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

  .rank-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
