:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --orange: #f97316;
  --blue: #3b82f6;
  --green: #10b981;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: #ffffff;
  --line: rgba(31, 41, 55, 0.1);
  --shadow: 0 24px 70px rgba(219, 39, 119, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(31, 41, 55, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #fb923c);
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #374151;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover {
  color: var(--pink);
  background: #fdf2f8;
}

.hero {
  position: relative;
  min-height: 690px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(115deg, #ec4899 0%, #fb923c 48%, #3b82f6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%), rgba(0, 0, 0, 0.18);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.75;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: 7%;
  top: 13%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: 30px;
  background: rgba(59, 130, 246, 0.28);
}

.hero-shell {
  position: relative;
  z-index: 2;
  padding: 82px 0 110px;
}

.hero-slider {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fade-up 0.55s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: #be185d;
  background: #fce7f3;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  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, var(--pink), var(--orange));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.25);
}

.hero .primary-button {
  color: var(--pink);
  background: #fff;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.ghost-button.dark {
  color: var(--pink);
  background: #fff;
}

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

.hero-art {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  transform: rotate(2deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 58%);
}

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

.hero-art:hover img {
  transform: scale(1.08);
}

.hero-art span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font-size: 28px;
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

.hero-search {
  max-width: 760px;
  margin-top: 34px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.16);
}

.hero-search input {
  min-height: 50px;
  border: 0;
  outline: none;
  padding: 0 20px;
  border-radius: 999px;
  color: #111827;
  background: #fff;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  font-weight: 800;
  cursor: pointer;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 92px;
  fill: #fff7ed;
}

.section {
  padding: 70px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 10px;
  color: #111827;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.light-heading h2,
.light-heading p,
.ranking-section .eyebrow,
.dark-hero h1,
.dark-hero p,
.dark-hero .eyebrow {
  color: #fff;
}

.section-more {
  width: fit-content;
  margin-top: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 44px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 56%);
}

.corner-tag,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.corner-tag {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(236, 72, 153, 0.82);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.movie-info {
  padding: 16px 16px 18px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info h2 a:hover {
  color: var(--pink);
}

.movie-meta,
.movie-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.movie-desc {
  min-height: 44px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.16);
}

.category-tile.large {
  min-height: 260px;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.12));
}

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

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

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

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

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

.category-chip {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(31, 41, 55, 0.1);
}

.category-chip strong,
.category-chip span {
  position: relative;
  z-index: 2;
  display: block;
}

.category-chip strong {
  font-size: 20px;
  color: #111827;
}

.category-chip span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.category-chip img {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  transform: rotate(8deg);
  opacity: 0.36;
}

.ranking-section {
  color: #fff;
  background: linear-gradient(115deg, #1f2937, #111827 45%, #831843);
}

.page-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(115deg, #ec4899, #fb923c 52%, #3b82f6);
}

.small-hero .shell {
  padding: 70px 0;
}

.dark-hero {
  background: linear-gradient(115deg, #111827, #374151 48%, #831843);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.crumbs a:hover {
  color: #fff;
}

.filter-card {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 44px rgba(31, 41, 55, 0.1);
}

.filter-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-search input,
.filter-selects select {
  min-height: 48px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 16px;
  outline: none;
  padding: 0 14px;
  color: #111827;
  background: #fff;
}

.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-search button {
  min-width: 96px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  cursor: pointer;
  font-weight: 800;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-layout {
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(-2deg);
}

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

.detail-copy h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
}

.lead-text {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 800;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 26px 80px rgba(31, 41, 55, 0.25);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  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.24), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(31, 41, 55, 0.1);
}

.content-card + .content-card {
  margin-top: 18px;
}

.content-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

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

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

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .menu-button {
    display: block;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-shell {
    padding-top: 48px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-art {
    min-height: 360px;
    transform: none;
  }

  .hero-art img {
    min-height: 360px;
  }

  .hero-search,
  .filter-search,
  .filter-selects,
  .detail-layout,
  .detail-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .catalog-grid,
  .chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-name {
    font-size: 20px;
  }

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

  .hero-actions,
  .page-actions,
  .hero-controls {
    align-items: stretch;
  }

  .primary-button,
  .ghost-button,
  .section-more {
    width: 100%;
  }

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

  .section {
    padding: 48px 0;
  }

  .small-hero .shell,
  .detail-layout {
    padding: 48px 0;
  }
}
