:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --indigo-600: #4f46e5;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 26px rgba(225, 29, 72, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 45%, var(--rose-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.96), rgba(255, 241, 242, 0.96));
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-800);
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: var(--soft-shadow);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

.brand-text small {
  color: var(--slate-500);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-700);
  background: rgba(244, 63, 94, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(236, 72, 153, 0.38), transparent 30%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.12) 46%, rgba(15, 23, 42, 0.55));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin-top: 16px;
  font-size: clamp(26px, 4vw, 44px);
}

.hero-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  color: #ffe4e6;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.primary-button {
  padding: 14px 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 18px 35px rgba(225, 29, 72, 0.35);
}

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

.ghost-button {
  padding: 13px 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  color: var(--white);
  background: rgba(225, 29, 72, 0.88);
  backdrop-filter: blur(12px);
}

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

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

.hero-dots button.is-active {
  background: var(--white);
}

.quick-search {
  position: relative;
  margin-top: -38px;
  z-index: 4;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  color: var(--slate-800);
  background: var(--white);
  padding: 0 16px;
  outline: none;
}

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

.home-search button {
  border: 0;
  border-radius: 16px;
  padding: 0 24px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  cursor: pointer;
}

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

.content-section,
.list-layout {
  margin-top: 68px;
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.section-more,
.text-button {
  color: var(--rose-700);
  background: var(--rose-100);
  padding: 10px 16px;
  white-space: nowrap;
}

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

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

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

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

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  background: rgba(225, 29, 72, 0.88);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.28);
}

.card-content {
  padding: 14px;
}

.chip-row,
.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

.card-content h3 {
  margin: 10px 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 12px;
  justify-content: space-between;
}

.movie-card.compact .card-content h3 {
  font-size: 15px;
}

.movie-card.compact .card-content p {
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.9), rgba(243, 232, 255, 0.9));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.1);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span,
.category-title-link h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-title-link p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.75;
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.48), transparent 28%),
    linear-gradient(135deg, var(--rose-600), var(--purple-600));
}

.compact-hero {
  padding: 84px 0;
}

.compact-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #ffe4e6;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-card.is-hidden {
  display: none;
}

.category-overview-grid {
  align-items: start;
  margin-top: 64px;
  margin-bottom: 72px;
}

.category-overview-card ul {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.category-overview-card li a {
  color: var(--slate-700);
  line-height: 1.5;
}

.category-overview-card li a:hover {
  color: var(--rose-700);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(2px) saturate(1.08);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(236, 72, 153, 0.34), transparent 34%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.24));
}

.detail-hero-inner {
  position: relative;
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: #ffe4e6;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: end;
  gap: 38px;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-title-block h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-title-block p {
  max-width: 860px;
  margin: 20px 0 0;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

.detail-chips {
  margin-top: 24px;
}

.detail-chips span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  margin-top: -58px;
  position: relative;
  z-index: 3;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
}

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

.player-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.24), rgba(15, 23, 42, 0.54));
  cursor: pointer;
  z-index: 2;
}

.player-trigger span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.36);
  font-size: 34px;
  text-indent: 4px;
}

.player-trigger strong {
  display: block;
  font-size: 18px;
}

.player-card.is-playing .player-trigger {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  margin-top: 56px;
}

.detail-article {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 28px;
}

.detail-article p {
  margin: 0;
  color: var(--slate-700);
  line-height: 2;
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--slate-50);
}

.info-list dt {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-weight: 750;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-weight: 700;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.next-links a {
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-weight: 800;
}

.related-section {
  margin-top: 72px;
}

.site-footer {
  margin-top: 88px;
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e293b);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 0;
  text-align: center;
  color: #94a3b8;
}

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero-slider {
    height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    align-content: center;
  }

  .hero-poster {
    max-width: 210px;
    transform: none;
  }

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

  .home-search,
  .filter-panel,
  .detail-hero-grid,
  .footer-grid,
  .next-links {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    gap: 12px;
  }

  .detail-poster {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .brand-text small {
    display: none;
  }

  .hero-slider {
    height: 720px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .content-section,
  .list-layout {
    margin-top: 48px;
    margin-bottom: 56px;
  }

  .compact-hero {
    padding: 60px 0;
  }

  .detail-hero {
    min-height: 600px;
  }

  .detail-article {
    padding: 24px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .player-trigger span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
