:root {
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #facc15;
  --rose: #fff1f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1f5f9;
  --card: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.main-nav > a,
.nav-dropdown > button {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.main-nav > a::after,
.nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav > a:hover,
.main-nav > a[aria-current="page"],
.nav-dropdown:hover > button {
  color: var(--pink);
}

.main-nav > a:hover::after,
.main-nav > a[aria-current="page"]::after,
.nav-dropdown:hover > button::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 340px;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  background: #fff7ed;
}

.nav-dropdown-panel a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--pink);
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.75) 0 2px, transparent 3px);
  background-size: 54px 54px;
}

.hero-stage {
  position: relative;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 70px 24px 92px;
}

.hero-slide {
  position: absolute;
  inset: 0 24px 70px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 58px;
  opacity: 0;
  transform: translateX(32px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

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

.hero-eyebrow,
.page-hero > span,
.section-heading > span,
.story-card > span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 50px rgba(124, 45, 18, 0.28);
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
  margin-top: 0;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.9;
}

.hero-meta,
.detail-meta,
.movie-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-meta span,
.hero-meta strong,
.detail-meta span,
.detail-meta strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.2);
}

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

.primary-button:hover,
.ghost-button:hover,
.site-search button:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fdf2f8, #fed7aa 54%, #fef08a);
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.2);
}

.poster-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 92px;
  font-weight: 950;
  text-shadow: 0 16px 40px rgba(124, 45, 18, 0.22);
}

.hero-poster {
  height: 520px;
  border: 10px solid rgba(255, 255, 255, 0.35);
  border-radius: 36px;
  transform: rotate(-2deg);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.search-band,
.content-section,
.catalog-tools,
.ranking-list,
.detail-content,
.player-section,
.prev-next {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-band {
  margin-top: -46px;
  position: relative;
  z-index: 3;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-band span {
  color: var(--pink);
  font-weight: 900;
}

.search-band h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.site-search {
  display: flex;
  gap: 12px;
}

.site-search input,
.catalog-tools input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--ink);
  outline: none;
  background: #fff7ed;
}

.site-search input:focus,
.catalog-tools input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.site-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  cursor: pointer;
}

.content-section {
  padding-top: 78px;
  padding-bottom: 34px;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading > span,
.story-card > span,
.page-hero > span {
  color: var(--pink);
  background: #fff1f2;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #db2777, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(236, 72, 153, 0.18);
}

.movie-poster-link {
  position: relative;
  display: block;
}

.movie-card .poster-frame {
  height: 330px;
  border-radius: 0;
  box-shadow: none;
}

.compact-grid .poster-frame {
  height: 250px;
}

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

.play-badge {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 44px;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

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

.movie-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.movie-card-meta strong {
  margin-left: auto;
  color: var(--orange);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--pink);
}

.movie-card p {
  margin: 0;
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  background: #fff1f2;
}

.category-cloud,
.soft-panel {
  max-width: none;
  padding-left: calc((100% - 1280px) / 2 + 24px);
  padding-right: calc((100% - 1280px) / 2 + 24px);
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.category-pill-grid,
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill,
.category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #9d174d;
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
}

.category-pill:hover,
.category-strip a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.page-hero {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 82px 24px;
  border-radius: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316 58%, #facc15);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.85;
}

.small-hero,
.category-hero {
  padding-left: 48px;
  padding-right: 48px;
}

.catalog-tools {
  padding-top: 34px;
  display: grid;
  gap: 18px;
}

.catalog-tools input {
  max-width: 620px;
}

.catalog-section {
  padding-top: 32px;
}

.ranking-list {
  padding-top: 38px;
  padding-bottom: 70px;
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) 90px 120px minmax(160px, 1fr) 70px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.ranking-index {
  color: var(--pink);
  font-weight: 950;
}

.ranking-title {
  font-size: 18px;
  font-weight: 900;
}

.ranking-row span {
  color: var(--muted);
}

.ranking-row strong {
  color: var(--orange);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #831843, #ea580c 58%, #facc15);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  filter: blur(10px);
  transform: scale(1.08);
}

.detail-bg .poster-frame {
  height: 100%;
  border-radius: 0;
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.detail-poster {
  height: 500px;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.inline-actions {
  margin-top: 26px;
}

.player-section {
  padding-top: 50px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.36);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.player-button span {
  font-size: 24px;
}

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

.detail-content {
  padding-top: 46px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
}

.story-card {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

.accent-card {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.story-card h2 {
  margin: 16px 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.prev-next {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prev-next a {
  padding: 12px 16px;
  border-radius: 16px;
  color: #be185d;
  font-weight: 800;
  background: #fff1f2;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
  gap: 36px;
}

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

.site-footer h3 {
  margin: 0 0 16px;
  color: #f9a8d4;
}

.site-footer p {
  margin: 18px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #d1d5db;
}

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

.is-filtered-out {
  display: none !important;
}

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

  .hero-slide,
  .detail-shell,
  .detail-content,
  .search-band {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .ranking-row {
    grid-template-columns: 92px minmax(160px, 1fr) 70px 70px;
  }

  .ranking-row span:nth-of-type(3) {
    display: none;
  }
}

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

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy em {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-dropdown-panel {
    position: static;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    padding: 8px 0 0;
  }

  .hero-slider,
  .hero-stage {
    min-height: auto;
  }

  .hero-stage {
    padding: 36px 16px 76px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    height: 430px;
    max-width: none;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .search-band,
  .content-section,
  .catalog-tools,
  .ranking-list,
  .detail-content,
  .player-section,
  .prev-next {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-band {
    margin-left: 12px;
    margin-right: 12px;
  }

  .site-search {
    flex-direction: column;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card .poster-frame,
  .compact-grid .poster-frame {
    height: 240px;
  }

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

  .movie-card h3 {
    font-size: 17px;
  }

  .movie-card p {
    display: none;
  }

  .page-hero,
  .small-hero,
  .category-hero {
    margin: 22px 12px 0;
    padding: 44px 20px;
    border-radius: 26px;
  }

  .detail-shell {
    padding: 42px 16px;
  }

  .detail-poster {
    height: 430px;
    max-width: none;
  }

  .story-card {
    padding: 24px;
  }

  .ranking-row {
    grid-template-columns: 82px minmax(0, 1fr) 54px;
    gap: 8px;
  }

  .ranking-row span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 42px 16px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card .poster-frame,
  .compact-grid .poster-frame {
    height: 360px;
  }
}
