:root {
  --pink: #db2777;
  --pink-soft: #fce7f3;
  --purple: #9333ea;
  --purple-soft: #f3e8ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d4e5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.16);
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(249, 168, 212, 0.45);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 25px rgba(219, 39, 119, 0.35);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
  background: var(--pink-soft);
  transform: translateY(-1px);
}

.nav-separator {
  width: 1px;
  height: 24px;
  margin: 0 5px;
  background: #fbcfe8;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #f9a8d4;
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-search input {
  width: 168px;
  padding-left: 8px;
}

.header-search button,
.mobile-search button,
.search-page-form button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button {
  padding: 8px 14px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--pink);
  background: var(--pink-soft);
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid #fce7f3;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #160b20;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 620px;
  opacity: 0;
  visibility: hidden;
  background-image: linear-gradient(90deg, rgba(219, 39, 119, 0.94), rgba(88, 28, 135, 0.78)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  color: #fff;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 8px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h3 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.movie-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 750;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(219, 39, 119, 0.28);
}

.btn-light {
  color: var(--pink);
  background: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 34px;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section-wrap,
.detail-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section-wrap {
  padding: 70px 0;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--pink);
  background: var(--pink-soft);
}

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

.section-heading a {
  color: var(--pink);
  font-weight: 850;
}

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

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

.category-tile {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(249, 168, 212, 0.55);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff1f7 55%, #f5ecff);
  box-shadow: var(--shadow);
}

.category-tile-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.category-tile-main span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.category-tile-main strong {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-size: 13px;
}

.category-tile p {
  min-height: 70px;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(249, 168, 212, 0.38);
  border-radius: 26px;
  color: inherit;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(219, 39, 119, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(219, 39, 119, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--pink);
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.movie-info strong {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 950;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags span,
.detail-tags span {
  color: var(--pink);
  background: var(--pink-soft);
}

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

.ranking-panel,
.spotlight-main,
.ranking-table,
.detail-card,
.story-section {
  border: 1px solid rgba(249, 168, 212, 0.45);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-panel,
.spotlight-main {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  color: inherit;
  background: #fff7fb;
}

.rank-num {
  color: var(--pink);
  font-size: 18px;
  font-weight: 950;
}

.rank-item img {
  width: 62px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item strong {
  font-weight: 900;
}

.rank-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.95), rgba(147, 51, 234, 0.9));
}

.page-hero > div {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.page-hero.slim > div {
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid #f9a8d4;
  border-radius: 22px;
  background: #fff;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.filter-bar button {
  padding: 12px 18px;
}

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

.podium-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  box-shadow: var(--shadow);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.podium-card span,
.podium-card strong,
.podium-card em {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 24px;
  margin-right: 24px;
}

.podium-card span {
  margin-top: 280px;
  color: #fbcfe8;
  font-weight: 950;
}

.podium-card strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 950;
}

.podium-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 64px minmax(0, 1fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  color: inherit;
  border-bottom: 1px solid #fce7f3;
}

.ranking-row:hover {
  background: #fff7fb;
}

.ranking-number {
  color: var(--pink);
  font-size: 22px;
  font-weight: 950;
}

.ranking-row img {
  width: 64px;
  height: 82px;
  border-radius: 15px;
  object-fit: cover;
}

.ranking-title strong,
.ranking-title em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-title strong {
  font-size: 18px;
  font-weight: 950;
}

.ranking-title em,
.ranking-year {
  color: var(--muted);
  font-style: normal;
}

.search-page-form {
  display: flex;
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  font-size: 16px;
}

.search-page-form button {
  padding: 12px 24px;
}

.quick-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-keywords button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  cursor: pointer;
}

.detail-wrap {
  padding: 32px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #050505;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(219, 39, 119, 0.64), rgba(17, 24, 39, 0.62));
}

.play-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: var(--pink);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.player-status {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
  font-weight: 800;
}

.detail-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  padding: 26px;
}

.detail-cover img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.16);
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.detail-meta {
  margin: 20px 0 18px;
}

.detail-meta span {
  color: #4b5563;
  background: #f9fafb;
}

.story-section {
  margin-top: 24px;
  padding: 28px;
}

.story-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.story-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-related {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid #fbcfe8;
  background: linear-gradient(135deg, #fff1f7, #f5edff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

.footer-bottom {
  padding: 18px 24px;
  border-top: 1px solid #fbcfe8;
  color: var(--muted);
  text-align: center;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .mobile-search {
    margin-top: 8px;
  }
}

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

  .spotlight-layout,
  .footer-grid,
  .detail-card,
  .podium {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    width: 100%;
  }

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .section-wrap,
  .detail-wrap,
  .footer-grid,
  .page-hero > div {
    width: calc(100% - 28px);
    padding-left: 0;
    padding-right: 0;
  }

  .header-inner {
    gap: 10px;
  }

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

  .header-search {
    display: none;
  }

  .hero-slider,
  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .filter-bar,
  .search-page-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .filter-bar input,
  .search-page-form input {
    min-height: 44px;
  }

  .ranking-row {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .ranking-year {
    display: none;
  }

  .player-shell {
    border-radius: 20px;
  }

  .play-core {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
