:root {
  color-scheme: light;
  --bg-main: #fff7ed;
  --bg-soft: #fff1f2;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --primary: #f97316;
  --primary-deep: #ea580c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(249, 115, 22, 0.18);
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 46%, #fffbeb 100%);
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-deep);
  background: rgba(249, 115, 22, 0.10);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--primary-deep);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.10);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 620px;
  width: min(1320px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 36px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-image {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 42%, rgba(17, 24, 39, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 55%);
}

.hero-content {
  position: absolute;
  inset: auto auto 82px 64px;
  width: min(650px, calc(100% - 96px));
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 10px 0 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.hero h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

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

.hero-actions,
.hero-tags,
.category-pills,
.filter-buttons,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more,
.category-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #ffffff;
  border: 0;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.30);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.category-pill:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

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

.ghost-button.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.primary-button.full {
  width: 100%;
  margin-top: 16px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.10);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
}

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

.hero-controls {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-control,
.hero-dots button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-control {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 34px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.58;
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--primary), var(--pink));
  opacity: 1;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 58px auto;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 4px 0 0;
  font-weight: 1000;
  letter-spacing: -0.045em;
  color: #1f2937;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.section-more,
.category-pill,
.filter-button {
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary-deep);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
}

.category-pills {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

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

.compact-grid,
.filter-grid,
.large-library,
.ranking-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow: 0 18px 44px rgba(124, 45, 18, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: 0 28px 60px rgba(124, 45, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.40), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

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

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

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

.movie-meta-line {
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}

.movie-card h2 a:hover {
  color: var(--primary-deep);
}

.movie-card p {
  margin: 10px 0 12px;
  min-height: 48px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
}

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

.ranking-panel,
.seo-section,
.filter-panel,
.category-card,
.detail-content,
.player-card,
.side-info-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.90);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-list a:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.rank-list img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number {
  color: var(--primary);
  font-size: 20px;
  font-weight: 1000;
}

.rank-title,
.rank-meta {
  grid-column: 3;
  min-width: 0;
}

.rank-title {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-section {
  padding: 34px;
}

.seo-section h2 {
  margin: 0 0 14px;
  font-size: 32px;
}

.seo-section p {
  color: #4b5563;
  line-height: 1.9;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 280px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 24rem),
    linear-gradient(135deg, #ea580c, #db2777 58%, #92400e);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.slim-hero {
  min-height: 240px;
}

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

.category-card {
  overflow: hidden;
}

.category-card-main {
  display: block;
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 241, 242, 0.95));
}

.category-card-main h2 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.category-card-main p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.category-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  font-weight: 900;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.mini-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #fed7aa;
}

.mini-card img {
  height: 100%;
  object-fit: cover;
}

.mini-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 36px auto;
  padding: 24px;
}

.search-box {
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 18px;
  outline: none;
  padding: 0 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

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

.filter-button.active {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #ffffff;
}

.movie-card.is-hidden {
  display: none;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-weight: 700;
}

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

.player-card {
  padding: 16px;
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
}

.detail-content {
  margin-top: 24px;
  padding: 30px;
}

.detail-content h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.detail-content h2 {
  margin: 30px 0 10px;
  font-size: 26px;
}

.detail-content p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.lead-text {
  color: #374151 !important;
  font-size: 19px !important;
  font-weight: 700;
}

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

.detail-side {
  position: sticky;
  top: 96px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.side-info-card {
  margin-top: 18px;
  padding: 22px;
}

.side-info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.side-info-card p {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  color: #4b5563;
  line-height: 1.6;
}

.side-info-card strong {
  color: #111827;
  white-space: nowrap;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #e5e7eb;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 560px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #fed7aa;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid,
  .filter-grid,
  .large-library,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
  }
}

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

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

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

  .hero {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 96px;
    width: auto;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

  .section-heading,
  .page-hero {
    align-items: start;
    flex-direction: column;
  }

  .page-hero {
    padding: 32px;
  }

  .movie-grid,
  .compact-grid,
  .filter-grid,
  .large-library,
  .ranking-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 20px, 1240px);
    height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .content-section,
  .filter-panel,
  .page-hero,
  .detail-layout,
  .hero {
    width: calc(100% - 20px);
  }

  .hero {
    margin-top: 16px;
    min-height: 560px;
  }

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

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions a {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .filter-grid,
  .large-library,
  .ranking-grid,
  .category-overview-grid,
  .mini-card-row {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel,
  .detail-content,
  .seo-section {
    padding: 18px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
  }
}
