:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #eef2ff;
  --line: #e5e7eb;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --blue: #3b82f6;
  --red: #dc2626;
  --orange: #f97316;
  --green: #10b981;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f9fafb 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(239, 246, 255, 0.96), rgba(240, 253, 244, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.logo-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav > a,
.nav-dropdown > a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown:hover > a {
  color: var(--pink-dark);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 8px;
  width: 300px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
  transition: 0.2s ease;
}

.dropdown-panel a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 16px;
  transition: 0.2s ease;
}

.header-search input {
  width: 245px;
}

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

.header-search button,
.big-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.24);
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button:hover,
.big-search button:hover,
.primary-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.25);
}

.primary-btn.small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-nav a {
  display: inline-flex;
  margin: 12px 12px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.1s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(236, 72, 153, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 72px 0;
}

.hero-content h1 {
  max-width: 800px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.8;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.14);
  font-weight: 900;
}

.hero-tags,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

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

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

.hero-controls > button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 28px;
  cursor: pointer;
}

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

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

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

.search-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 4;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-strip strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.search-strip span {
  color: var(--muted);
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  width: 100%;
}

.category-strip,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.category-strip a,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 116px;
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff 60%, #fdf2f8);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: 0.2s ease;
}

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

.category-strip strong,
.category-overview-card strong {
  font-size: 20px;
  font-weight: 900;
}

.category-strip span,
.category-overview-card span {
  color: var(--muted);
  line-height: 1.6;
}

.page-section {
  padding: 58px 0;
}

.highlight-section {
  background: linear-gradient(90deg, #fdf2f8, #eff6ff, #ecfdf5);
}

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

.section-heading span {
  color: var(--pink-dark);
  font-weight: 900;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--pink-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
  transition: 0.24s ease;
}

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

.poster-link,
.feature-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #111827, #374151);
}

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

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

.category-badge,
.duration-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.category-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: var(--pink);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-number {
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 36px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f3f4f6;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 132px;
}

.horizontal-card .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

.horizontal-card .card-title {
  min-height: auto;
}

.feature-card .feature-poster {
  aspect-ratio: 16 / 11;
}

.feature-card .card-title {
  font-size: 22px;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

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

.home-ranking .horizontal-card:nth-child(-n + 3) .rank-number {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.page-hero {
  color: #ffffff;
  padding: 78px 0;
}

.page-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.gradient-red {
  background: linear-gradient(135deg, #be123c, #f97316);
}

.gradient-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-dark {
  background:
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.36), transparent 30%),
    linear-gradient(135deg, #111827, #374151);
}

.category-overview-grid {
  margin-top: 0;
}

.category-preview {
  margin-bottom: 46px;
}

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

.category-preview-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
}

.category-preview-head a {
  color: var(--pink-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
}

.empty-state {
  display: none;
  margin: 24px 0;
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
}

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

.player-band {
  padding: 24px 0 42px;
  background: #030712;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.4);
  font-size: 36px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 38px 0 70px;
}

.detail-card,
.side-card {
  border-radius: 22px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.detail-kicker {
  color: var(--pink-dark);
  font-weight: 900;
}

.detail-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  color: #4b5563;
  background: #f3f4f6;
}

.one-line {
  border-left: 4px solid var(--pink);
  border-radius: 14px;
  margin: 0 0 26px;
  padding: 16px 18px;
  color: #4b5563;
  background: linear-gradient(90deg, #fdf2f8, #eff6ff);
  font-weight: 700;
  line-height: 1.8;
}

.detail-card section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 950;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.detail-sidebar {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 100px;
}

.side-related {
  display: grid;
  gap: 14px;
}

.side-related .horizontal-card {
  grid-template-columns: 124px 1fr;
  min-height: 92px;
  border-radius: 14px;
  box-shadow: none;
}

.side-related .card-body {
  padding: 10px;
}

.side-related .card-title {
  font-size: 14px;
  min-height: auto;
}

.side-related .card-body p {
  display: none;
}

.side-related .card-meta span:nth-child(n + 3) {
  display: none;
}

.more-related {
  padding-bottom: 0;
}

.all-search-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo .logo-text strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 9px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

  .side-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 66px;
  }

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    padding: 54px 0 86px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.68));
  }

  .search-strip,
  .big-search,
  .section-heading,
  .detail-title-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .category-strip,
  .category-overview-grid,
  .movie-grid,
  .feature-grid,
  .horizontal-grid,
  .ranking-list,
  .all-search-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 132px 1fr;
  }

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

  .page-section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 56px 0;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }
}

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

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .logo-text small {
    display: none;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-actions a {
    width: 100%;
  }

  .horizontal-card,
  .side-related .horizontal-card {
    grid-template-columns: 112px 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 16px;
  }
}
