:root {
  --bg: #120a04;
  --bg-soft: #1d1108;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-strong: rgba(255, 255, 255, 0.14);
  --text: #fff7ed;
  --muted: #f5d0a5;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 32rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 30rem),
    linear-gradient(135deg, #120a04 0%, #211005 45%, #080504 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 10, 4, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #facc15, #f97316 55%, #e11d48);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.32);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.header-search,
.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.quick-search input,
.inline-filter-form input {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input:focus,
.quick-search input:focus,
.inline-filter-form input:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.quick-search button,
.primary-button,
.ghost-button,
.text-link {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #1f1004;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.quick-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer a {
  display: block;
  padding: 12px;
  color: var(--muted);
}

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

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  margin: 28px 0 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #170c05;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.18);
  transform: scale(1.08);
  opacity: 0.48;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 10, 4, 0.98) 0%, rgba(18, 10, 4, 0.82) 42%, rgba(18, 10, 4, 0.32) 100%),
    linear-gradient(0deg, rgba(18, 10, 4, 0.88) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 72px;
}

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

.eyebrow,
.hero-kicker {
  margin: 0 0 12px;
  color: #facc15;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  margin: 24px 0 0;
  max-width: 720px;
  color: #fdebd0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 72px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.24);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, #facc15, #f97316);
}

.quick-search-panel,
.page-hero,
.detail-hero,
.category-overview-card,
.detail-content-layout {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
  padding: 30px;
}

.quick-search-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
}

.quick-search input {
  width: min(420px, 52vw);
}

.content-section {
  margin: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.section-heading a {
  color: #facc15;
  font-weight: 800;
}

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

.category-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 55%),
    rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
}

.category-card span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.category-card small {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #facc15;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1f1004;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  min-width: 34px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card h3 a:hover {
  color: #facc15;
}

.movie-meta {
  margin: 8px 0;
  color: #fcd9aa;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 247, 237, 0.72);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
}

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

.movie-card.compact .movie-desc,
.movie-card.compact .tag-row {
  display: none;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin: 34px 0;
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 32rem),
    rgba(255, 255, 255, 0.08);
}

.compact-hero,
.ranking-hero,
.search-hero,
.category-hero {
  min-height: 280px;
}

.inline-filter-form input {
  width: min(460px, 80vw);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff7ed;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #1f1004;
  border-color: transparent;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.category-overview-list {
  display: grid;
  gap: 24px;
  margin: 36px 0 60px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
}

.category-overview-copy h2 {
  margin: 0;
  font-size: 34px;
}

.category-overview-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #facc15;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  padding: clamp(24px, 5vw, 48px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.detail-meta-grid span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.player-section {
  margin: 32px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.72));
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1f1004;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-size: 38px;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.32);
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-cover em {
  color: #fdebd0;
  font-style: normal;
}

.detail-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  margin: 32px 0 60px;
  padding: clamp(24px, 4vw, 42px);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #fdebd0;
  font-size: 16px;
  line-height: 2;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 32px 0;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 14px;
}

.footer-inner a:hover {
  color: #facc15;
}

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

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

@media (max-width: 960px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .quick-search-panel,
  .page-hero,
  .detail-hero,
  .detail-content-layout,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 280px;
  }

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

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

@media (max-width: 720px) {
  main,
  .header-inner,
  .mobile-drawer,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .hero-carousel {
    border-radius: 24px;
  }

  .hero-content {
    padding: 34px 24px 84px;
  }

  .hero-controls {
    left: 24px;
    bottom: 28px;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .category-sample-grid,
  .side-recommend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .quick-search,
  .quick-search input,
  .quick-search button {
    width: 100%;
  }

  .quick-search {
    flex-direction: column;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-desc {
    display: none;
  }
}

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