:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --bg-deep: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.18);
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #7c3aed;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 80px rgba(88, 28, 135, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 36rem),
    radial-gradient(circle at 86% 14%, rgba(236, 72, 153, 0.16), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 46%, #faf5ff 100%);
}

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

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

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

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.38);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(135deg, #111827, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-links a:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
}

.hero-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 30px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 74px);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  color: #ffffff;
}

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

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.28s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.32);
}

.primary-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.3);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.ghost-button.dark {
  color: #374151;
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(255, 255, 255, 0.76);
}

.hero-dots {
  position: absolute;
  left: 68px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.hero-rank {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-rank h2,
.section-head h2,
.search-panel h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.rank-links {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.rank-links a,
.next-categories a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  transition: 0.25s ease;
}

.rank-links a:hover,
.next-categories a:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
}

.rank-links span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.rank-links strong,
.next-categories strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-links em,
.next-categories span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.category-strip,
.content-section,
.search-panel,
.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

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

.category-tile,
.category-card-large,
.search-panel,
.text-panel,
.detail-meta-grid div {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(88, 28, 135, 0.1);
  backdrop-filter: blur(20px);
}

.category-tile {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile-index {
  color: var(--pink);
  font-weight: 900;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.search-panel {
  margin-bottom: 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: center;
  border-radius: 30px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

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

.content-section {
  margin-bottom: 58px;
}

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

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

.section-more,
.text-link {
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(88, 28, 135, 0.09);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 68px rgba(88, 28, 135, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(236, 72, 153, 0.16));
}

.poster img,
.rank-thumb img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.36);
}

.movie-info {
  padding: 16px;
}

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

.meta-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
}

.movie-info h3 {
  min-height: 52px;
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.42;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  padding: 5px 9px;
  color: #9a3412;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.highlight-band {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.9));
  box-shadow: var(--shadow);
}

.light-head h2,
.light-head p {
  color: #ffffff;
}

.light-more {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 58px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: clamp(36px, 6vw, 70px);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 242, 0.72));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
}

.category-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(249, 115, 22, 0.12);
}

.category-card-large h2 {
  margin: 0 0 10px;
}

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

.flush-section {
  width: 100%;
}

.next-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.ranking-list {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 60px;
  display: grid;
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: 60px 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(88, 28, 135, 0.08);
  transition: 0.25s ease;
}

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

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

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.1);
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-page {
  padding-bottom: 60px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.9;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  width: min(1120px, calc(100% - 32px));
  margin: -80px auto 36px;
  position: relative;
  z-index: 4;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.38);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.42);
  font-size: 34px;
}

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

.narrow-shell {
  max-width: 980px;
}

.text-panel {
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 26px;
}

.text-panel p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

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

.detail-meta-grid div {
  padding: 18px;
  border-radius: 20px;
}

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

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 7px;
  font-weight: 900;
}

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

.prev-next a {
  padding: 16px 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: #374151;
  font-weight: 800;
}

.prev-next a:hover {
  color: var(--orange);
}

.site-footer {
  border-top: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 255, 255, 0.64);
}

.footer-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: #4b5563;
}

.footer-shell strong {
  color: #111827;
  font-size: 20px;
}

.footer-shell p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
}

.footer-links a:hover {
  color: var(--orange);
}

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

@media (max-width: 1080px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-rank {
    display: none;
  }

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

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

  .detail-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .nav-links {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

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

  .hero-slider {
    min-height: 540px;
  }

  .hero-slide {
    align-items: end;
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

  .category-strip,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .next-categories,
  .detail-meta-grid,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .filter-bar,
  .category-card-large,
  .rank-card,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
    padding: 34px 0 110px;
  }

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

  .player-section {
    margin-top: -82px;
  }

  .section-head,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 17px;
  }

  .hero-wrap,
  .category-strip,
  .content-section,
  .search-panel,
  .page-shell,
  .ranking-list,
  .player-section,
  .footer-shell {
    width: min(100% - 22px, 1220px);
  }

  .page-hero,
  .highlight-band,
  .search-panel {
    border-radius: 24px;
    padding: 22px;
  }

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