* {
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 28px rgba(244, 63, 94, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6, #fdf2f8);
}

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(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 1.18rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--rose);
  background: #fff1f2;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.18), transparent 34%), radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.18), transparent 34%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 46%, #fff7ed 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.52;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  left: 7%;
  top: 9%;
  background: #fda4af;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
  width: 380px;
  height: 380px;
  right: 2%;
  bottom: 0;
  background: #f9a8d4;
  animation: pulseGlow 7s ease-in-out infinite reverse;
}

.hero-track {
  position: relative;
  z-index: 1;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 8px 14px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 0 0 20px;
  color: #111827;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 1.14rem;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.btn-secondary,
.btn-light {
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.24);
  transform: rotate(2deg);
}

.hero-poster img {
  transition: transform 0.8s ease;
}

.hero-slide.active .hero-poster img {
  transform: scale(1.05);
}

.hero-floating-card {
  position: absolute;
  left: -44px;
  bottom: 46px;
  max-width: 290px;
  padding: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  color: #be123c;
  background: #ffffff;
  border-radius: 50%;
  font-weight: 900;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #fecdd3;
  border-radius: 50%;
}

.hero-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  border-radius: 999px;
}

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

.page-hero {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 52%, #fff7ed);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

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

.page-hero h1,
.content-section h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose);
  font-weight: 900;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

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

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

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

.movie-card,
.rank-card,
.category-tile,
.info-panel {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-tile:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.poster-card .card-media {
  aspect-ratio: 3 / 4;
}

.card-media::after,
.rank-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.68), transparent 56%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-media::after,
.rank-card:hover .rank-poster::after {
  opacity: 1;
}

.card-media img,
.rank-poster img {
  transition: transform 0.45s ease;
}

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

.card-badge,
.card-play,
.rank-number,
.player-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.22);
}

.card-badge {
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3,
.rank-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.34;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3,
.rank-card:hover h3 {
  color: var(--rose);
}

.card-body p,
.rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 0.84rem;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  color: #be123c;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.category-tile {
  display: block;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -30px;
  top: -32px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.11);
}

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  font-size: 1.6rem;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-card a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
}

.rank-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
}

.rank-number {
  left: 9px;
  top: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.rank-card span:not(.rank-number) {
  color: #6b7280;
  font-size: 0.84rem;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  color: #4b5563;
  background: #f3f4f6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

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

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

.player-section {
  padding: 32px 0 0;
  background: #111827;
}

.player-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030712;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #030712;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.18));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 20px 60px rgba(244, 63, 94, 0.36);
  font-size: 2rem;
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 30px;
  color: #ffffff;
}

.player-caption h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.player-caption p {
  margin: 0;
  color: #d1d5db;
}

.player-badge {
  position: static;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 900;
}

.info-panel {
  padding: 24px;
}

.info-panel + .info-panel {
  margin-top: 22px;
}

.info-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.info-panel p {
  margin: 0 0 14px;
  color: #374151;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.sidebar-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sidebar-card img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.sidebar-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

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

.sitemap-links a {
  color: #be123c;
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-inner p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #9ca3af;
}

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

.footer-links a {
  color: #e5e7eb;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.92rem;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(12px, -10px, 0) scale(1.08);
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 86px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .hero-slide,
  .hero-track,
  .hero-content {
    position: relative;
    min-height: auto;
  }

  .hero-slide {
    display: none;
  }

  .hero-slide.active {
    display: block;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 42px 0 92px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-floating-card {
    left: 16px;
    right: 16px;
    bottom: 18px;
    max-width: none;
  }

  .hero-poster {
    border-radius: 28px;
  }

  .section-heading,
  .player-caption,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .rank-grid,
  .related-grid,
  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card a {
    grid-template-columns: 86px minmax(0, 1fr);
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .rank-grid,
  .related-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-section,
  .header-inner,
  .page-hero-inner,
  .player-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .card-media,
  .poster-card .card-media {
    aspect-ratio: 16 / 10;
  }

  .player-shell {
    border-radius: 18px 18px 0 0;
  }
}
