:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f59e0b;
  --brand-dark: #ea580c;
  --brand-soft: #fef3c7;
  --slate: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

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

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

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

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.hero-search,
.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}

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

.nav-search button,
.mobile-search button,
.hero-search button,
.search-panel button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #c2410c;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-panel button:hover,
.filter-bar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(154, 52, 18, 0.18);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.mobile-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  display: none;
  min-height: 680px;
  position: relative;
  align-items: center;
  gap: 48px;
  padding: 110px max(24px, calc((100vw - 1280px) / 2 + 24px)) 96px;
  color: #ffffff;
}

.hero-slide.is-active {
  display: flex;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.38));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #f59e0b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

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

.hero-content p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  flex: 0 0 330px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.1);
}

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

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

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 28px;
  background: #fbbf24;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 95px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 48px));
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-search input {
  flex: 1;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-heading.tight {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.rank-panel h2,
.detail-copy h1,
.detail-content h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

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

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

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

.movie-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(251, 146, 60, 0.1);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  opacity: 0.75;
}

.movie-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
}

.movie-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 46px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: scale(1);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  min-height: 44px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.section-band {
  background: linear-gradient(90deg, #fff7ed, #fffbeb, #fff7ed);
  border-block: 1px solid rgba(251, 146, 60, 0.16);
}

.inner-band {
  padding-top: 64px;
  padding-bottom: 64px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.horizontal-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #fed7aa;
}

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

.horizontal-info a {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.horizontal-info p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.72;
}

.horizontal-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.horizontal-info span {
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #fff7ed;
  padding: 6px 9px;
}

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

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

.category-tile,
.rank-panel,
.category-overview-block {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.12);
}

.category-tile {
  padding: 22px;
}

.category-tile span {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p,
.category-desc {
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  color: #ea580c;
  background: #fff7ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.rank-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.rank-panel h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(251, 146, 60, 0.14);
}

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

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.rank-heat {
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
}

.page-main {
  min-height: 68vh;
}

.page-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 54px 24px;
  border-radius: 0 0 34px 34px;
}

.page-hero > div:first-child {
  max-width: 860px;
}

.small-hero,
.category-hero,
.search-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 36%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.page-hero p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.9;
  font-size: 17px;
}

.category-hero,
.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 28px;
  align-items: end;
}

.filter-bar,
.search-panel {
  padding: 14px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  flex: 1;
  background: #fff7ed;
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-overview-block {
  padding: 28px;
}

.ranking-featured {
  padding-bottom: 20px;
}

.rank-list-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.detail-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fed7aa;
}

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

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

.detail-one-line {
  margin: 18px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.detail-copy .hero-tags span {
  color: #c2410c;
  background: #fff7ed;
  box-shadow: none;
}

.player-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 42px;
  padding-left: 6px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.42);
}

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

.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  display: none;
}

.player-error.is-visible {
  display: block;
}

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

.detail-content article {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.12);
}

.detail-content h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.detail-content p {
  color: #334155;
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #ffffff;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 950;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.85;
}

.site-footer h2 {
  color: #fbbf24;
  font-size: 18px;
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.is-filter-hidden {
  display: none;
}

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

  .nav-search {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .hero-slide {
    gap: 32px;
  }

  .hero-poster {
    flex-basis: 260px;
  }

  .split-section,
  .category-hero,
  .search-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }

  .nav-search {
    display: none;
  }

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

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

  .hero-slide {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    padding-top: 88px;
    padding-bottom: 150px;
  }

  .hero-poster {
    width: 190px;
    flex: 0 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

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

  .hero-search {
    bottom: 86px;
    border-radius: 24px;
    flex-direction: column;
  }

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

  .grid-xl,
  .grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section-wrap {
    padding: 48px 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .horizontal-card,
  .detail-hero,
  .detail-content,
  .rank-list-wide {
    grid-template-columns: 1fr;
  }

  .horizontal-cover {
    aspect-ratio: 16 / 9;
  }

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

  .filter-bar,
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-poster {
    max-width: 220px;
  }

  .player-start span {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .mobile-nav nav {
    grid-template-columns: 1fr;
  }

  .grid-xl,
  .grid-six {
    grid-template-columns: 1fr 1fr;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    font-size: 14px;
    min-height: 38px;
  }

  .movie-info p {
    display: none;
  }

  .page-hero {
    margin-top: 0;
    padding: 42px 18px;
  }
}
