:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #111827;
  --muted: #64748b;
  --deep: #0f172a;
  --deep-2: #1e293b;
  --line: rgba(15, 23, 42, 0.12);
  --orange: #f97316;
  --red: #ef4444;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fffaf0 44%, #fffbeb 100%);
  min-height: 100vh;
}

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: 60;
  color: white;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero-slider {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  object-fit: cover;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(249, 115, 22, 0.28), transparent 26rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(15, 23, 42, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 75vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 980px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
}

.hero-content h1 {
  max-width: 940px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.26);
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: var(--deep);
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
}

.hero-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.13);
}

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

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

.hero-dots button.active {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.section-card,
.movie-card,
.rank-panel,
.category-overview-card,
.category-tile,
.search-band,
.prose-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-picks {
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 6;
  padding: 22px;
}

.content-section,
.split-section,
.search-band,
.page-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 0;
}

.page-shell,
.detail-shell {
  margin-top: 34px;
}

.no-margin {
  margin: 0;
  width: 100%;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

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

.section-heading.compact {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 460px);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.search-band h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.home-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: white;
  outline: none;
}

.filter-bar select {
  max-width: 170px;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.home-search button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  bottom: auto;
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #ea580c;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.category-tile,
.category-overview-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

.category-tile span,
.category-overview-card strong {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em,
.category-overview-card p,
.category-overview-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-overview-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
}

.category-overview-card em span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
}

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

.rank-panel {
  padding: 20px;
}

.sticky-panel {
  position: sticky;
  top: 88px;
}

.media-list {
  display: grid;
  gap: 12px;
}

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

.media-row {
  display: grid;
  grid-template-columns: auto 48px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.media-row:hover {
  background: #ffedd5;
  transform: translateY(-2px);
}

.media-row img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.media-row span {
  min-width: 0;
}

.media-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-row em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at right, rgba(249, 115, 22, 0.35), transparent 26rem),
    linear-gradient(135deg, #0f172a, #1e293b 55%, #111827);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.category-hero {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.9));
}

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

.filter-bar {
  padding: 20px;
  flex-wrap: wrap;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.pill-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.pill-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 32px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ea580c;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 24px;
  background: #0f172a;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.detail-info .lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

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

.meta-grid dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.tag-row.large span {
  min-height: 30px;
  padding: 0 12px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 50px rgba(239, 68, 68, 0.34);
  font-size: 34px;
  transform: translateX(3px);
}

.player-box.is-playing .player-cover {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 28px;
}

.prose-card {
  padding: 28px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.prose-card h2:not(:first-child) {
  margin-top: 26px;
}

.prose-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 74px;
  color: white;
  background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.28);
  cursor: pointer;
}

.back-top.show {
  display: block;
}

@media (max-width: 1060px) {
  .movie-grid,
  .movie-grid.small-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-content,
  .ranking-split {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .media-list.horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-content,
  .content-section,
  .split-section,
  .search-band,
  .page-shell,
  .detail-shell,
  .hero-picks {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    padding: 48px 0;
  }

  .hero-content h1 {
    font-size: 38px;
  }

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

  .hero-picks {
    margin-top: -34px;
    padding: 16px;
  }

  .search-band {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .home-search,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster img {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

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

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

  .media-list.horizontal {
    grid-template-columns: 1fr;
  }
}

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

  .hero-dots button {
    width: 24px;
  }
}
