:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --pink: #ec4899;
  --purple: #a855f7;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: #ffffff;
  --line: rgba(249, 115, 22, 0.16);
  --shadow: 0 14px 40px rgba(31, 41, 55, 0.12);
  --shadow-lg: 0 24px 60px rgba(249, 115, 22, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 50%, #faf5ff 100%);
}

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: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-text,
.footer-brand {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--orange);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.28);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.cta-content,
.ranking-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.light-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

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

.light-button {
  color: var(--orange);
  background: #fff;
  box-shadow: var(--shadow);
}

.primary-button:hover,
.ghost-button:hover,
.light-button:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

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

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

.section-block {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.centered {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.ranking-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.footer-grid p,
.story-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

.section-link.purple {
  color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-chip,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip {
  display: grid;
  place-items: center;
  min-height: 112px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.category-chip:hover,
.category-overview-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.chip-1 { background: linear-gradient(135deg, #fb7185, #ec4899); }
.chip-2 { background: linear-gradient(135deg, #60a5fa, #a855f7); }
.chip-3 { background: linear-gradient(135deg, #fb923c, #ef4444); }
.chip-4 { background: linear-gradient(135deg, #facc15, #f97316); }
.chip-5 { background: linear-gradient(135deg, #4b5563, #111827); }
.chip-6 { background: linear-gradient(135deg, #a855f7, #ec4899); }

.movie-grid {
  display: grid;
  gap: 22px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.poster-link,
.horizontal-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.poster-link {
  aspect-ratio: 1 / 1;
}

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

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

.card-category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 800;
  background: #fff7ed;
}

.poster-link .card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.poster-action {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.52);
  transform: translateY(56px);
  transition: transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover .poster-action {
  transform: translateY(0);
}

.card-body,
.horizontal-body {
  padding: 16px;
}

.card-body h3,
.horizontal-body h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a,
.horizontal-body h3 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover,
.horizontal-body h3 a:hover {
  color: var(--orange);
}

.card-body p,
.horizontal-body p {
  min-height: 44px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:first-child {
  color: #eab308;
}

.movie-card-large .poster-link {
  aspect-ratio: 1 / 1.08;
}

.movie-card-large h3 {
  font-size: 20px;
}

.horizontal-grid,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 190px;
}

.horizontal-poster {
  height: 100%;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.warm-band {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.88), rgba(252, 231, 243, 0.88));
}

.cta-band {
  padding: 74px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.cta-content {
  justify-content: center;
  flex-direction: column;
}

.cta-content h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
}

.cta-content p {
  max-width: 740px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero {
  padding: 76px 0 56px;
}

.soft-hero {
  background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.2), transparent 32%), radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.18), transparent 36%);
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  margin: 18px 0 12px;
}

.filter-panel {
  margin-top: -16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filter-title {
  margin-bottom: 14px;
  color: var(--orange-deep);
  font-size: 20px;
  font-weight: 900;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.category-overview-card {
  min-height: 230px;
  color: #fff;
}

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

.category-overview-card p {
  color: rgba(255, 255, 255, 0.88);
}

.category-mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-mini-links a {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease;
}

.category-mini-links a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ranking-hero,
.detail-head {
  position: relative;
  overflow: hidden;
}

.ranking-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #111827;
}

.ranking-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36));
}

.ranking-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
}

.ranking-copy h1 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.ranking-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-head {
  padding: 48px 0;
  background: radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.22), transparent 30%), radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.2), transparent 34%);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  box-shadow: var(--shadow-lg);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--orange-deep);
  font-weight: 800;
}

.detail-info h1 {
  margin-bottom: 14px;
}

.detail-one-line {
  max-width: 800px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span,
.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.tag-row span {
  color: #6b21a8;
  background: #f3e8ff;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.68));
}

.player-start.is-hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.4);
}

.player-message {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  color: #fff;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.story-card h2 {
  margin: 0 0 14px;
  color: var(--orange-deep);
  font-size: 26px;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0 22px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
  font-weight: 800;
  color: #4b5563;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 18px;
  color: #9ca3af;
  border-top: 1px solid rgba(249, 115, 22, 0.15);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .section-heading.with-link,
  .footer-grid,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .grid-4,
  .grid-5,
  .grid-6,
  .category-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .horizontal-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 24px;
  }

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

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

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

  .brand,
  .footer-brand {
    font-size: 22px;
  }

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

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

  .section-block {
    padding: 46px 0;
  }

  .category-grid.compact,
  .grid-4,
  .grid-5,
  .grid-6,
  .category-overview-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 120px 1fr;
    min-height: 150px;
  }

  .horizontal-body {
    padding: 12px;
  }

  .horizontal-body p {
    display: none;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .story-card {
    padding: 22px;
  }
}
