:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #e11d48;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --paper: #fff7ed;
  --card: rgba(255, 255, 255, 0.92);
  --muted: #64748b;
  --text: #111827;
  --ring: rgba(249, 115, 22, 0.28);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 28rem),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 42%, #fff1f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 35px rgba(225, 29, 72, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

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

.nav-search input,
.search-band input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.nav-search input {
  width: 210px;
}

.nav-search button,
.search-band button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.34), transparent 24rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.68) 46%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: clamp(24px, 8vw, 118px);
  padding: 88px 24px;
  color: #ffffff;
}

.hero-kicker,
.page-hero > p,
.section-heading p {
  margin: 0 0 10px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
}

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

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

.hero-tags span,
.tag-row span,
.tag-row a {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(249, 115, 22, 0.12);
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.primary-btn {
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ghost-btn.light {
  background: rgba(255, 255, 255, 0.9);
  color: #9f1239;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 8vw, 118px);
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 48px;
  background: #ffffff;
}

.search-band,
.section-wrap,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px;
}

.search-band {
  margin-top: -48px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-meta-card h1,
.detail-content h2 {
  margin: 0;
  color: #111827;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-band form {
  min-width: min(440px, 100%);
  display: flex;
  gap: 10px;
}

.search-band input {
  flex: 1;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.16);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.section-heading a,
.text-link {
  color: #ea580c;
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-panel,
.filter-panel,
.detail-meta-card,
.detail-content article {
  background: var(--card);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-card {
  position: relative;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
  z-index: 1;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

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

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

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

.feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

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

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

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

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

.card-body h2,
.card-body h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 50px;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-panel {
  padding: 22px;
}

.compact-heading {
  margin-bottom: 14px;
}

.compact-heading h2 {
  font-size: 26px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "no title" "no meta";
  gap: 2px 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.8);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
  background: #ffedd5;
  transform: translateX(2px);
}

.rank-no {
  grid-area: no;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
}

.rank-title {
  grid-area: title;
  font-weight: 900;
}

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

.page-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #0f172a 0%, #9f1239 46%, #f97316 100%);
}

.page-hero h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 68px);
}

.intro-text {
  max-width: 780px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.center-actions {
  justify-content: center;
}

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

.category-overview-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.category-cover-row img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--muted);
}

.filter-panel {
  margin-bottom: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.filter-search input {
  width: 100%;
  box-shadow: 0 0 0 1px var(--ring);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-panel select {
  min-width: 140px;
  box-shadow: 0 0 0 1px var(--ring);
}

.category-page-layout,
.ranking-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.side-panel,
.sticky-panel {
  position: sticky;
  top: 92px;
}

.detail-wrap {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #9a3412;
  font-weight: 800;
}

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.3), rgba(15, 23, 42, 0.64)),
    rgba(15, 23, 42, 0.4);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 20px 60px rgba(225, 29, 72, 0.32);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-side {
  display: grid;
  gap: 16px;
}

.detail-side > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-meta-card {
  padding: 22px;
}

.detail-meta-card h1 {
  font-size: clamp(28px, 3vw, 42px);
}

.detail-meta-card p {
  color: var(--muted);
}

.meta-table {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.meta-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.13);
}

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

.meta-table strong {
  color: #9a3412;
}

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  margin-top: 24px;
  font-size: 28px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  color: #334155;
  font-size: 17px;
}

.hidden {
  display: none !important;
}

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

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

  .split-layout,
  .category-page-layout,
  .ranking-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .sticky-panel {
    position: static;
  }

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 6px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-content {
    margin-left: 0;
    padding: 72px 22px 92px;
  }

  .hero-dots {
    left: 22px;
  }

  .search-band,
  .section-heading,
  .filter-panel {
    display: grid;
  }

  .search-band form {
    min-width: 0;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .filter-panel select {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .hero-slider {
    min-height: 76vh;
  }

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

  .search-band,
  .section-wrap,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-band form {
    display: grid;
  }

  .page-hero {
    min-height: 280px;
  }

  .video-frame {
    border-radius: 20px;
  }
}
