:root {
  --bg: #faf7ff;
  --surface: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.24);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 14%, rgba(59, 130, 246, 0.14), transparent 34rem),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
  min-height: 70vh;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

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

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

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

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.hero-search input {
  width: 220px;
  height: 42px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.header-search input:focus,
.hero-search input:focus {
  border-color: rgba(236, 72, 153, 0.68);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.hero-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.hero-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.22);
}

.header-search button {
  height: 42px;
  padding: 0 16px;
}

.hero-search button,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-btn:hover,
.header-search button:hover,
.hero-search button:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: rgba(236, 72, 153, 0.08);
  color: var(--pink);
}

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

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(420px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.search-panel.large {
  left: 0;
  right: auto;
  width: min(620px, calc(100vw - 32px));
}

.search-panel.open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-item:hover {
  background: rgba(139, 92, 246, 0.08);
}

.search-item img {
  width: 52px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.search-item strong {
  display: block;
  color: #111827;
}

.search-item span,
.search-empty {
  color: var(--muted);
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) scale(1.08);
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.72), rgba(15, 23, 42, 0.56)),
    radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.42), transparent 28rem);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 60px;
  padding: 92px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(236, 72, 153, 0.12);
}

.hero-copy .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.32) !important;
}

.hero-dot.active {
  width: 32px !important;
  background: #ffffff !important;
}

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

.intro-block {
  margin-top: 56px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

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

.section-head.slim {
  align-items: flex-start;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.lead-text {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--purple);
  font-weight: 900;
}

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

.hero-search input {
  flex: 1;
  width: auto;
  height: 50px;
  border-radius: 18px;
}

.hero-search button {
  height: 50px;
  border-radius: 18px;
}

.hero-search.narrow {
  margin-top: 0;
}

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

.category-tile {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.8)),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.15), transparent 12rem);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(59, 130, 246, 0.16));
}

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

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

.play-mark,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.play-mark {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

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

.movie-title:hover {
  color: var(--pink);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 63px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.1);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.movie-card.compact .poster-link img {
  height: 100%;
  min-height: 142px;
}

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

.movie-card.compact p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.movie-card.compact .tag-row {
  display: none;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 28px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #581c87 52%, #1d4ed8);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 70px max(16px, calc((100% - 1180px) / 2));
}

.compact-hero {
  min-height: 300px;
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-preview,
.side-panel,
.article-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
}

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

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: blur(10px) scale(1.08);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.78), rgba(15, 23, 42, 0.7)),
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.28), transparent 30rem);
}

.detail-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 12px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.detail-one-line {
  font-size: 20px !important;
}

.detail-meta {
  margin: 22px 0;
}

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  scroll-margin-top: 88px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(2, 6, 23, 0.55));
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
}

.play-overlay.is-hidden {
  display: none;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
}

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

.article-card p {
  margin: 12px 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.side-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 48px 0 28px;
}

.footer-inner p {
  max-width: 540px;
  margin-top: 14px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .detail-grid,
  .split-section,
  .footer-inner,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero {
    display: grid;
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-poster {
    width: min(280px, 82vw);
    margin: 0 auto;
  }

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

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 58px;
    gap: 30px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .section-head {
    display: grid;
  }

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

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

  .movie-title {
    font-size: 15px;
  }

  .movie-card.compact {
    grid-template-columns: 86px 1fr;
  }

  .hero-search {
    display: grid;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

  .article-card,
  .category-preview,
  .side-panel,
  .intro-block {
    padding: 18px;
    border-radius: 22px;
  }
}
