:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --rose-300: #fda4af;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.12);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50), #ffffff 36%, var(--pink-50));
}

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: linear-gradient(90deg, var(--pink-400), var(--pink-300), var(--rose-300));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.22);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
}

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

.brand {
  color: #ffffff;
  font-size: 24px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--pink-500);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  font-size: 14px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 10px;
}

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

.nav-search button,
.primary-button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.26);
  cursor: pointer;
}

.nav-search button {
  padding: 8px 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-bottom: 52px;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.10)), var(--hero-image);
  background-position: center;
  background-size: cover;
  transition: opacity 0.85s ease;
}

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

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.74);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

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

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.70);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section-block {
  margin-bottom: 70px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title.with-link {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-title h2,
.page-hero-lite h1,
.detail-card h1,
.detail-card h2,
.side-panel h2,
.site-footer h2 {
  margin: 0;
  color: var(--gray-800);
}

.section-title h2,
.page-hero-lite h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-title p,
.page-hero-lite p,
.site-footer p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.8;
}

.section-title a,
.category-card a,
.breadcrumb a,
.detail-meta a {
  color: var(--pink-500);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.horizontal-card,
.rank-row,
.category-card,
.category-chip,
.detail-card,
.side-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.rank-row:hover,
.category-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.movie-thumb,
.horizontal-poster,
.rank-poster,
.player-overlay {
  background-image: linear-gradient(145deg, rgba(236, 72, 153, 0.50), rgba(0, 0, 0, 0.10)), var(--poster-image);
  background-position: center;
  background-size: cover;
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.movie-card-large .movie-thumb {
  aspect-ratio: 16 / 9;
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink-500);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.00);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong,
.horizontal-info strong,
.rank-main strong {
  color: var(--gray-800);
  line-height: 1.35;
}

.movie-card:hover strong,
.horizontal-card:hover strong,
.rank-row:hover strong {
  color: var(--pink-500);
}

.movie-card-body small,
.horizontal-info small,
.rank-main small {
  color: var(--gray-500);
}

.movie-desc,
.horizontal-info span {
  color: var(--gray-500);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.highlight-panel,
.rank-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(120deg, var(--pink-100), #fff1f2);
  box-shadow: var(--shadow-soft);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 70px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--pink-100);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-chip strong,
.category-card-head strong {
  font-size: 20px;
  color: var(--gray-800);
}

.category-chip span,
.category-card-head span {
  color: var(--gray-500);
  line-height: 1.7;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.horizontal-poster {
  min-height: 118px;
}

.horizontal-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  min-width: 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  font-weight: 900;
}

.rank-poster {
  display: block;
  width: 88px;
  height: 56px;
  border-radius: 12px;
}

.rank-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.rank-score {
  color: var(--pink-500);
  font-weight: 900;
}

.page-simple {
  padding: 46px 0 72px;
}

.page-hero-lite {
  margin-bottom: 30px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(120deg, #ffffff, var(--pink-100));
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0 14px;
}

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

.category-card {
  overflow: hidden;
}

.category-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(120deg, #ffffff, var(--pink-50));
}

.category-samples {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.category-samples a {
  display: block;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  color: var(--pink-500);
}

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

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
}

.player-overlay span {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.player-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  font-size: 13px;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-card h2,
.side-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 22px;
}

.detail-card p {
  color: var(--gray-700);
  line-height: 1.95;
}

.detail-meta {
  margin: 18px 0 24px;
}

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pink-50);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-info-grid div {
  padding: 16px;
  border-radius: 16px;
  background: var(--gray-50);
}

.detail-info-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-info-grid span {
  color: var(--gray-800);
  font-weight: 800;
}

.tag-list {
  margin-top: 18px;
}

.tag-list span {
  color: var(--pink-500);
  background: var(--pink-50);
}

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

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.side-list .horizontal-card {
  grid-template-columns: 112px 1fr;
  box-shadow: none;
  border: 1px solid var(--pink-100);
}

.side-list .horizontal-poster {
  min-height: 86px;
}

.site-footer {
  background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
  border-top: 1px solid var(--pink-100);
}

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

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--gray-500);
}

.site-footer a:hover {
  color: var(--pink-500);
}

.footer-bottom {
  padding: 20px;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid var(--pink-200);
}

.is-filter-hidden {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links,
  .nav-search {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-search {
    display: none;
    margin-bottom: 12px;
  }

  .nav-links.is-open + .nav-search,
  .nav-search:focus-within {
    display: flex;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

  .home-grid,
  .feature-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title.with-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .highlight-panel,
  .rank-panel,
  .page-hero-lite {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-score {
    display: none;
  }

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

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

  .brand {
    font-size: 20px;
  }

  .hero {
    height: 500px;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .horizontal-scroller {
    grid-auto-columns: 300px;
  }

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

  .filter-bar {
    flex-direction: column;
  }

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

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