html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #fce7f3;
  box-shadow: 0 12px 40px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.brand span:last-child {
  background: linear-gradient(90deg, #ec4899, #f43f5e, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search,
.mobile-search,
.search-page-form,
.filter-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.filter-line input {
  width: 260px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-line input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.top-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  font-weight: 700;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #be185d;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #fce7f3;
}

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

.mobile-search {
  margin: 14px auto;
  max-width: 720px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.mobile-link:hover {
  color: #ec4899;
  background: #fdf2f8;
}

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.65) 48%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 999px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.11);
  font-weight: 800;
}

.hero-copy h1,
.hero-title,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(28px, 4vw, 52px);
}

.hero-copy p,
.page-hero p {
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.34);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

.section-more {
  flex: 0 0 auto;
  color: #ec4899;
  background: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.12);
}

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

.category-tile,
.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: #111827;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
}

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

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.8));
}

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

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

.category-tile p,
.category-card p {
  margin: 8px 0 0;
  color: #f9fafb;
  line-height: 1.65;
}

.category-card .category-pill {
  display: inline-flex;
  margin-top: 0;
  font-size: 14px;
}

.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

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

.compact-grid {
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.large-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(244, 63, 94, 0.16);
}

.card-cover,
.wide-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.card-cover img,
.wide-cover img,
.large-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.large-card:hover img {
  transform: scale(1.06);
}

.category-badge,
.year-badge,
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  font-size: 12px;
  font-weight: 800;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.76);
}

.play-icon,
.hover-play,
.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ec4899;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-icon,
.movie-card:hover .play-pill,
.large-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.card-body,
.wide-content {
  padding: 18px;
}

.card-body h3,
.wide-content h3,
.large-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body p,
.wide-content p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.card-body .meta-line span,
.wide-content .meta-line span {
  color: #6b7280;
  background: #fdf2f8;
}

.tag-list,
.detail-tags,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span,
.detail-tags span,
.footer-tags a {
  border-radius: 999px;
  padding: 5px 10px;
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.soft-panel {
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.78), rgba(252, 231, 243, 0.78), rgba(255, 237, 213, 0.78));
}

.blue-panel {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(238, 242, 255, 0.95), rgba(250, 245, 255, 0.95));
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 280px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.large-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.large-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.9));
}

.large-card h3,
.large-card p {
  color: #fff;
}

.large-card p {
  margin: 0;
  line-height: 1.7;
}

.large-card .meta-line span {
  background: rgba(255, 255, 255, 0.15);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 60px 132px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  padding: 14px 18px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 22px;
  font-weight: 900;
}

.rank-number.top-rank {
  color: #fff;
  background: linear-gradient(135deg, #facc15, #fb923c);
}

.rank-row img {
  width: 132px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 6px;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.rank-info em {
  color: #6b7280;
  font-style: normal;
  line-height: 1.6;
}

.rank-meta {
  color: #be185d;
  background: #fdf2f8;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.page-hero {
  margin-top: 48px;
  padding: 46px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.65), transparent 30%), linear-gradient(135deg, #881337, #9f1239 48%, #c2410c);
  box-shadow: 0 24px 70px rgba(136, 19, 55, 0.22);
}

.small-hero h1 {
  max-width: 860px;
}

.small-hero p {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.detail-shell .breadcrumb {
  color: #9f1239;
}

.detail-shell .breadcrumb a {
  color: #be185d;
}

.filter-line {
  justify-content: flex-end;
  margin-bottom: 24px;
}

.filter-line input {
  width: min(420px, 100%);
}

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

.search-page-form input {
  width: min(620px, 100%);
}

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

.detail-shell {
  padding: 26px 0 0;
}

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

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

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(17, 24, 39, 0.64));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ec4899;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.detail-info {
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(244, 63, 94, 0.1);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  color: #111827;
}

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

.detail-meta span {
  color: #6b7280;
  background: #fff1f2;
}

.detail-text {
  max-width: 960px;
}

.detail-text h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.detail-text h2:not(:first-child) {
  margin-top: 34px;
}

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

.site-footer {
  margin-top: 42px;
  color: #fff;
  background: linear-gradient(135deg, #881337, #9d174d 48%, #c2410c);
}

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

.site-footer p {
  margin: 16px 0 0;
  color: #ffe4e6;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 9px 0;
}

.site-footer a {
  color: #ffe4e6;
  text-decoration: none;
}

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

.footer-tags a {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding: 18px 16px;
  color: #ffe4e6;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .hero {
    height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.92));
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 92px 1fr;
  }

  .rank-row img {
    width: 92px;
    height: 62px;
  }

  .rank-meta {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .page-hero {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
  }

  .detail-info {
    padding: 22px;
  }

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