:root {
  --marshmallow-pink: #ffb6c1;
  --marshmallow-blue: #87ceeb;
  --marshmallow-cream: #fff8dc;
  --marshmallow-mint: #98d8c8;
  --marshmallow-peach: #ffdab9;
  --ink: #25283a;
  --muted: #6b7280;
  --soft-line: rgba(148, 163, 184, 0.24);
  --card: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-soft-lg: 0 4px 25px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, var(--marshmallow-cream) 0%, #ffffff 46%, rgba(255, 182, 193, 0.16) 100%);
}

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

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

button,
input {
  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.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
  box-shadow: 0 10px 22px rgba(255, 182, 193, 0.45);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #e85a82, #3393c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4b5563;
  font-size: 15px;
}

.site-nav a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-panel a:hover,
.text-link:hover,
.movie-title:hover,
.rank-title:hover {
  color: #e85a82;
}

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

.header-search input,
.search-page-form input,
.local-filter input {
  width: 240px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-page-form input:focus,
.local-filter input:focus {
  border-color: var(--marshmallow-pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.22);
}

.header-search button,
.search-page-form button,
.filter-row button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: #e85a82;
  box-shadow: 0 12px 20px rgba(232, 90, 130, 0.24);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 18px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: #e85a82;
}

.mobile-panel.is-open {
  display: flex;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 182, 193, 0.34), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(135, 206, 235, 0.35), transparent 25%),
    linear-gradient(135deg, rgba(255, 182, 193, 0.24), rgba(255, 248, 220, 0.45), rgba(135, 206, 235, 0.24));
}

.hero-section::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: radial-gradient(rgba(255, 182, 193, 0.55) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 520px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  min-height: 500px;
  animation: fadeUp 0.5s ease both;
}

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

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #e85a82;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 182, 193, 0.18);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info .lead-text {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #e85a82;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 182, 193, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #e85a82, #58a8d6);
  box-shadow: 0 16px 32px rgba(232, 90, 130, 0.24);
}

.primary-button.small {
  padding: 9px 15px;
  font-size: 14px;
}

.ghost-button {
  padding: 12px 22px;
  color: #e85a82;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 182, 193, 0.48);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(31, 41, 55, 0.18);
  aspect-ratio: 16 / 10;
  background: #ffffff;
}

.hero-poster img,
.movie-thumb img,
.rank-cover img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img,
.movie-card:hover .movie-thumb img,
.rank-item:hover .rank-cover img {
  transform: scale(1.06);
}

.hero-poster::after,
.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 52%);
  pointer-events: none;
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.58);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 8px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(232, 90, 130, 0.25);
}

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

.section-block {
  padding: 54px 0;
}

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

.section-heading.compact {
  align-items: flex-start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.03em;
}

.text-link {
  color: #e85a82;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-soft-lg);
}

.movie-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255, 182, 193, 0.16);
}

.duration-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.66);
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-card-body p,
.rank-item p,
.category-card-large p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(135, 206, 235, 0.18);
}

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

.movie-card-horizontal .movie-thumb {
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 128px;
  border-radius: var(--radius-md);
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 182, 193, 0.13));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.ranking-panel,
.content-panel,
.player-card,
.detail-info,
.category-card-large {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #e85a82, #58a8d6);
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: rgba(255, 182, 193, 0.16);
}

.rank-title {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
}

.rank-heat {
  color: #e85a82;
  font-size: 13px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(135, 206, 235, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(255, 248, 220, 0.56));
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 760px;
}

.two-column-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: center;
}

.mini-feature-list {
  display: grid;
  gap: 14px;
}

.mini-feature-list .movie-card-horizontal {
  grid-template-columns: 132px minmax(0, 1fr);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-row button {
  color: #e85a82;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  border: 1px solid rgba(255, 182, 193, 0.34);
}

.filter-row button.is-active {
  color: #ffffff;
  background: #e85a82;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-covers img {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 182, 193, 0.16);
}

.category-card-large h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.ranking-page-list {
  display: grid;
  gap: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ranking-index {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #e85a82, #58a8d6);
  box-shadow: var(--shadow-soft);
}

.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
  width: auto;
  padding: 14px 18px;
}

.search-page-form button {
  padding: 14px 24px;
}

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

.breadcrumb a {
  color: #e85a82;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: stretch;
}

.player-card {
  padding: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.78));
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding-left: 5px;
  color: #e85a82;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.player-overlay strong {
  font-size: clamp(22px, 3vw, 36px);
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  font-size: clamp(34px, 4vw, 58px);
}

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

.detail-tags {
  margin-bottom: 24px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.content-panel {
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(135, 206, 235, 0.1));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0;
}

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

.footer-grid a {
  display: block;
  margin: 6px 0;
}

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

.footer-bottom {
  padding: 18px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.is-filtered-out {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .two-column-hero,
  .detail-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    position: relative;
    margin-top: 22px;
  }

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

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

  .category-list-large {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

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

  .hero-section,
  .page-hero,
  .detail-hero {
    padding: 38px 0;
  }

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

  .hero-slide {
    gap: 28px;
  }

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

  .movie-card-horizontal,
  .mini-feature-list .movie-card-horizontal,
  .category-card-large,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-thumb {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-filter,
  .local-filter input,
  .search-page-form {
    width: 100%;
  }

  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-item {
    grid-template-columns: 38px 74px minmax(0, 1fr);
  }

  .detail-info,
  .content-panel,
  .ranking-panel {
    padding: 20px;
  }
}
