:root {
  --rose-50: #fff1f4;
  --rose-100: #ffe4eb;
  --rose-200: #fecdd8;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #f1f5f9;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(244, 63, 94, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--rose-50), #ffffff 420px, #fff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.25);
}

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

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-500);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--rose-500);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  background: #fff;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.2));
}

.hero-copy {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-bottom: 120px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffe4eb;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 32px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.hero-categories,
.footer-links,
.detail-meta,
.detail-tags,
.card-tags,
.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.wide-button,
.light-button,
.filter-bar button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.filter-bar button,
.search-form button,
.wide-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 30px rgba(244, 63, 94, 0.25);
}

.primary-button,
.secondary-button,
.light-button {
  min-height: 50px;
  padding: 0 26px;
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.wide-button:hover,
.light-button:hover,
.search-form button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(244, 63, 94, 0.28);
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.search-form,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ffe4eb;
  outline: none;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

.search-form button,
.filter-bar button {
  min-width: 110px;
  min-height: 50px;
  padding: 0 22px;
}

.hero-categories {
  margin-top: 14px;
}

.category-pill,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: #fff1f4;
  font-size: 12px;
  font-weight: 700;
}

.category-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 198px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

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

.section-wrap.compact {
  padding: 64px 0;
}

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

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

.section-heading.slim {
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.section-heading span,
.page-hero span {
  color: var(--rose-500);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-heading h2,
.side-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--rose-500);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4eb, #fff1f4);
}

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

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

.year-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.year-badge {
  top: 10px;
  right: 10px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-topline {
  justify-content: space-between;
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body strong {
  min-height: 48px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em,
.row-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.soft-section {
  background: linear-gradient(90deg, #fff1f4, #fff7fb);
}

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

.category-card,
.category-overview-card,
.content-card,
.side-panel {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.category-card,
.category-overview-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span,
.category-overview-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-500);
  font-size: 19px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p,
.content-card p,
.footer-inner p,
.page-hero p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-overview-card div span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 66px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-row img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-num {
  color: var(--rose-500);
  font-size: 19px;
  font-weight: 900;
}

.row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.row-main strong {
  font-size: 17px;
}

.row-meta {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.side-panel {
  padding: 24px;
}

.side-gap {
  margin-top: 28px !important;
}

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

.mini-grid .movie-card {
  border-radius: 18px;
}

.mini-grid .card-body {
  padding: 10px;
}

.mini-grid .card-body em,
.mini-grid .card-tags,
.mini-grid .card-topline span:last-child {
  display: none;
}

.mini-grid .card-body strong {
  min-height: 42px;
  font-size: 14px;
}

.wide-button {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
}

.callout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  padding: 42px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.callout h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.light-button {
  color: var(--rose-500);
  background: #fff;
  white-space: nowrap;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.channel-hero,
.rank-hero {
  padding-bottom: 22px;
}

.filter-bar {
  max-width: 820px;
  margin-top: 28px;
}

.filter-bar input,
.filter-bar select {
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-select {
  max-width: 220px;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-500);
  font-weight: 800;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 44px;
  min-height: 480px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 36px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.6), transparent 32%),
    linear-gradient(135deg, #111827, #3f1230 68%, #831843);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.watch-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.watch-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.56));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.38);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  font-size: 17px;
  line-height: 1.9;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.site-footer {
  padding: 48px 0 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  color: var(--rose-500);
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

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

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

  .split-layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: 2;
  }
}

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

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-copy {
    padding-bottom: 210px;
  }

  .hero-search-card {
    bottom: 24px;
  }

  .search-form,
  .filter-bar,
  .callout,
  .footer-bottom,
  .footer-inner {
    flex-direction: column;
    display: flex;
  }

  .filter-select {
    max-width: none;
  }

  .hero-dots {
    right: 24px;
    bottom: 236px;
  }

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

  .movie-row {
    grid-template-columns: 54px 78px minmax(0, 1fr);
  }

  .movie-row img {
    width: 78px;
    height: 88px;
  }

  .row-meta {
    grid-column: 3;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 820px;
  }

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

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

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

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

  .section-wrap,
  .page-hero {
    padding: 46px 0;
  }

  .callout {
    padding: 28px;
  }

  .movie-row {
    grid-template-columns: 1fr;
  }

  .movie-row img {
    width: 100%;
    height: 180px;
  }

  .rank-num,
  .row-meta {
    grid-column: auto;
  }
}
