:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.76);
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.18);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 48%, #3b82f6 100%);
  --hero-gradient: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.28), transparent 32%),
                   radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.26), transparent 28%),
                   linear-gradient(135deg, #fff1f8 0%, #f4edff 44%, #eaf5ff 100%);
  --shadow-sm: 0 10px 28px rgba(139, 92, 246, 0.10);
  --shadow-md: 0 18px 44px rgba(139, 92, 246, 0.16);
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--brand-gradient);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.08);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  min-width: 260px;
}

.header-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 2px solid #f9c7df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 44px 11px 18px;
}

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

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-gradient);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.08);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 42px;
  background: var(--hero-gradient);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 38px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.30);
}

.btn-soft {
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(124, 58, 237, 0.14);
}

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

.stat-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  perspective: 1100px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  opacity: 0;
  transform: translateX(30px) scale(0.96);
  background: #111827;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.24);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px 26px 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52) 64%, rgba(17, 24, 39, 0));
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
}

.hero-slide-content p {
  display: -webkit-box;
  max-width: 560px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #fce7f3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.hero-tags span,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.slider-dots {
  position: absolute;
  left: 26px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.slider-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section {
  padding: 46px 0;
}

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

.section-kicker {
  margin: 0 0 4px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 6px 0 0;
  max-width: 720px;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.36);
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(59, 130, 246, 0.12));
}

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

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.play-float {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--brand-gradient);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.30);
}

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

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

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

.card-summary {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-link {
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 22px;
  color: #ffffff;
  background: var(--brand-gradient);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.category-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-card strong {
  position: relative;
  font-size: 30px;
  line-height: 1;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.rank-list,
.info-panel,
.search-panel,
.detail-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.rank-list {
  padding: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: rgba(236, 72, 153, 0.06);
  transform: translateX(3px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--brand-gradient);
  border-radius: 14px;
  font-weight: 950;
}

.rank-thumb {
  overflow: hidden;
  width: 74px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(59, 130, 246, 0.12));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 950;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.info-panel {
  padding: 22px;
}

.info-panel h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 950;
}

.info-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-panel li + li {
  margin-top: 10px;
}

.page-hero {
  padding: 54px 0 36px;
  background: var(--hero-gradient);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

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

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

.page-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-desc {
  max-width: 820px;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.search-panel {
  padding: 18px;
}

.search-panel input {
  min-height: 54px;
  padding: 0 18px;
  font-size: 18px;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  padding: 36px 0 16px;
  background: var(--hero-gradient);
}

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

.detail-cover {
  overflow: hidden;
  background: #ffffff;
  border: 10px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(59, 130, 246, 0.12));
}

.detail-title {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

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

.meta-pill {
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.9);
}

.meta-pill:nth-child(2n) {
  color: #5b21b6;
  background: rgba(237, 233, 254, 0.9);
}

.meta-pill:nth-child(3n) {
  color: #075985;
  background: rgba(224, 242, 254, 0.9);
}

.player-shell {
  overflow: hidden;
  background: #0f172a;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.28));
  border: 0;
  cursor: pointer;
}

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

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
  background: var(--brand-gradient);
  border-radius: 999px;
  box-shadow: 0 20px 46px rgba(236, 72, 153, 0.34);
  font-size: 34px;
}

.play-overlay strong {
  display: block;
  font-size: 22px;
}

.player-message {
  min-height: 24px;
  padding: 12px 16px;
  color: #fce7f3;
  background: rgba(15, 23, 42, 0.96);
  font-size: 14px;
}

.detail-panel {
  padding: 26px;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 950;
}

.detail-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-panel p + p {
  margin-top: 14px;
}

.tag {
  color: #831843;
  background: rgba(252, 231, 243, 0.92);
}

.footer {
  margin-top: 60px;
  color: #ffffff;
  background: var(--brand-gradient);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 28px;
  padding: 44px 0;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 950;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.86);
}

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

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hide-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-slider {
    min-height: 500px;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero {
    padding-top: 34px;
  }

  .hero-stats,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-title,
  .page-title,
  .detail-title {
    letter-spacing: -0.045em;
  }

  .hero-slider {
    min-height: 430px;
  }

  .hero-slide {
    border-width: 6px;
    border-radius: 26px;
  }

  .hero-slide-content {
    padding: 100px 18px 20px;
  }

  .hero-slide-content h2 {
    font-size: 24px;
  }

  .category-grid,
  .movie-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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