:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --red: #f43f5e;
  --yellow: #fef08a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f4d4df;
  --paper: #ffffff;
  --soft: #fff1f2;
  --shadow: 0 22px 55px rgba(190, 24, 93, 0.16);
}

* {
  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(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 42%, #fdf2f8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.24);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

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

.nav-links a,
.mobile-panel a {
  color: #fff;
  font-weight: 700;
  opacity: 0.96;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--yellow);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.2);
}

.top-search input {
  width: 250px;
}

.top-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--pink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.large-search button:hover {
  transform: translateY(-1px);
  background: var(--yellow);
}

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

.mobile-panel {
  display: none;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.mobile-panel a {
  display: block;
  color: var(--ink);
  padding: 10px 0;
}

.mobile-panel.open {
  display: block;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #ec4899 0%, #fb7185 48%, #fb923c 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 25%),
    radial-gradient(circle at 78% 20%, rgba(254, 240, 138, 0.25), transparent 28%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.16), transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% -10%;
  height: 340px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-3deg);
  border-radius: 50% 50% 0 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.58s ease, transform 0.58s ease;
  pointer-events: none;
}

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

.hero-copy {
  color: #fff;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 10px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.15;
}

.hero p {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.detail-labels,
.card-meta,
.card-tags,
.chip-row,
.detail-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-btn,
.ghost-btn,
.category-banner a,
.cta-band a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.primary-btn.full {
  width: 100%;
  margin-top: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.category-banner a:hover,
.cta-band a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.26), transparent 48%);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.hero-poster:hover img,
.movie-card:hover img,
.rank-item:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

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

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 56px;
  background: #fff;
}

.featured-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -92px;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card,
.rank-item,
.side-card,
.detail-panel,
.filter-panel,
.search-panel,
.page-hero {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(190, 24, 93, 0.22);
}

.card-media {
  position: relative;
  display: block;
  height: 258px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

.card-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.93);
  font-size: 12px;
  font-weight: 900;
}

.rank-no {
  left: 12px;
  right: auto;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.card-body {
  padding: 17px;
}

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

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

.card-body p,
.rank-copy p,
.page-hero p,
.category-tile p,
.detail-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 54px;
}

.card-meta {
  color: #7c2d12;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.card-tags span,
.detail-labels span,
.detail-labels a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 13px;
  font-weight: 800;
}

.soft-band {
  padding: 54px 0;
  background: linear-gradient(90deg, #ffedd5, #fce7f3, #ffe4e6);
}

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

.rank-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
}

.rank-thumb {
  display: block;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rank-copy {
  position: relative;
  min-width: 0;
}

.list-rank {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 28px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  font-weight: 900;
}

.rank-title {
  display: inline;
  font-size: 18px;
  font-weight: 900;
}

.rank-copy p {
  margin: 8px 0 10px;
}

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

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

.category-tile {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.10));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.55s ease;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-banner,
.cta-band {
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  color: #fff;
}

.category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.category-banner h2,
.category-banner p {
  margin: 0;
}

.category-banner h2 {
  font-size: 32px;
}

.category-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

.category-banner a,
.cta-band a {
  color: var(--pink);
  background: #fff;
  white-space: nowrap;
}

.cta-band {
  margin-top: 30px;
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.page-main {
  padding: 34px 0 80px;
}

.page-hero {
  padding: 38px;
  margin-bottom: 28px;
}

.page-hero .eyebrow {
  color: var(--pink);
  background: #fce7f3;
  border-color: #fbcfe8;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
}

.breadcrumb-wrap {
  margin-bottom: 20px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.filter-panel .chip-row {
  grid-column: 1 / -1;
}

.filter-panel input,
.filter-panel select {
  border-radius: 16px;
  background: #fff;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #be185d;
  background: #fce7f3;
  cursor: pointer;
  font-weight: 800;
}

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

.large-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
}

.large-search input {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.28);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #030712;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.32);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  cursor: pointer;
  color: #fff;
  text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.26));
}

.player-cover.hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: #fff;
  font-size: 32px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-panel {
  margin-top: 24px;
  padding: 28px;
}

.detail-panel h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.detail-panel h2,
.side-card h2,
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-panel section {
  margin-top: 28px;
}

.detail-meta {
  padding-bottom: 22px;
  border-bottom: 1px solid #fce7f3;
  color: #7c2d12;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7ed;
  font-weight: 800;
}

.lead-text {
  font-size: 18px;
  color: #374151 !important;
  font-weight: 700;
}

.review-box {
  padding: 24px;
  border-radius: 22px;
  border-left: 5px solid var(--pink);
  background: linear-gradient(90deg, #fdf2f8, #fff1f2);
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-list.small {
  gap: 13px;
}

.rank-list.small .rank-item {
  grid-template-columns: 96px minmax(0, 1fr);
  box-shadow: none;
  border-radius: 18px;
  padding: 8px;
  background: #fff7fb;
}

.rank-list.small .rank-thumb {
  height: 72px;
}

.rank-list.small .rank-title {
  font-size: 15px;
}

.rank-list.small p,
.rank-list.small .card-meta {
  display: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

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

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 42px 0 120px;
  }

  .hero-poster {
    min-height: 320px;
    transform: none;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .hero-dots {
    bottom: 54px;
  }

  .featured-strip,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.wide,
  .rank-list.two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-strip {
    margin-top: -70px;
  }

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

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

  .category-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .brand {
    font-size: 18px;
  }

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

  .hero h2 {
    font-size: 26px;
  }

  .card-media {
    height: 238px;
  }

  .page-hero,
  .detail-panel,
  .side-card,
  .filter-panel,
  .search-panel {
    border-radius: 20px;
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    height: 82px;
  }

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