:root {
  color-scheme: light;
  --bg: #fff7fb;
  --panel: #ffffff;
  --panel-soft: #fff1f6;
  --text: #19111a;
  --muted: #756a75;
  --line: #f3d3df;
  --primary: #ec4899;
  --primary-dark: #be185d;
  --accent: #fb7185;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #fff7fb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #574253;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--panel-soft);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff3f8;
  color: #5d4153;
}

.main-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: 32px;
  padding: 56px;
  color: #fff;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(3px) saturate(1.25);
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(251, 113, 133, 0.36), transparent 22rem),
    linear-gradient(90deg, rgba(17, 7, 15, 0.94), rgba(60, 9, 42, 0.72) 48%, rgba(121, 18, 67, 0.2));
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
  color: #ffe2ee;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #ffe6f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-actions a,
.card-actions a,
.detail-actions a,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
  font-weight: 800;
}

.hero-actions a:nth-child(2),
.card-actions a:nth-child(2),
.detail-actions a:nth-child(2) {
  color: #ffe6f0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-actions a:nth-child(2),
.detail-actions a:nth-child(2) {
  color: var(--primary-dark);
  background: #fff0f6;
  border-color: #ffd0e2;
}

.hero-poster-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster {
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.active {
  background: #fff;
}

.search-panel {
  margin: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 110px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select,
.search-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.search-panel input,
.search-panel select {
  background: #fff5fa;
  color: var(--text);
}

.search-panel button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
}

.section {
  margin-top: 44px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.055em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: none;
  color: var(--primary-dark);
  font-weight: 800;
}

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

.movie-card,
.category-card,
.rank-item,
.detail-panel,
.player-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(190, 24, 93, 0.17);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(190, 24, 93, 0.88);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.45;
}

.card-meta {
  margin: 8px 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  min-height: 66px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0f6;
  color: #9d174d;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  display: block;
  min-height: 176px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.28), transparent 8rem),
    #fff;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  background: #fde2ed;
}

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

.rank-meta {
  margin: 6px 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #fde2ed;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-panel {
  padding: 32px;
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-meta {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.detail-summary {
  color: #4f3e4d;
  font-size: 17px;
  line-height: 1.9;
}

.player-panel {
  margin-top: 28px;
  overflow: hidden;
}

.video-wrap {
  position: relative;
  background: #070408;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070408;
}

.video-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.35), transparent 18rem),
    rgba(10, 4, 8, 0.42);
}

.video-cover.hidden {
  display: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.45);
  font-size: 34px;
}

.player-info {
  padding: 20px 24px 24px;
}

.player-info h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-block {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.text-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.text-panel p {
  margin: 0;
  color: #4f3e4d;
  line-height: 1.9;
}

.empty-state {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff0f6;
  color: #9d174d;
  font-weight: 800;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.open {
    display: grid;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster-wrap {
    display: none;
  }

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

  .detail-hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .main-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 610px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

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

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

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

  .movie-grid,
  .category-grid,
  .rank-list,
  .article-block {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 64px minmax(0, 1fr);
  }

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover img {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .brand span:last-child {
    font-size: 18px;
  }

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

  .hero p,
  .detail-summary {
    font-size: 15px;
  }

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