:root {
  --bg: #fff7ed;
  --bg-strong: #ffedd5;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #2f241d;
  --muted: #7c5f4c;
  --line: rgba(249, 115, 22, 0.18);
  --orange: #f97316;
  --orange-strong: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(124, 45, 18, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(251, 146, 60, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(245, 158, 11, 0.25), transparent 24rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(249, 115, 22, 0.16);
  background: rgba(255, 247, 237, 0.84);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  min-height: 74px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-logo__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.28);
}

.site-logo__text {
  font-size: 1.25rem;
}

.site-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--orange-strong);
  background: rgba(249, 115, 22, 0.12);
}

.header-search {
  position: relative;
  display: flex;
  overflow: visible;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px 12px 18px;
  color: var(--text);
  background: transparent;
}

.header-search button {
  border: 0;
  color: #fff;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-panel a {
  display: block;
  padding: 12px;
  border-radius: 14px;
}

.search-panel a:hover {
  background: #fff7ed;
}

.search-panel strong {
  display: block;
  margin-bottom: 4px;
}

.search-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--orange-strong);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-track,
.hero-slide,
.hero-slide__bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide__bg {
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.18);
  transform: scale(1.08);
}

.hero-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 247, 237, 0.82) 48%, rgba(255, 247, 237, 0.25) 100%),
    linear-gradient(0deg, #fff7ed 0%, transparent 35%);
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 64px;
  align-items: center;
  min-height: 640px;
  padding-top: 38px;
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
  display: inline-flex;
  padding: 6px 10px;
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.26);
}

.button--ghost {
  color: var(--orange-strong);
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: rgba(255, 255, 255, 0.68);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding-top: 574px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.2);
  cursor: pointer;
}

.hero-dot--active {
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: -34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.quick-search label {
  color: var(--orange-strong);
  font-weight: 900;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.2);
  outline: 0;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.quick-search input {
  min-height: 46px;
  padding: 0 16px;
}

.quick-stats {
  display: flex;
  gap: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.quick-stats strong {
  color: var(--orange-strong);
}

.section-block {
  padding: 72px 0 0;
}

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

.section-heading h2,
.rank-card h2,
.prose-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action,
.text-link,
.rank-card__head a {
  color: var(--orange-strong);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 45px rgba(124, 45, 18, 0.08);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(124, 45, 18, 0.16);
}

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.movie-card__poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

.movie-card__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card__content {
  padding: 16px;
}

.movie-card__meta,
.rank-row__meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card p {
  min-height: 3.3em;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.68));
  box-shadow: 0 18px 58px rgba(124, 45, 18, 0.1);
}

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

.category-card span {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-card strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--orange-strong);
}

.category-card p {
  max-width: 220px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card img {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 145px;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.72;
  transform: rotate(8deg);
}

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

.rank-card,
.prose-card,
.player-card,
.category-overview-card {
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.rank-card {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.rank-card__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mini-rank-list {
  display: grid;
  gap: 8px;
}

.mini-rank-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
}

.mini-rank-list span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.mini-rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-rank-list em {
  color: var(--orange-strong);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 8% 10%, rgba(249, 115, 22, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255, 237, 213, 0.86), rgba(255, 251, 235, 0.72));
}

.page-hero h1 {
  max-width: 900px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 40px rgba(124, 45, 18, 0.08);
}

.filter-bar--wide {
  grid-template-columns: minmax(0, 1fr) 180px 160px auto;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-bar span {
  color: var(--orange-strong);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 20px;
}

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

.category-overview-card__images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 1.6rem;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.15);
  transform: scale(1.08);
}

.detail-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.98), rgba(255, 247, 237, 0.82), rgba(255, 247, 237, 0.55)),
    linear-gradient(0deg, #fff7ed 0%, transparent 38%);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--orange-strong);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay__icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.35);
  position: relative;
}

.player-overlay__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

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

.prose-card {
  padding: 26px;
}

.prose-card p {
  color: var(--muted);
  line-height: 2;
  font-size: 1.02rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(124, 45, 18, 0.08);
}

.rank-row__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-row__poster img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.rank-row p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-row__score {
  text-align: right;
}

.rank-row__score strong {
  display: block;
  color: var(--orange-strong);
  font-size: 1.5rem;
}

.rank-row__score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid rgba(249, 115, 22, 0.16);
  background: rgba(255, 237, 213, 0.48);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links--wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 4;
    margin-bottom: 14px;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .hero-slide__inner,
  .detail-grid,
  .two-column-layout,
  .article-section {
    grid-template-columns: 1fr;
  }

  .hero-slide__inner {
    gap: 28px;
    padding-bottom: 90px;
  }

  .hero-poster {
    width: min(320px, 76vw);
    margin: 0 auto;
  }

  .hero-dots {
    padding-top: 590px;
  }

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

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

  .rank-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .hero-slide__inner {
    min-height: 760px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .hero-dots {
    padding-top: 710px;
  }

  .quick-search-panel,
  .quick-search,
  .filter-bar,
  .filter-bar--wide,
  .category-overview-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    flex-wrap: wrap;
    white-space: normal;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card__content {
    padding: 13px;
  }

  .movie-card p {
    min-height: auto;
  }

  .detail-poster {
    width: min(330px, 86vw);
  }

  .rank-row__score {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-hero__actions {
    display: grid;
  }
}
