:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --soft: #fff1f2;
  --paper: #ffffff;
  --shadow: 0 20px 50px rgba(190, 18, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.site-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
  font-size: 14px;
}

.site-brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  color: #374151;
}

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

.site-nav a:hover,
.mobile-menu a:hover {
  color: var(--rose);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 180px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--rose-dark);
  padding: 10px 12px;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu.open {
  display: grid;
  gap: 12px;
}

main {
  padding-top: 72px;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fffbeb 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}

.hero-blob {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 999px;
  mix-blend-mode: multiply;
  filter: blur(42px);
  animation: blobMove 8s infinite;
}

.blob-one {
  top: 8%;
  left: 8%;
  background: #fda4af;
}

.blob-two {
  top: 20%;
  right: 10%;
  background: #f9a8d4;
  animation-delay: 2s;
}

.blob-three {
  bottom: 8%;
  left: 28%;
  background: #fcd34d;
  animation-delay: 4s;
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -42px) scale(1.08);
  }
  66% {
    transform: translate(-24px, 28px) scale(0.94);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 54px;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 58px;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 16px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.12);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #e11d48, #ec4899, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #1f2937;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button,
.section-action {
  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, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 30px rgba(244, 63, 94, 0.24);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(244, 63, 94, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.section-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 36px 70px rgba(190, 18, 60, 0.22);
  background: #fff1f2;
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.62));
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.soft-panel {
  max-width: none;
  background: rgba(255, 241, 242, 0.78);
}

.soft-panel .section-heading,
.soft-panel .category-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action {
  min-height: 42px;
  padding: 0 18px;
  color: var(--rose);
  background: #ffffff;
  border: 1px solid #fecdd3;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff1f2;
}

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

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

.movie-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.movie-title:hover {
  color: var(--rose);
}

.movie-meta {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-weight: 700;
  font-size: 13px;
}

.movie-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--rose-dark);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  display: block;
  border-radius: 28px;
  padding: 26px;
  color: #111827;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  margin-bottom: 18px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.rank-table {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.08);
  overflow: hidden;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
}

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

.rank-panel-head a {
  color: var(--rose);
  font-weight: 800;
}

.rank-list,
.rank-table {
  display: grid;
}

.rank-item,
.rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid #fff1f2;
  transition: background 0.2s ease;
}

.rank-item {
  grid-template-columns: 34px 58px 1fr auto;
}

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

.rank-item:hover,
.rank-row:hover {
  background: #fff7f8;
}

.rank-number {
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-item img,
.rank-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #fff1f2;
}

.rank-info strong {
  display: block;
  color: #111827;
  line-height: 1.4;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.rank-score {
  color: var(--rose-dark);
  font-weight: 900;
}

.page-main {
  padding-top: 112px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 44px;
  text-align: center;
}

.small-page-hero,
.category-page-hero {
  border-radius: 0 0 40px 40px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  background: linear-gradient(90deg, #e11d48, #ec4899, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.centered-actions {
  justify-content: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 0.22fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 14px 16px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-dark);
  font-weight: 700;
}

.detail-main {
  padding-top: 112px;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 46px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 34px;
  overflow: hidden;
  background: #fff1f2;
  box-shadow: 0 34px 70px rgba(190, 18, 60, 0.2);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0;
  max-width: 820px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}

.detail-meta-grid span {
  border-radius: 18px;
  padding: 14px;
  color: var(--rose-dark);
  background: #fff1f2;
  font-weight: 800;
  text-align: center;
}

.detail-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.detail-section h2 {
  margin: 28px 0 14px;
  font-size: 28px;
}

.detail-text {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 2;
}

.player-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

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

.player-start-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.32);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.genre-tags {
  margin-top: 6px;
}

.site-footer {
  margin-top: 56px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--rose);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid #fecdd3;
  color: var(--muted);
  text-align: center;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

  .hero-poster {
    min-height: auto;
  }

  .hero-poster img {
    height: 440px;
  }

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

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

@media (max-width: 820px) {
  .site-header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .site-brand-text {
    font-size: 19px;
  }

  .header-search {
    display: none;
  }

  main,
  .page-main,
  .detail-main {
    padding-top: 68px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 16px 44px;
  }

  .hero-slide.active {
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-poster img {
    height: 360px;
  }

  .content-section,
  .page-hero,
  .detail-hero,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid,
  .compact-grid,
  .feature-grid,
  .all-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .compact-grid,
  .feature-grid,
  .all-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .rank-row,
  .rank-item {
    grid-template-columns: 32px 56px 1fr;
  }

  .rank-score {
    display: none;
  }

  .player-card {
    border-radius: 22px;
  }
}
