:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --primary: #f97316;
  --secondary: #ec4899;
  --accent: #8b5cf6;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(249, 115, 22, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.20), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff7ed 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.13);
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.logo-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
  font-size: 15px;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--primary);
}

.nav-search-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(255, 247, 237, 0.8);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: #374151;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 16px 0 22px;
  font-weight: 800;
}

.main-offset {
  padding-top: 76px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 52%, #8b5cf6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.24) 0 8px, transparent 9px),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.18) 0 12px, transparent 13px),
    radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.18) 0 10px, transparent 11px);
  opacity: 0.75;
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 76px);
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.82), rgba(30, 41, 59, 0.34) 54%, rgba(30, 41, 59, 0.12));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.72;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 42px;
  padding: 74px 0 96px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 9px 15px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero-subtitle {
  display: block;
  margin-top: 16px;
  color: #ffedd5;
  font-size: clamp(26px, 4vw, 44px);
}

.hero-copy {
  max-width: 740px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(255, 255, 255, 0.26);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
}

.hero-poster {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.28);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster-card {
  position: absolute;
  left: -22px;
  bottom: 26px;
  max-width: 280px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  box-shadow: 0 22px 50px rgba(30, 41, 59, 0.22);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(255, 250, 245, 0.84);
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.page-hero {
  padding: 82px 0 58px;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.22), transparent 26rem),
    linear-gradient(135deg, #fff7ed, #ffffff 52%, #fdf2f8);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary);
}

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

.category-card {
  min-height: 188px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(236, 72, 153, 0.16);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 23px;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 14px;
  margin: 0 0 26px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 16px 44px rgba(249, 115, 22, 0.1);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  outline: none;
  padding: 0 15px;
  background: #ffffff;
  color: #374151;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 74px rgba(236, 72, 153, 0.18);
}

.card-link {
  display: grid;
  height: 100%;
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.26);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  display: -webkit-box;
  min-height: 66px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(254, 215, 170, 0.82);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(249, 115, 22, 0.1);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.rank-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  padding: 64px 0 46px;
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.20), transparent 28rem),
    linear-gradient(135deg, #111827, #7c2d12 48%, #831843);
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

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

.detail-title {
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.detail-copy {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
}

.player-section {
  padding: 54px 0 22px;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.38);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.42);
  font-size: 36px;
  padding-left: 4px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.article-card,
.side-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: var(--shadow);
}

.article-card h2,
.side-card h2,
.side-card h3 {
  margin-top: 0;
  color: #111827;
}

.article-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-link {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.related-link img {
  width: 66px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.related-link strong {
  display: block;
  margin-bottom: 5px;
}

.related-link span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.8);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 0;
  color: #fff7ed;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 247, 237, 0.76);
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.65);
  font-size: 14px;
}

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

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

  .content-layout {
    grid-template-columns: 1fr;
  }
}

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

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

  .mobile-panel.is-open {
    display: block;
  }

  .nav-wrap {
    height: 68px;
  }

  .main-offset {
    padding-top: 68px;
  }

  .hero,
  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 0 86px;
  }

  .hero-poster {
    max-width: 340px;
  }

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

  .detail-cover {
    max-width: 320px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 56px 72px 1fr;
  }

  .rank-action {
    grid-column: 3;
  }

  .rank-cover {
    width: 72px;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: grid;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    min-height: 58px;
    font-size: 13px;
  }

  .hero-poster-card {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

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

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-cover {
    display: none;
  }

  .rank-action {
    grid-column: 2;
  }
}
