:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-strong: #fff1f7;
  --text: #1f2937;
  --muted: #64748b;
  --line: #f9cdda;
  --primary: #db2777;
  --primary-dark: #be185d;
  --accent: #fb7185;
  --rose: #fff1f2;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.14);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96));
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-name {
  font-size: clamp(20px, 2vw, 28px);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

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

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--primary);
  background: rgba(244, 114, 182, 0.12);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 114, 182, 0.14);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 48%, #ffe4e6 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 114, 182, 0.26), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(251, 113, 133, 0.26), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(219, 39, 119, 0.12), transparent 36%);
}

.hero-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.46;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-one {
  left: 8%;
  top: 12%;
  background: #f9a8d4;
}

.hero-glow-two {
  right: 12%;
  top: 18%;
  background: #fecdd3;
  animation-delay: 1.4s;
}

.hero-glow-three {
  left: 44%;
  bottom: 10%;
  background: #fbcfe8;
  animation-delay: 2.6s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -18px, 0) scale(1.08);
  }
}

.hero-carousel {
  position: relative;
}

.hero-track {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 54px;
}

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

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(219, 39, 119, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.09);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  color: #1f2937;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #475569;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.82;
}

.hero-tags,
.tag-row,
.meta-pills,
.filter-actions,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.meta-pills span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f7;
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
}

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

.btn,
.btn-soft,
.filter-button,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn,
.player-button {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(219, 39, 119, 0.24);
}

.btn-soft,
.filter-button {
  padding: 12px 18px;
  border: 1px solid rgba(219, 39, 119, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
}

.btn:hover,
.btn-soft:hover,
.filter-button:hover,
.filter-button.is-active,
.player-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(219, 39, 119, 0.2);
}

.hero-cover {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-cover-card {
  position: relative;
  width: min(430px, 100%);
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.hero-cover-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.6));
  pointer-events: none;
}

.hero-cover-title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  text-shadow: 0 8px 22px rgba(15, 23, 42, 0.35);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero,
.section-block {
  padding: 64px 0;
}

.page-hero {
  background: linear-gradient(135deg, #fff1f7, #fff7fb);
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
}

.page-hero h1,
.section-title h2,
.detail-copy h1 {
  margin: 14px 0 14px;
  color: #1f2937;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.section-title p,
.category-card p,
.detail-copy p,
.long-copy p {
  color: var(--muted);
  line-height: 1.86;
}

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

.section-title-copy {
  max-width: 760px;
}

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

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

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

.rank-grid {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.38fr);
  align-items: start;
}

.category-card,
.movie-card,
.panel,
.detail-card,
.player-shell {
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.08);
}

.category-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 39, 119, 0.35);
  box-shadow: 0 24px 55px rgba(190, 24, 93, 0.14);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(219, 39, 119, 0.2);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  font-size: 14px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-preview span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1f7;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #fff1f7, #ffe4e6);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.poster-year {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.movie-card-compact .movie-card-body p {
  display: none;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.08);
}

.search-field {
  width: 100%;
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 18px;
  padding: 15px 18px;
  outline: none;
  color: #1f2937;
  background: #ffffff;
  font-size: 16px;
}

.filter-button {
  border: 1px solid rgba(219, 39, 119, 0.2);
  cursor: pointer;
}

.rank-list {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 98px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.1);
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff1f7;
}

.small-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 950;
}

.rank-row-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-row-copy em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.detail-hero {
  padding: 38px 0 64px;
  background: linear-gradient(135deg, #fff1f7, #fff7fb);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--primary);
}

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

.player-shell {
  overflow: hidden;
  background: #111827;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(219, 39, 119, 0.26), rgba(15, 23, 42, 0.72));
}

.player-button {
  position: relative;
  z-index: 4;
  min-width: 168px;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}

.detail-card {
  padding: 24px;
}

.detail-copy h1 {
  margin-top: 0;
}

.detail-copy .one-line {
  color: #475569;
  font-size: 18px;
  line-height: 1.82;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fff1f7;
}

.long-copy {
  display: grid;
  gap: 22px;
}

.long-copy h2,
.panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.long-copy p {
  margin: 0;
}

.related-section {
  padding: 0 0 64px;
}

.site-footer {
  margin-top: 40px;
  padding: 52px 0 0;
  background: linear-gradient(180deg, #fff7fb, #fff1f7);
  border-top: 1px solid rgba(244, 114, 182, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p {
  max-width: 470px;
  color: #64748b;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed rgba(219, 39, 119, 0.35);
  border-radius: 24px;
  color: #be185d;
  background: #fff7fb;
  text-align: center;
  font-weight: 900;
}

.empty-state.is-visible {
  display: block;
}

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

  .header-search {
    display: none;
  }
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-slide,
  .detail-layout,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 46px 0 74px;
  }

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

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

  .rank-list {
    position: static;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-track,
  .mobile-nav {
    width: min(100% - 22px, var(--container));
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-cover-card {
    width: 82%;
  }

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

  .movie-card-title {
    font-size: 15px;
    min-height: 42px;
  }

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

  .page-hero,
  .section-block {
    padding: 44px 0;
  }

  .detail-card {
    padding: 18px;
  }
}

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