:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 168, 212, 0.26);
  --pink: #ec4899;
  --orange: #fb923c;
  --violet: #8b5cf6;
  --blue: #38bdf8;
  --shadow: 0 24px 70px rgba(236, 72, 153, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
}

.site-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--pink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--pink);
  font-size: 22px;
}

.hero-section,
.page-hero,
.content-section,
.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  padding: 58px 0 42px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
  z-index: 1;
}

.hero-title-block {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 34px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.kicker,
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.1);
  color: #be185d;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-title-block h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
  background: linear-gradient(90deg, #111827, #db2777 52%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-block p,
.page-hero p,
.section-heading p,
.movie-card-body p,
.compact-card p,
.rank-main p,
.detail-lead,
.story-card p,
.category-tile p,
.category-overview-head p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-quick-links,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-quick-links a,
.primary-btn,
.ghost-btn,
.section-link,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-quick-links a,
.ghost-btn,
.section-link {
  padding: 12px 18px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.primary-btn,
.small-btn {
  padding: 13px 22px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.25);
}

.ghost-btn {
  color: #374151;
}

.hero-quick-links a:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.18);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  align-items: end;
  gap: 20px;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.18)),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.38), transparent 22rem);
  z-index: 0;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  margin: 20px 0 14px;
  color: white;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #be185d;
  background: rgba(252, 231, 243, 0.95);
}

.hero-poster {
  align-self: center;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 40px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: white;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  filter: blur(8px);
  opacity: 0.55;
  border-radius: 999px;
}

.hero-glow-one {
  left: -80px;
  top: 60px;
  background: rgba(251, 146, 60, 0.28);
}

.hero-glow-two {
  right: -80px;
  bottom: 40px;
  background: rgba(236, 72, 153, 0.26);
}

.content-section {
  padding: 48px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.category-overview-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: #111827;
  color: white;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 0.5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.18));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

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

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #be185d;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

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

.movie-title {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

.movie-title:hover,
.compact-title:hover,
.rank-title:hover {
  color: var(--pink);
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.9);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compact-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.compact-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.compact-poster {
  border-radius: 16px;
  overflow: hidden;
}

.compact-poster img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.compact-title {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.compact-card span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 16px;
  padding: 13px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.page-hero {
  margin-top: 44px;
  padding: 46px;
  border-radius: 34px;
  background:
    radial-gradient(circle at right top, rgba(236, 72, 153, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.82));
  box-shadow: var(--shadow);
}

.slim-hero,
.category-hero,
.rank-hero,
.search-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stacked-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.rank-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  font-weight: 950;
}

.rank-cover {
  border-radius: 16px;
  overflow: hidden;
}

.rank-cover img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rank-title {
  font-size: 18px;
  font-weight: 950;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at right top, rgba(236, 72, 153, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(51, 65, 85, 0.92));
  color: white;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: white;
}

.detail-info h1 {
  color: white;
  font-size: clamp(34px, 5vw, 64px);
}

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

.detail-meta span {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.player-section {
  padding: 48px 0 18px;
}

.compact-heading {
  margin-bottom: 16px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.34);
}

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

.story-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.story-card h2 + p {
  margin-top: 0;
}

.site-footer {
  margin-top: 60px;
  padding: 46px 0 24px;
  color: white;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-brand {
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin: 0 0 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-inner,
  .hero-slide,
  .detail-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-title-block,
  .hero-slider {
    min-height: auto;
  }

  .hero-title-block {
    padding: 34px;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-slide {
    align-items: center;
  }

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

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

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  }

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

  .hero-section,
  .page-hero,
  .content-section,
  .detail-page {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-title-block,
  .page-hero,
  .detail-hero,
  .story-card {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-slider {
    min-height: 720px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 26px;
  }

  .hero-poster {
    transform: none;
    max-width: 260px;
  }

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

  .category-grid,
  .movie-grid,
  .compact-grid,
  .compact-grid.two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row .small-btn {
    grid-column: 1 / -1;
  }

  .detail-hero {
    gap: 22px;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

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

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

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

  .hero-copy h2 {
    font-size: 34px;
  }

  .hero-slider {
    min-height: 680px;
  }

  .compact-card {
    grid-template-columns: 82px 1fr;
  }
}
