:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

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

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

button,
input,
select {
  font: inherit;
}

.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.header-inner {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fb7185, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

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

.nav-link {
  font-size: 15px;
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb7185;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  padding: 12px 82px 12px 18px;
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  border: 0;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--rose);
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-search {
  position: relative;
  margin-bottom: 14px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
  color: #e2e8f0;
}

.mobile-link.sub {
  padding-left: 18px;
  color: #cbd5e1;
}

.mobile-link.active,
.mobile-link:hover {
  color: #fb7185;
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #020617, #1e293b);
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(244, 63, 94, 0.42), transparent 32%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.3) 55%, rgba(2, 6, 23, 0.7));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 0 26px;
  color: #ffffff;
  background: var(--rose);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.32);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background: var(--rose-dark);
}

.ghost-btn {
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: var(--rose);
}

.section-block,
.category-strip,
.accent-section,
.overview-stack {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px;
}

.accent-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  background: linear-gradient(90deg, #fff1f2, #ffedd5);
}

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

.section-head h2,
.page-hero h1,
.detail-copy-main h1,
.detail-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head a {
  color: var(--rose-dark);
  font-weight: 800;
}

.compact-head,
.inline-head {
  align-items: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  color: var(--slate-800);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: #fb7185;
  transform: translateY(-2px);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.thumb img,
.poster-card img,
.rank-item img,
.player-cover img,
.category-hero img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.thumb img {
  transition: transform 0.35s ease;
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 56%);
  opacity: 0.7;
}

.pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.top-left {
  top: 10px;
  left: 10px;
  background: var(--rose);
}

.bottom-right {
  right: 10px;
  bottom: 10px;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-info strong {
  font-size: 18px;
  line-height: 1.25;
}

.movie-desc {
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

.movie-card.compact {
  min-width: 286px;
  max-width: 286px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 34px;
}

.ranking-panel {
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--slate-900), var(--slate-800));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease;
}

.ranking-panel .rank-item {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  border-color: rgba(148, 163, 184, 0.2);
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
}

.rank-number.small {
  background: var(--slate-800);
}

.rank-item img {
  width: 84px;
  height: 54px;
  border-radius: 12px;
  background: var(--slate-800);
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-panel .rank-copy em {
  color: #94a3b8;
}

.rank-score {
  color: #fb7185;
  font-weight: 900;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at right top, rgba(251, 146, 60, 0.65), transparent 32%),
    linear-gradient(145deg, var(--slate-900), var(--slate-700));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span,
.category-card strong,
.category-card em {
  display: block;
}

.category-card span {
  color: #fecdd3;
  font-size: 13px;
  font-weight: 800;
}

.category-card strong {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.category-card em {
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  min-height: 340px;
  padding: 74px 24px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.42), transparent 28%),
    linear-gradient(135deg, var(--slate-900), #111827 60%, #451a03);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.category-hero {
  display: grid;
  align-items: center;
}

.category-hero img {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.tool-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.tool-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.tool-panel input,
.tool-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  outline: 0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0 16px;
}

.tool-panel input:focus,
.tool-panel select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.overview-stack {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.overview-copy p {
  color: var(--muted);
  line-height: 1.7;
}

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

.overview-samples .movie-card {
  max-width: none;
  min-width: 0;
}

.text-link {
  margin-top: 18px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(1px);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 28%, rgba(244, 63, 94, 0.38), transparent 28%),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.58));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.poster-card {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

.detail-copy-main h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
}

.lead {
  max-width: 850px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span,
.tag-list span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
}

.player-section {
  padding-top: 44px;
  padding-bottom: 30px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  z-index: 4;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
}

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.42);
  font-size: 32px;
}

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

.detail-copy {
  padding: 28px;
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.detail-copy h2 {
  margin: 0 0 14px;
}

.detail-copy p {
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  margin-top: 28px;
}

.wide-list .rank-item {
  grid-template-columns: 48px 110px minmax(0, 1fr) 60px;
}

.wide-list .rank-item img {
  width: 110px;
  height: 70px;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-main p {
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-column a:hover {
  color: #fb7185;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .split-layout,
  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-block,
  .category-strip,
  .accent-section,
  .overview-stack {
    padding: 42px 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .overview-samples {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    min-width: 250px;
    max-width: 250px;
  }

  .rank-item,
  .wide-list .rank-item {
    grid-template-columns: 38px 82px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .detail-inner {
    padding: 36px 18px 48px;
  }

  .poster-card {
    max-width: 240px;
  }

  .player-shell {
    border-radius: 16px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 18px;
  }
}
