:root {
  --bg: #fffdf8;
  --paper: #ffffff;
  --muted: #f5f0e8;
  --text: #1e293b;
  --subtle: #64748b;
  --line: #e7dccb;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fff7ed;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 36%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 220, 203, 0.78);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  color: #475569;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #92400e;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(231, 220, 203, 0.68);
}

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

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

.mobile-cats a {
  padding: 8px 10px;
  color: #92400e;
  background: #fff7ed;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: #140f0a;
}

.hero-slider {
  position: relative;
  min-height: 720px;
}

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

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

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(8, 7, 4, 0.94) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  max-width: 1240px;
  min-height: 720px;
  margin: 0 auto;
  padding: 104px 20px 160px;
  color: #ffffff;
}

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

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 8vw, 86px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fed7aa;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(245, 158, 11, 0.12);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.26);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: linear-gradient(135deg, #1f2937, #92400e);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46);
}

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

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

.hero-poster span,
.score {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  min-width: 46px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #fbbf24;
}

.hero-strip {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: min(1040px, calc(100% - 40px));
  transform: translateX(-50%);
}

.hero-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
}

.hero-mini.active {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(146, 64, 14, 0.62);
}

.hero-mini img {
  width: 42px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #1f2937;
}

.hero-mini span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section,
.category-showcase,
.detail-wrap,
.search-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px 20px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #1e293b;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-head span,
.page-hero p,
.footer-inner p,
.movie-info p,
.detail-intro,
.detail-copy p {
  color: var(--subtle);
}

.section-more {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 220, 203, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a, #92400e);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 900;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}

.tag-row span {
  color: #7c2d12;
  background: #fff7ed;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  min-width: 38px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  font-size: 14px;
}

.page-hero {
  padding: 88px 20px 64px;
  background:
    radial-gradient(circle at 16% 0%, rgba(251, 191, 36, 0.24), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(231, 220, 203, 0.86);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 22px;
  color: var(--subtle);
  line-height: 1.7;
}

.category-card span {
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(231, 220, 203, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.search-box input,
.select-row select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: #334155;
  border: 1px solid #e7dccb;
  border-radius: 15px;
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.select-row select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.select-row {
  display: flex;
  gap: 10px;
}

.empty-state {
  display: none;
  padding: 38px;
  color: var(--subtle);
  text-align: center;
  border-radius: 22px;
  background: #fff7ed;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.08);
  transform: scale(1.06);
  opacity: 0.42;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.25), transparent 34%);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 20px 64px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  border-radius: 30px;
  background: linear-gradient(135deg, #1f2937, #92400e);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
  font-weight: 800;
}

.detail-title {
  color: #ffffff;
  font-size: clamp(34px, 6vw, 70px);
}

.detail-intro {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.detail-stats li {
  padding: 9px 12px;
  color: #fed7aa;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 800;
}

.player-card {
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(231, 220, 203, 0.86);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  background: #030712;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(3, 7, 18, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
  font-size: 38px;
  text-indent: 4px;
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #cbd5e1;
  background: #0f172a;
}

.player-meta b {
  color: #ffffff;
}

.player-status {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.copy-card {
  padding: 26px;
  border: 1px solid rgba(231, 220, 203, 0.86);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.copy-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.copy-card p {
  margin: 0;
  line-height: 1.86;
}

.site-footer {
  margin-top: 76px;
  padding: 40px 20px;
  border-top: 1px solid rgba(231, 220, 203, 0.86);
  background: #fffaf0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #92400e;
  font-weight: 900;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    width: min(320px, 100%);
  }

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

  .filter-panel,
  .detail-copy {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-link {
    display: block;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    padding: 82px 20px 148px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-poster {
    display: none;
  }

  .hero-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-mini {
    min-width: 154px;
  }

  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner,
  .player-meta,
  .select-row {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-hero-inner {
    padding-top: 58px;
  }

  .detail-cover {
    width: min(260px, 100%);
  }
}
