:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --deep: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.32);
}

.brand-text strong,
.footer-logo {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

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

.main-nav a {
  padding: 10px 16px;
  border-radius: 13px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.26);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-search input,
.hero-search input,
.filter-row input,
.filter-row select {
  height: 42px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 14px;
  background: #fff;
  color: #111827;
  padding: 0 14px;
  outline: none;
  transition: 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.hero-search button,
.btn,
.menu-toggle {
  height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #fef3c7, #ffedd5, #fef3c7);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.76),
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0.08)
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-badge,
.page-hero span,
.section-title span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.hero-content h1,
.hero-content h2 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-control.prev {
  left: 28px;
}

.hero-control.next {
  right: 28px;
}

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

.hero-dots button {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  width: 48px;
  background: #fff;
}

.section-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.intro-strip,
.soft-panel,
.feature-panel,
.filter-panel,
.content-card,
.side-card,
.player-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.16);
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -54px;
  position: relative;
  z-index: 3;
}

.intro-strip h2,
.section-title h2,
.page-hero h1,
.detail-hero h1,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.intro-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.section-title span {
  padding: 6px 11px;
  font-size: 12px;
}

.section-title h2 {
  margin-top: 10px;
  font-size: 34px;
}

.section-title > a,
.side-more {
  color: #d97706;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(17, 24, 39, 0.06);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

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

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta a {
  color: #d97706;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.tag-row,
.detail-tags,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags a,
.quick-links a {
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  font-size: 12px;
  background: #ffedd5;
}

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

.category-box,
.category-overview-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-box:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

.category-box span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.category-box strong,
.category-overview-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 22px;
}

.category-box em,
.category-overview-card span {
  display: block;
  color: #6b7280;
  font-style: normal;
  line-height: 1.65;
}

.category-overview-card em {
  display: inline-block;
  margin-top: 16px;
  color: #d97706;
  font-style: normal;
  font-weight: 900;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 28px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-cover {
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
}

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

.ranking-row h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.ranking-row p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.feature-panel {
  padding: 30px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.feature-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.feature-panel p {
  color: #6b7280;
  line-height: 1.7;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.page-hero {
  padding: 86px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
}

.page-hero > div {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero span {
  margin: 0 auto 18px;
  color: #92400e;
  background: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.7;
}

.category-previews {
  display: grid;
  gap: 46px;
}

.category-preview {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-panel {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-row.multi {
  grid-template-columns: 1fr 180px 160px 180px;
}

.detail-hero {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 70px);
}

.detail-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card,
.content-card,
.side-card {
  padding: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-overlay,
.player-overlay img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  transition: 0.25s ease;
}

.player-overlay img {
  object-fit: cover;
  opacity: 0.62;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 36px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}

.detail-info-grid div {
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-info-grid strong,
.detail-info-grid span {
  display: block;
}

.detail-info-grid strong {
  margin-bottom: 6px;
  color: #92400e;
}

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

.side-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 88px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong,
.side-link em {
  display: block;
}

.side-link strong {
  margin-bottom: 5px;
  color: #111827;
  line-height: 1.35;
}

.side-link em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.side-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.site-footer {
  margin-top: 50px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.7;
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-overview-grid,
  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .detail-side {
    position: static;
  }

  .filter-row,
  .filter-row.multi {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-slider {
    height: 560px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-content p,
  .detail-hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .section-block {
    padding: 34px 16px;
  }

  .intro-strip,
  .footer-inner,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-overview-grid,
  .two-column-section,
  .detail-layout,
  .filter-row,
  .filter-row.multi,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 86px 1fr;
    gap: 10px;
  }

  .rank-cover {
    height: 58px;
  }

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

  .content-card {
    padding: 22px;
  }
}
