:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-700: #7e22ce;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(225, 29, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 44%, var(--rose-50) 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.96), rgba(255, 241, 242, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.08);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--purple-700));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.22);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 21px;
  color: var(--gray-800);
}

.brand-text small {
  font-size: 12px;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: var(--gray-700);
}

.nav-links a {
  padding: 22px 0 18px;
  border-bottom: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--rose-600);
  border-color: var(--rose-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--rose-700);
  background: var(--rose-100);
}

.visual-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-600), #db2777 48%, var(--purple-700));
}

.visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.visual-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.04);
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.72));
}

.visual-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  align-items: center;
  padding: 76px 0;
  color: var(--white);
}

.visual-copy {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin-bottom: 20px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.visual-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.visual-copy p {
  margin: 0 0 22px;
  max-width: 720px;
  font-size: clamp(17px, 2.2vw, 24px);
  color: #ffe4e6;
}

.visual-meta,
.meta-line,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.visual-meta span,
.meta-line span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.visual-meta span {
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.26);
}

.btn-primary:hover,
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:hover {
  background: var(--rose-700);
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.34);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-light {
  color: var(--rose-700);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

.visual-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.visual-dots {
  display: flex;
  gap: 8px;
}

.visual-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

.visual-dots button.active {
  width: 28px;
  background: var(--white);
}

.main-space {
  padding: 58px 0 80px;
}

.section {
  margin: 0 0 72px;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--gray-500);
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
}

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

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line span {
  color: var(--rose-700);
  background: var(--rose-100);
}

.tag-line span {
  color: var(--purple-700);
  background: var(--purple-100);
}

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

.category-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  min-height: 192px;
  border-radius: 26px;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--white), var(--rose-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.category-card span {
  color: var(--rose-600);
  font-weight: 900;
}

.feature-strip {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--rose-100), var(--purple-100));
}

.search-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: var(--white);
}

.search-box span {
  color: var(--rose-600);
  font-size: 22px;
}

.search-box input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
}

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

.filter-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.filter-row button.active,
.filter-row button:hover {
  color: var(--white);
  background: var(--rose-600);
}

.page-visual {
  padding: 68px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), #db2777 50%, var(--purple-700));
}

.page-visual h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-visual p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 18px;
}

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

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-no {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--purple-700));
  font-size: 18px;
  font-weight: 950;
}

.rank-item img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--rose-100);
}

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-info strong {
  color: var(--gray-800);
  font-size: 19px;
}

.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-500);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info span {
  color: var(--rose-600);
  font-weight: 800;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.3);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.34);
  font-size: 34px;
}

.detail-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--rose-100);
}

.detail-card h2,
.content-card h2 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.content-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card p {
  color: var(--gray-600);
  font-size: 17px;
}

.footer {
  color: #d1d5db;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0 28px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

.footer p {
  margin: 0;
  color: #9ca3af;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--rose-500);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 12px;
  }

  .visual-stage,
  .visual-content {
    min-height: 560px;
  }

  .visual-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 48px 72px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 72px;
    height: 98px;
  }

  .player-button {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
