:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --gold: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --paper: #ffffff;
  --line: rgba(236, 72, 153, 0.18);
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 42%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  color: #fff;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.04);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 15px;
}

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

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.big-search input {
  border: 1px solid rgba(255, 255, 255, 0.32);
  outline: none;
  border-radius: 999px;
  padding: 10px 15px;
}

.header-search input {
  width: 220px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--pink);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.22);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-search input {
  width: 100%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
  color: #fff;
  padding-top: 32px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--pink);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-tags,
.tag-group,
.banner-chips,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-group span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 45px rgba(236, 72, 153, 0.45);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--pink);
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 48px 0 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.section-icon {
  font-size: 30px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.45), rgba(236, 72, 153, 0));
}

.rose-line {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.55), rgba(251, 113, 133, 0));
}

.gold-line {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.55), rgba(245, 158, 11, 0));
}

.orange-line {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.55), rgba(251, 146, 60, 0));
}

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

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

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

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

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

.rank-badge {
  left: 10px;
  bottom: 10px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.movie-card:hover .play-symbol {
  opacity: 1;
  background: rgba(0, 0, 0, 0.36);
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.soft-panel {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(90deg, #fce7f3, #ffe4e6, #ffedd5);
}

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 132px;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 32px;
}

.rank-panel {
  align-self: start;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.rank-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  padding: 10px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: #fdf2f8;
}

.rank-number {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
}

.rank-title {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-views {
  color: var(--muted);
  font-size: 13px;
}

.category-banner {
  border-radius: 26px;
  padding: 46px 34px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: var(--shadow);
}

.category-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.category-banner p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.banner-chips {
  justify-content: center;
}

.banner-chips a,
.filter-chip {
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.banner-chips a:hover,
.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.32);
}

.page-hero {
  padding: 54px 0 56px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
}

.page-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

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

.detail-page {
  background: linear-gradient(135deg, #fff1f2, #fff7ed 50%, #fff);
}

.detail-container {
  padding: 32px 0 10px;
}

.detail-breadcrumb {
  margin-bottom: 22px;
  color: #be185d;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
}

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

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

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-size: 35px;
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.42);
  transition: transform 0.2s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.06);
}

.detail-card {
  margin-top: 30px;
  border-radius: 20px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

.detail-title-row h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7280;
}

.detail-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f9fafb;
}

.detail-category {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 800;
}

.tag-group {
  margin-bottom: 24px;
}

.tag-group span {
  color: #be185d;
  background: #fce7f3;
  font-weight: 700;
}

.detail-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 22px;
  margin-top: 22px;
}

.detail-section h2,
.related-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.85;
}

.review-box {
  border-radius: 16px;
  border-top: 0;
  padding: 24px;
  background: linear-gradient(90deg, #fdf2f8, #fff1f2);
}

.related-section {
  margin-top: 40px;
}

.filter-bar {
  margin-bottom: 26px;
}

.filter-chip {
  color: #be185d;
  background: #fce7f3;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.page-button,
.page-ellipsis {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #374151;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  font-weight: 800;
}

.page-button.current,
.page-button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

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

.index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.index-card span {
  font-weight: 800;
  color: var(--ink);
}

.index-card strong {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--pink);
}

.search-panel {
  border-radius: 24px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.big-search input {
  width: 100%;
  border-color: #f9a8d4;
  color: var(--ink);
  background: #fff;
  font-size: 18px;
}

.big-search button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.search-status {
  margin-bottom: 18px;
  color: #be185d;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #fff;
  background: linear-gradient(90deg, #db2777, #f43f5e, #f97316);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

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

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

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

  .horizontal-grid,
  .horizontal-grid.two-column,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    height: 560px;
  }

  .hero-content {
    max-width: calc(100% - 48px);
  }

  .hero-control {
    display: none;
  }

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

  .horizontal-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .soft-panel,
  .detail-card,
  .search-panel {
    padding: 22px;
  }

  .detail-title-row {
    display: block;
  }

  .detail-category {
    display: inline-flex;
    margin-top: 18px;
  }

  .big-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-logo {
    font-size: 20px;
  }

  .movie-grid,
  .index-grid {
    grid-template-columns: 1fr;
  }

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

  .horizontal-poster {
    aspect-ratio: 16 / 9;
  }

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

  .card-content h3,
  .card-content p {
    min-height: auto;
  }
}
