:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 114, 182, 0.2);
  --white: #ffffff;
  --pink: #f43f5e;
  --pink-dark: #be123c;
  --orange: #f97316;
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.2), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #ffffff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(244, 63, 94, 0.08);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-logo::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.site-logo span {
  background: linear-gradient(135deg, var(--pink-dark), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover {
  color: var(--pink-dark);
  background: rgba(244, 114, 182, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--pink-dark);
}

.hero-slider {
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 22px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.62) 48%, rgba(190, 18, 60, 0.26) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 40px));
  height: 100%;
  padding: clamp(38px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-content .eyebrow,
.page-hero .eyebrow {
  color: #fed7aa;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.85;
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

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

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.78);
}

.text-link {
  color: var(--pink-dark);
  min-height: 36px;
  padding: 0 12px;
}

.hero-dots {
  position: absolute;
  left: clamp(38px, 7vw, 84px);
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 26px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 48px;
  background: #fff;
}

.category-strip,
.spotlight-section,
.section-block,
.category-overview-grid,
.filter-panel,
.page-hero,
.detail-shell,
.player-section,
.content-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 56px;
}

.category-pill,
.category-card-large,
.spotlight-card,
.movie-card,
.rank-item,
.story-card,
.filter-panel {
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(190, 18, 60, 0.08);
  backdrop-filter: blur(16px);
}

.category-pill {
  min-height: 94px;
  padding: 18px;
  border-radius: 22px;
}

.category-pill strong {
  display: block;
  margin-bottom: 7px;
  color: var(--pink-dark);
  font-size: 17px;
}

.category-pill span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.spotlight-section {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 22px;
  margin-bottom: 64px;
}

.spotlight-card {
  min-height: 360px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 242, 0.78)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.25), transparent 20rem);
}

.spotlight-card h2,
.section-heading h2,
.page-hero h1,
.category-card-large span,
.content-section h2,
.player-section h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.spotlight-card h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.spotlight-card p {
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.compact-grid.mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(190, 18, 60, 0.08);
}

.compact-card img {
  height: 76px;
  border-radius: 16px;
}

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

.compact-card strong {
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.section-block {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.section-heading input,
.filter-bar input,
.filter-bar select {
  width: min(100%, 360px);
  min-height: 46px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 65px rgba(190, 18, 60, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffe4e6;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-line a {
  color: var(--pink-dark);
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.card-summary {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row span {
  color: var(--pink-dark);
  background: rgba(244, 114, 182, 0.1);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 14px;
  border-radius: 22px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-poster img {
  height: 82px;
  border-radius: 16px;
}

.rank-content p,
.rank-content span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rank-content h3 {
  margin: 5px 0;
  font-size: 18px;
}

.page-hero {
  margin-top: 30px;
  margin-bottom: 32px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(136, 19, 55, 0.88), rgba(249, 115, 22, 0.78)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

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

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

.category-card-large {
  padding: 22px;
  border-radius: 28px;
}

.category-title-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.category-title-link span {
  font-size: 26px;
  font-weight: 900;
}

.category-title-link strong {
  color: var(--pink-dark);
  font-size: 13px;
}

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

.filter-panel {
  padding: 24px;
  border-radius: 28px;
  margin-bottom: 72px;
}

.filter-heading {
  align-items: start;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 16px;
}

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

.full-rank {
  max-height: none;
}

.empty-state {
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 241, 242, 0.72);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 48px;
  color: #fff;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62)),
    linear-gradient(0deg, rgba(136, 19, 55, 0.48), rgba(15, 23, 42, 0.22));
}

.detail-bg img {
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: 52px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.detail-content h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  margin: 24px 0 14px;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags span {
  color: #fff;
  background: rgba(244, 114, 182, 0.28);
}

.player-section {
  margin-bottom: 48px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0f172a;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 20px 55px rgba(244, 63, 94, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-stage.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.content-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.story-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
}

.story-card h2 {
  font-size: 28px;
}

.story-card p {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 34px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
}

.footer-inner p {
  max-width: 480px;
  margin: 0;
  line-height: 1.75;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-inner nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(244, 114, 182, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .movie-grid.compact-layout,
  .movie-grid.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

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

  .hero-content {
    padding: 34px 24px 78px;
  }

  .hero-dots {
    left: 24px;
  }

  .spotlight-section,
  .content-section,
  .detail-shell,
  .footer-inner,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    padding-top: 36px;
  }

  .detail-poster {
    width: min(320px, 88vw);
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    min-height: 66px;
  }

  .site-logo {
    font-size: 17px;
  }

  .category-strip,
  .movie-grid,
  .movie-grid.compact-layout,
  .movie-grid.related-grid,
  .category-grid,
  .compact-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-item .text-link {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .detail-hero {
    min-height: auto;
  }

  .player-stage {
    border-radius: 20px;
  }

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
