:root {
  --rose-50: #fff1f4;
  --rose-100: #ffe4ec;
  --rose-200: #fecdd9;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --slate-950: #140817;
  --slate-900: #25101f;
  --slate-700: #51415a;
  --text: #2d1f2f;
  --muted: #725d70;
  --line: rgba(244, 63, 94, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(219, 39, 119, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f4 0%, #ffffff 42%, #ffe4ec 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(219, 39, 119, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500), var(--pink-600));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select,
.hero-search input {
  width: 100%;
  border: 2px solid var(--rose-200);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.hero-search input:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-panel button,
.hero-search button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.28);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--slate-700);
  background: var(--rose-50);
  font-weight: 800;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec, #fff1f4);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 8, 23, 0.88), rgba(20, 8, 23, 0.42) 52%, rgba(20, 8, 23, 0.1)), linear-gradient(0deg, rgba(20, 8, 23, 0.6), transparent 44%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 110px;
  width: min(640px, calc(100% - 48px));
  color: #fff;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pink-600);
  background: var(--rose-50);
}

.hero-tags span {
  color: #fff;
  background: rgba(236, 72, 153, 0.82);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 56px;
  display: flex;
  gap: 10px;
}

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

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

.hero-search {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  display: flex;
  gap: 10px;
  width: min(460px, calc(100% - 48px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

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

.tinted-section {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(255, 241, 244, 0.88), rgba(255, 228, 236, 0.7));
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.detail-line,
.movie-desc,
.detail-text p,
.ranking-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.section-more,
.text-link,
.filter-bar a {
  color: var(--pink-600);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(219, 39, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff);
}

.poster-link img,
.ranking-poster img,
.detail-poster img,
.category-images img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.5s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-card h3 {
  min-height: 2.8em;
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.movie-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-desc {
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card,
.category-overview-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card strong,
.category-overview-card p {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.8;
}

.category-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 180px;
  margin-bottom: 18px;
}

.category-images img {
  border-radius: 16px;
  background: var(--rose-100);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.06);
}

.rank-item span {
  color: var(--pink-600);
  font-weight: 900;
  font-size: 20px;
}

.rank-item img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.rank-item strong {
  display: block;
  color: var(--slate-900);
}

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

.page-shell {
  min-height: 70vh;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  border-radius: 34px;
  padding: 54px;
  background: radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.22), transparent 28%), linear-gradient(135deg, #fff, var(--rose-50));
  box-shadow: var(--shadow);
}

.page-hero.small-hero p {
  max-width: 780px;
  margin: 14px 0 0;
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.08);
}

.advanced-filter input {
  flex: 1 1 auto;
}

.advanced-filter select {
  width: 220px;
  border-radius: 18px;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
}

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

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 80px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.08);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.ranking-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 22px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 34px;
  padding: 34px;
  background: radial-gradient(circle at 16% 18%, rgba(244, 63, 94, 0.22), transparent 30%), linear-gradient(135deg, #fff, var(--rose-50));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: var(--rose-100);
  box-shadow: 0 18px 40px rgba(20, 8, 23, 0.18);
}

.detail-info h1 {
  margin: 8px 0 14px;
}

.detail-line {
  margin: 0 0 20px;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 24px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 24px 70px rgba(20, 8, 23, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(0deg, rgba(20, 8, 23, 0.76), rgba(20, 8, 23, 0.36));
  cursor: pointer;
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 42px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
}

.video-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 36px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.detail-text {
  display: grid;
  gap: 16px;
}

.detail-text h2 {
  margin: 18px 0 0;
  color: var(--slate-900);
  font-size: 28px;
  font-weight: 900;
}

.detail-text p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fff1f4, #ffe4ec);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 900;
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--pink-600);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero {
    height: 640px;
  }

  .hero-content {
    bottom: 158px;
  }

  .hero-search {
    left: 24px;
    right: 24px;
    bottom: 36px;
    width: auto;
  }

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

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

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

  .detail-poster {
    width: min(260px, 100%);
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .logo-text strong {
    font-size: 19px;
  }

  .hero {
    height: 660px;
  }

  .hero-content {
    left: 18px;
    bottom: 172px;
    width: calc(100% - 36px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-dots {
    left: 18px;
    bottom: 124px;
  }

  .hero-search {
    left: 14px;
    right: 14px;
    flex-direction: column;
    border-radius: 24px;
  }

  .section-head,
  .filter-bar,
  .mobile-panel form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

  .ranking-card {
    grid-template-columns: 56px 82px 1fr;
    gap: 12px;
  }

  .ranking-index {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 14px;
  }
}
