:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --ink: #2d1b24;
  --muted: #7a6170;
  --line: rgba(244, 114, 182, 0.18);
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.15);
  --soft-shadow: 0 12px 36px rgba(190, 24, 93, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 114, 182, 0.20), transparent 34rem),
    radial-gradient(circle at 88% 2%, rgba(251, 146, 60, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 48%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.92), rgba(255, 247, 237, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #be185d, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: #5b3448;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.hero {
  padding: 28px 0 12px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  height: min(650px, 72vh);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #130811;
  box-shadow: var(--shadow);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 3, 18, 0.90) 0%, rgba(88, 10, 44, 0.68) 40%, rgba(20, 3, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(20, 3, 18, 0.62), transparent 50%);
}

.hero-content {
  position: absolute;
  left: clamp(26px, 6vw, 76px);
  bottom: clamp(54px, 8vw, 96px);
  width: min(630px, calc(100% - 52px));
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb7185;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 680px;
}

.hero-tags,
.tag-row,
.detail-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #be185d;
  border-color: rgba(244, 114, 182, 0.24);
  background: #fff1f7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.24);
}

.hero-dots {
  position: absolute;
  left: clamp(26px, 6vw, 76px);
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-more {
  min-height: 40px;
  color: #be185d;
  background: #fff;
  border: 1px solid var(--line);
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 22px;
  font-weight: 900;
}

.search-box input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  outline: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.search-box input {
  padding: 0 20px 0 50px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  padding: 0 16px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.36);
  box-shadow: 0 26px 60px rgba(190, 24, 93, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f7, #ffedd5);
}

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

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

.quality-badge,
.score-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.quality-badge {
  left: 12px;
}

.score-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 800;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #f9a8d4;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

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

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

.compact-card h3 {
  font-size: 16px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.side-card,
.story-card,
.player-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.tall-list {
  max-height: 1320px;
  overflow: auto;
  padding-right: 4px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: #fff1f7;
}

.ranking-number {
  color: #be185d;
  font-size: 18px;
  font-weight: 950;
}

.ranking-row img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info {
  min-width: 0;
}

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

.ranking-info strong {
  font-weight: 950;
}

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

.ranking-score {
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 12px;
  font-weight: 900;
}

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

.category-card {
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.88));
  box-shadow: var(--soft-shadow);
}

.category-card strong,
.category-tile strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-card span,
.category-tile em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  border-radius: 28px;
  background: #1f0716;
  box-shadow: var(--soft-shadow);
}

.category-tile img,
.tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tile-shade {
  background: linear-gradient(0deg, rgba(20, 3, 18, 0.88), rgba(20, 3, 18, 0.16));
}

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

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #531536, #be185d 54%, #fb923c);
}

.compact-hero {
  min-height: 280px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

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

.category-hero-content {
  padding: 64px 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #210814;
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  filter: blur(6px) saturate(1.12);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 84px 0 52px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 950;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-article {
  display: grid;
  gap: 24px;
}

.player-section,
.story-card,
.side-card {
  padding: 24px;
}

.single-heading {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #0f0710;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f0710;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.36), rgba(15, 7, 16, 0.58));
  cursor: pointer;
}

.play-layer.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-round {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #be185d;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
}

.story-card p {
  margin: 0;
  color: #4b3140;
  font-size: 17px;
}

.side-card {
  margin-bottom: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: #be185d;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: var(--muted);
}

.side-related {
  display: grid;
  gap: 10px;
}

.site-footer {
  margin-top: 34px;
  padding: 38px 0;
  color: #6b3d52;
  background: linear-gradient(90deg, #fff1f7, #ffedd5);
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 12px;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

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

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

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
  }

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

  .site-nav a {
    color: #5b3448;
  }

  .hero-shell {
    height: auto;
    min-height: 610px;
  }

  .hero-content {
    bottom: 74px;
  }

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

  .split-grid,
  .detail-layout,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .filter-panel {
    align-items: stretch;
    border-radius: 28px;
    flex-direction: column;
  }

  .filter-selects {
    width: 100%;
  }

  .filter-selects select {
    flex: 1;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow-container,
  .site-header-inner,
  .site-footer-inner,
  .hero-shell {
    width: min(100% - 28px, 1180px);
  }

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

  .hero-shell {
    border-radius: 26px;
    min-height: 570px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .movie-grid,
  .small-grid,
  .all-grid,
  .category-grid,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .category-card,
  .ranking-panel,
  .story-card,
  .side-card,
  .player-section {
    border-radius: 20px;
    padding: 18px;
  }

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

  .detail-hero-inner {
    padding-top: 48px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .small-grid,
  .all-grid,
  .category-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    flex-direction: column;
  }
}
