:root {
  color-scheme: light;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --soft-2: #fff7ed;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 32%, #fff7ed 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 228, 230, 0.88);
  box-shadow: 0 12px 34px rgba(190, 18, 60, 0.06);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: white;
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
}

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

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  color: #4b5563;
  font-weight: 700;
}

.mobile-menu.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.18), transparent 28%), linear-gradient(135deg, #fff1f2 0%, #fff7ed 52%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow-one {
  background: var(--rose);
  left: -130px;
  top: 70px;
}

.hero-glow-two {
  background: var(--orange);
  right: -160px;
  bottom: -130px;
}

.hero-stage {
  max-width: 1180px;
  min-height: 640px;
  margin: 0 auto;
  padding: 58px 22px 78px;
  position: relative;
}

.hero-slide {
  min-height: 500px;
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.5s ease both;
}

.hero-slide img {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.08);
  color: var(--rose);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.sub-hero h1,
.detail-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-copy p,
.sub-hero p {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
  max-width: 680px;
}

.hero-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.26);
}

.secondary-button,
.ghost-button {
  color: var(--rose);
  background: white;
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.18);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px;
}

.tinted-section {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 22px));
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 46px rgba(190, 18, 60, 0.1);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.text-link {
  color: var(--rose);
  font-weight: 850;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.rank-grid,
.rank-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 228, 230, 0.9);
  box-shadow: 0 12px 34px rgba(190, 18, 60, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(190, 18, 60, 0.17);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
  aspect-ratio: 2 / 3;
}

.wide-card .card-cover {
  aspect-ratio: 16 / 10;
}

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

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

.play-dot,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.play-dot {
  width: 46px;
  height: 46px;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 58px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.card-title:hover {
  color: var(--rose);
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 46px;
  overflow: hidden;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  color: white;
  box-shadow: 0 18px 48px rgba(190, 18, 60, 0.16);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.76));
  z-index: -1;
}

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

.category-card span {
  display: block;
  margin-top: 88px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
  font-size: 14px;
}

.sub-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 36px;
}

.sub-hero h1 {
  max-width: 780px;
}

.category-hero,
.ranking-hero {
  position: relative;
}

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

.overview-card {
  padding: 28px;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.08);
}

.overview-title {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 950;
  color: var(--rose);
}

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

.overview-links {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.overview-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #4b5563;
  font-weight: 750;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(190, 18, 60, 0.07);
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--rose);
  font-weight: 850;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

.filter-chip {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 850;
  cursor: pointer;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: white;
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.24), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-large {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.34);
  font-size: 28px;
}

.play-cover strong {
  font-size: 24px;
}

.play-cover small {
  color: rgba(255, 255, 255, 0.72);
}

.detail-content,
.info-panel,
.poster-panel {
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.08);
}

.detail-content {
  padding: 32px;
}

.detail-content h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.detail-lead {
  font-size: 19px;
  line-height: 1.85;
  color: #4b5563;
}

.detail-content h2,
.info-panel h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 800;
  font-size: 13px;
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.info-panel {
  padding: 24px;
}

.info-panel h2 {
  margin-top: 0;
}

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-panel div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: #111827;
  font-weight: 850;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 999px;
  background: white;
  color: #4b5563;
  font-weight: 800;
}

.copyright {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 34px;
  text-align: center;
}

[data-movie-card].is-hidden {
  display: none;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .compact-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    grid-template-columns: 260px 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero,
  .hero-stage {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-slide img {
    order: 1;
    border-radius: 26px;
    transform: none;
  }

  .hero-copy {
    order: 2;
  }

  .hero-copy h1,
  .sub-hero h1 {
    font-size: 42px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .section-heading,
  .filter-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .compact-grid,
  .catalog-grid,
  .rank-grid,
  .rank-page-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .poster-panel img {
    max-height: 520px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding: 0 16px;
  }

  .hero-stage,
  .section,
  .sub-hero,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .compact-grid,
  .catalog-grid,
  .rank-grid,
  .rank-page-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .sub-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .detail-content {
    padding: 24px;
  }
}
