:root {
  --pink: #ec4899;
  --sky: #38bdf8;
  --emerald: #34d399;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.42), #ffffff 42%, rgba(240, 249, 255, 0.62));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-form input,
.filter-form select {
  border: 1px solid transparent;
  outline: none;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 230px;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-form input:focus,
.filter-form select:focus {
  background: #ffffff;
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.filter-form button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.filter-form button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.secondary-btn {
  color: #374151;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #374151;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #4b5563;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
  z-index: -1;
}

.hero::before {
  width: 430px;
  height: 430px;
  left: -130px;
  top: 80px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38), transparent 66%);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -180px;
  top: 40px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36), transparent 66%);
}

.hero-track {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #be185d;
  background: rgba(252, 231, 243, 0.92);
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}

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

.hero-copy p {
  max-width: 660px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-info em {
  color: #6b7280;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(229, 231, 235, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-art {
  position: relative;
  min-height: 500px;
}

.hero-poster {
  position: absolute;
  inset: 34px 0 40px 64px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #f3f4f6;
  transform: rotate(2.2deg);
}

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

.hero-slide.active .hero-poster img {
  transform: scale(1.04);
}

.hero-glass {
  position: absolute;
  left: 0;
  bottom: 62px;
  width: 78%;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(15, 23, 42, 0.35));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

.hero-glass strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: #cbd5e1;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

main,
.section,
.page-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 42px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.category-chip em,
.card-body p,
.article-body p {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.play-dot {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--pink);
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
  font-size: 12px;
}

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

.category-chip {
  min-height: 138px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.92), rgba(240, 249, 255, 0.94), rgba(236, 253, 245, 0.82));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.category-chip span {
  font-size: 20px;
  font-weight: 800;
}

.category-chip strong {
  color: var(--pink);
  font-size: 30px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.rank-item:hover {
  border-color: rgba(236, 72, 153, 0.38);
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.rank-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

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

.rank-info strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-info em {
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-title {
  padding: 46px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.82), rgba(240, 249, 255, 0.92), rgba(236, 253, 245, 0.76));
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.filter-bar {
  margin: 10px 0 24px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.88);
}

.filter-form {
  flex-wrap: wrap;
}

.filter-form input {
  flex: 1 1 260px;
}

.filter-form select {
  min-width: 160px;
}

.detail-hero {
  padding: 34px 0 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
}

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

.player-card,
.detail-side,
.article-body {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.28);
  font-size: 32px;
  padding-left: 5px;
}

.player-caption {
  padding: 20px 24px 24px;
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-side {
  padding: 20px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #f3f4f6;
}

.article-body {
  margin-top: 28px;
  padding: 30px;
}

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

.article-body p + h2 {
  margin-top: 30px;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(135deg, #fdf2f8, #f0f9ff, #ecfdf5);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

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

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: #64748b;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: #64748b;
  border-top: 1px solid rgba(229, 231, 235, 0.85);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  color: #64748b;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

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

  .menu-toggle {
    display: block;
  }

  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 86px;
  }

  .hero-slide {
    position: relative;
    grid-template-columns: 1fr;
    display: none;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-art {
    min-height: 420px;
  }

  .hero-poster {
    inset: 10px 12px 54px 52px;
  }

  .hero-glass {
    width: 84%;
    bottom: 28px;
  }

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

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

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

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

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

  .hero-copy h1 {
    font-size: 42px;
  }

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

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

  .hero-art {
    min-height: 360px;
  }

  .hero-poster {
    inset: 0 0 68px 18px;
    border-radius: 26px;
  }

  .hero-glass {
    left: 0;
    right: 0;
    width: auto;
    padding: 18px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .rank-item {
    grid-template-columns: 38px 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .page-title,
  .article-body {
    padding: 24px;
  }
}
