:root {
  --page: #fff7ed;
  --panel: #ffffff;
  --ink: #20202a;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.18);
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --rose: #fb7185;
  --shadow: 0 22px 60px rgba(244, 114, 182, 0.18);
  --soft-shadow: 0 12px 28px rgba(249, 115, 22, 0.13);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 36rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(253, 242, 248, 0.95), rgba(254, 252, 232, 0.95));
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 14px 38px rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.footer-brand strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ea580c, #db2777, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #55525c;
  font-weight: 700;
  transition: all 0.24s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #ea580c;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
}

.search-form input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 8px 10px 14px;
  color: #33323b;
  background: transparent;
}

.search-form button,
.btn,
.filter-btn {
  border: 0;
  cursor: pointer;
}

.search-form button {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.menu-toggle {
  display: none;
  border: 0;
  background: #ffffff;
  color: #3f3a46;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  box-shadow: var(--soft-shadow);
}

.hero-shell {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 58%, #fefce8);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(4px) saturate(1.2);
}

.hero-backdrop::after,
.detail-bg::after,
.category-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(255, 247, 237, 0.72), rgba(253, 242, 248, 0.88)),
    radial-gradient(circle at 78% 26%, rgba(236, 72, 153, 0.28), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 92px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #c2410c;
  font-size: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.25);
  box-shadow: var(--soft-shadow);
}

.hero-copy h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #1f1724;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  background: linear-gradient(90deg, #9a3412, #db2777 52%, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 24px 0 0;
  color: #554e59;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.26s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.27);
}

.btn-ghost {
  color: #c2410c;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 146, 60, 0.32);
}

.btn:hover,
.filter-btn:hover,
.category-card:hover,
.movie-card:hover,
.spotlight-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  height: min(520px, 72vw);
  min-height: 360px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(190, 24, 93, 0.28);
  transform: rotate(2.5deg);
  border: 10px solid rgba(255, 255, 255, 0.74);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.32));
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -54px;
  position: relative;
  z-index: 8;
}

.spotlight-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #1f1724;
  transition: all 0.26s ease;
}

.spotlight-card img {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: transform 0.45s ease;
}

.spotlight-card:hover img,
.category-card:hover img,
.movie-card:hover img {
  transform: scale(1.07);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.spotlight-card span,
.spotlight-card strong {
  position: relative;
  z-index: 2;
  display: block;
}

.spotlight-card span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
}

.spotlight-card strong {
  margin-top: 94px;
  font-size: 21px;
  line-height: 1.25;
}

.feature-section,
.categories-strip,
.rank-preview,
.library-section,
.related-section,
.detail-content,
.categories-page-grid {
  padding: 72px 0;
}

.hot-band {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.85), rgba(255, 237, 213, 0.85), rgba(254, 249, 195, 0.6));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--soft-shadow);
}

.section-heading h2 {
  margin: 0;
  color: #2a2431;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

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

.movie-grid-wide,
.rank-list,
.full-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(251, 146, 60, 0.14);
  transition: all 0.25s ease;
}

.poster-link {
  display: block;
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.35), transparent 62%);
  transform: translateX(-115%);
  transition: transform 0.7s ease;
}

.movie-card:hover .poster-shine {
  transform: translateX(115%);
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.35);
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span,
.detail-meta span {
  padding: 5px 9px;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 900;
  background: #ffedd5;
}

.movie-card h3 {
  margin: 0;
  color: #282230;
  font-size: 20px;
  line-height: 1.35;
}

.all-movie-grid .movie-card h3 {
  font-size: 17px;
}

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

.movie-card p {
  min-height: 68px;
  margin: 10px 0 14px;
  color: #625b68;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 214px;
}

.movie-card-wide .poster-link {
  height: 100%;
}

.movie-card-wide p {
  min-height: 58px;
  -webkit-line-clamp: 2;
}

.category-card-grid,
.categories-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-card,
.category-overview-card,
.content-card,
.detail-info-card,
.player-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: var(--soft-shadow);
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  transition: all 0.25s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78));
}

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

.category-card span {
  display: block;
  margin-top: 86px;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 9px 0 0;
  color: #ffe4e6;
  line-height: 1.7;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  color: #57515f;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.2);
  transition: all 0.24s ease;
}

.filter-btn.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: var(--soft-shadow);
}

.no-result {
  padding: 26px;
  text-align: center;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 20px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffedd5, #fdf2f8 55%, #fef9c3);
}

.compact-hero .container,
.category-hero .container {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  background: linear-gradient(90deg, #9a3412, #db2777, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #5f5865;
  font-size: 19px;
  line-height: 1.8;
}

.category-hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(3px) saturate(1.15);
}

.category-overview-card {
  overflow: hidden;
}

.category-thumb-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  background: #fed7aa;
}

.category-overview-card div {
  padding: 22px;
}

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

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

.text-link {
  color: #db2777;
  font-weight: 900;
}

.detail-shell {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
  gap: 28px;
}

.player-card {
  padding: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.28);
}

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

.play-layer {
  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.46));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #f97316;
  font-size: 36px;
  line-height: 1;
  padding-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.play-layer:hover span {
  transform: scale(1.1);
}

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

.detail-info-card {
  padding: 26px;
  align-self: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 800;
}

.detail-info-card h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
}

.one-line {
  color: #5b5361;
  font-size: 17px;
  line-height: 1.85;
}

.detail-tags {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 22px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p,
.content-card dd {
  color: #5e5865;
  line-height: 1.85;
}

.meta-card dl {
  margin: 0;
}

.meta-card div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(251, 146, 60, 0.15);
}

.meta-card dt {
  color: #9a3412;
  font-weight: 900;
}

.meta-card dd {
  margin: 4px 0 0;
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(90deg, #ffedd5, #fdf2f8, #fef9c3);
  border-top: 4px solid rgba(251, 146, 60, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 52px 0 34px;
}

.site-footer p {
  max-width: 430px;
  color: #6b5966;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 10px 0;
  color: #6b5966;
  font-weight: 700;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #7c2d12;
  font-weight: 800;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
}

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

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .main-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
  }

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

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

  .search-form input {
    width: min(34vw, 190px);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding-top: 42px;
  }

  .hero-poster {
    min-height: 320px;
    transform: none;
  }

  .spotlight-grid,
  .category-card-grid,
  .categories-page-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-grid-wide,
  .rank-list,
  .full-rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-text em {
    display: none;
  }

  .search-form {
    width: 100%;
    order: 3;
  }

  .search-form input {
    width: 100%;
  }

  .hero-shell,
  .hero-content {
    min-height: 590px;
  }

  .spotlight-grid,
  .movie-grid,
  .all-movie-grid,
  .category-card-grid,
  .categories-page-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 178px;
  }

  .movie-card-wide .movie-card-body {
    padding: 14px;
  }

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

  .movie-card-wide p {
    display: none;
  }

  .poster-link {
    height: 250px;
  }

  .feature-section,
  .categories-strip,
  .rank-preview,
  .library-section,
  .related-section,
  .detail-content,
  .categories-page-grid {
    padding: 46px 0;
  }

  .detail-shell {
    padding: 24px 0;
  }
}
