:root {
  --page-bg: #fff7fb;
  --panel-bg: #ffffff;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --line-soft: #f8cfe1;
  --pink: #f472b6;
  --pink-strong: #ec4899;
  --purple: #a855f7;
  --orange: #fb923c;
  --shadow-card: 0 18px 45px rgba(236, 72, 153, 0.13);
  --shadow-soft: 0 12px 30px rgba(31, 41, 55, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(168, 85, 247, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff7fb 0%, #fff 45%, #fff7fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(248, 207, 225, 0.85);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink-strong), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

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

.desktop-nav a,
.mobile-panel a {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--pink-strong);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.08);
}

.header-search input,
.mobile-search input,
.large-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  color: var(--text-main);
  background: transparent;
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--pink-strong);
  border-radius: 4px;
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid #ffe4f1;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav,
.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0;
}

.mobile-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f8;
}

.page-main {
  padding-top: 72px;
}

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

.home-main .content-section {
  margin-top: 72px;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 620px;
  margin-bottom: 54px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.1)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 88px;
  color: #ffffff;
}

.hero-copy {
  width: min(680px, 100%);
  animation: riseIn 0.8s ease both;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink-strong);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.18);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #be185d;
  background: #fff1f8;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--pink-strong);
  background: #fff1f8;
  border-color: #fbcfe8;
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 36px;
  background: #ffffff;
}

.section-heading {
  position: relative;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.section-more {
  position: absolute;
  right: 0;
  bottom: 6px;
  color: var(--pink-strong);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card {
  display: block;
  min-height: 168px;
  padding: 24px;
  border: 1px solid #ffe4f1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #fff1f8 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile span,
.category-overview-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--pink-strong);
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffe4f1;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.movie-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.movie-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

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

.cover-shine {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.56), transparent);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink-strong));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-card {
  width: 288px;
  flex: 0 0 288px;
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.split-section,
.ranking-layout,
.detail-content-grid,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.detail-side-card,
.detail-article,
.player-card,
.detail-info,
.filter-panel,
.page-hero {
  border: 1px solid #ffe4f1;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.ranking-panel,
.detail-side-card,
.detail-article,
.detail-info,
.filter-panel,
.page-hero {
  padding: 26px;
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ranking-panel-head span {
  font-size: 22px;
  font-weight: 900;
}

.ranking-panel-head a,
.detail-side-card a,
.category-sample-links a {
  color: var(--pink-strong);
  font-weight: 900;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #ffe4f1;
}

.rank-number {
  color: var(--pink-strong);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info small {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  margin-top: 5px;
  color: var(--text-soft);
  line-height: 1.45;
}

.inner-page {
  padding-top: 112px;
  padding-bottom: 72px;
}

.page-hero {
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 248, 0.96)),
    radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.16), transparent 22rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.page-search span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.page-search input {
  width: 100%;
  height: 46px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
}

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

.filter-chip {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 17px;
  color: #4b5563;
  font-weight: 900;
  cursor: pointer;
  background: #fff1f8;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.empty-state {
  margin-top: 28px;
  padding: 34px;
  text-align: center;
  border: 1px dashed #f9a8d4;
  border-radius: var(--radius-lg);
  background: #fff7fb;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--pink-strong);
  font-size: 22px;
}

.empty-state span {
  margin-top: 8px;
  color: var(--text-soft);
}

.category-overview-grid {
  padding-bottom: 36px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-sample-links a {
  max-width: 100%;
  overflow: hidden;
  padding: 8px 11px;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #ffffff;
}

.large-search {
  width: min(620px, 100%);
  margin-top: 24px;
}

.large-search input {
  width: 100%;
  min-height: 54px;
}

.detail-page {
  padding-top: 106px;
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-soft);
  font-weight: 800;
}

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

.detail-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
  margin-bottom: 28px;
}

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111827;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.play-pulse {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.18), 0 22px 42px rgba(0, 0, 0, 0.34);
}

.player-message {
  min-height: 34px;
  padding: 9px 16px;
  color: #fecdd3;
  font-size: 14px;
}

.detail-info {
  min-height: 100%;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.detail-content-grid {
  margin-bottom: 32px;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.92;
}

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

.movie-data-list div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7fb;
}

.movie-data-list dt {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.movie-data-list dd {
  margin: 7px 0 0;
  font-weight: 900;
}

.detail-side-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side-card h2 {
  margin: 18px 0 10px;
}

.detail-side-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

.related-section {
  margin-top: 32px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid #ffe4f1;
  background: rgba(255, 255, 255, 0.88);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--pink-strong);
  font-weight: 900;
}

.footer-inner p {
  width: 100%;
  margin: 0;
  color: var(--text-soft);
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .split-section,
  .ranking-layout,
  .detail-content-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: min(100% - 24px, 1180px);
    height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .page-main {
    padding-top: 64px;
  }

  .hero-section {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .inner-page,
  .detail-page {
    width: min(100% - 24px, 1180px);
  }

  .home-main .content-section {
    margin-top: 46px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-more {
    position: static;
    display: inline-flex;
    margin-top: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .detail-page {
    padding-top: 88px;
  }

  .movie-data-list {
    grid-template-columns: 1fr;
  }

  .play-pulse {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

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

  .hero-tags span:nth-child(n + 4),
  .tag-list span:nth-child(n + 4) {
    display: none;
  }

  .rank-row {
    grid-template-columns: 34px 48px minmax(0, 1fr);
  }
}
