:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.92);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #3b82f6;
  --shadow: 0 24px 70px rgba(249, 115, 22, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 146, 60, 0.22), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(236, 72, 153, 0.16), transparent 24rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f472b6);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
  font-size: 14px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: rgba(255, 237, 213, 0.86);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 11px 16px;
  min-width: 220px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

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

.container-narrow {
  width: min(920px, calc(100% - 32px));
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-head h2,
.page-hero h1,
.detail-intro h1,
.article-content h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

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

.section-head p,
.page-hero p,
.detail-line {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.9);
  font-weight: 900;
  font-size: 14px;
}

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

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

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 62%);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px;
  color: #fff;
}

.hero-content h1,
.hero-content h2 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.rank-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

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

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
}

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

.ghost-btn.small {
  color: #ea580c;
  border-color: rgba(251, 146, 60, 0.32);
  background: rgba(255, 237, 213, 0.75);
  padding: 10px 16px;
}

.hero-poster {
  position: absolute;
  z-index: 2;
  right: 72px;
  top: 50%;
  width: min(330px, 28vw);
  aspect-ratio: 3 / 4.2;
  transform: translateY(-50%) rotate(2deg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 72px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.category-strip {
  padding-bottom: 24px;
}

.chip-grid,
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-grid a,
.sub-nav a {
  border-radius: 999px;
  padding: 12px 16px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 146, 60, 0.2);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

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

.movie-card,
.category-card,
.rank-row {
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.09);
  transition: 0.22s ease;
}

.movie-card {
  overflow: hidden;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(236, 72, 153, 0.12));
}

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

.movie-card:hover .poster-link img,
.rank-mini-card:hover img,
.category-samples a:hover {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.92));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta a {
  color: #ea580c;
}

.movie-card h3 {
  min-height: 54px;
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.category-samples a:hover {
  color: var(--orange);
}

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

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

.tag-row span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #be123c;
  background: rgba(255, 228, 230, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  font-size: 14px;
  padding: 8px 12px;
}

.rank-panel {
  padding-top: 32px;
}

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

.rank-mini-card {
  position: relative;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background: #111827;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.rank-mini-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.35s ease;
}

.rank-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 64%);
}

.rank-mini-card span,
.rank-mini-card strong,
.rank-mini-card em {
  position: absolute;
  z-index: 2;
  left: 16px;
}

.rank-mini-card span {
  top: 14px;
  font-weight: 900;
  font-size: 24px;
}

.rank-mini-card strong {
  right: 16px;
  bottom: 42px;
  line-height: 1.4;
}

.rank-mini-card em {
  right: 16px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88)),
    radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.14), transparent 22rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 16px 0;
}

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

.category-card {
  padding: 24px;
}

.category-card-main {
  display: block;
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.category-card h2 {
  margin: 16px 0 10px;
  font-size: 24px;
}

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

.category-samples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

.category-samples a {
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 78px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-number {
  font-size: 28px;
  font-weight: 900;
  color: #fb923c;
}

.rank-cover {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(251, 146, 60, 0.12);
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.rank-meta span {
  color: #9a3412;
  background: rgba(255, 237, 213, 0.86);
  border-color: rgba(251, 146, 60, 0.2);
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-panel input {
  min-width: min(520px, 100%);
}

.search-panel select {
  min-width: 190px;
}

.detail-page {
  padding-top: 28px;
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.82)),
    radial-gradient(circle at 92% 12%, rgba(251, 146, 60, 0.28), transparent 24rem);
  color: #fff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.24);
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-intro h1 {
  font-size: clamp(34px, 5vw, 64px);
  margin: 18px 0;
}

.detail-line {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.player-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.22);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 18rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 22px 42px rgba(236, 72, 153, 0.32);
  font-size: 30px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 20px;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.article-content {
  border-radius: 30px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.article-content h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

.article-content h2:not(:first-child) {
  margin-top: 28px;
}

.article-content p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 64px;
  padding: 52px 0 28px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

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

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero-poster {
    opacity: 0.42;
    right: 36px;
  }

  .hero-content {
    width: 76%;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search input {
    min-width: 0;
    width: 100%;
  }

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    width: 100%;
    padding: 44px 28px 84px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    left: 28px;
  }

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

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

  .rank-row {
    grid-template-columns: 52px 80px 1fr;
  }

  .rank-row .ghost-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

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

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

  .movie-card p {
    min-height: auto;
    font-size: 13px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-slider {
    border-radius: 24px;
  }

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

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

  .page-hero,
  .detail-hero,
  .article-content {
    border-radius: 24px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    width: 100%;
    max-width: 180px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
