:root {
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-soft: 0 20px 50px rgb(15 23 42 / 0.12);
}

body {
  background: #ffffff;
  color: var(--gray-900);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgb(15 23 42 / 0.08);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 14px;
  box-shadow: 0 10px 24px rgb(244 63 94 / 0.3);
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.header-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  min-height: 42px;
  padding: 0 16px;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input {
  width: 180px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgb(244 63 94 / 0.12);
}

.header-search button,
.mobile-search button,
.btn-primary-like,
.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgb(244 63 94 / 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary-like:hover,
.hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgb(244 63 94 / 0.38);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

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

.mobile-panel-inner {
  padding: 18px 16px 24px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgb(244 63 94 / 0.35), transparent 28%),
    linear-gradient(90deg, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 560px;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.text-panel span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  padding: 6px 14px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.detail-copy h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 18px 46px rgb(0 0 0 / 0.35);
}

.hero-content p,
.detail-copy p {
  margin-top: 22px;
  max-width: 680px;
  color: rgb(255 255 255 / 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-pill {
  border-radius: 999px;
  background: rgb(244 63 94 / 0.1);
  color: var(--rose-600);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag-pill {
  background: rgb(255 255 255 / 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-secondary:hover {
  background: rgb(255 255 255 / 0.14);
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgb(15 23 42 / 0.18);
}

.category-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 36px;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
}

.category-tile em,
.category-overview-card p {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.color-rose { --tile-a: #f43f5e; --tile-b: #fb7185; }
.color-orange { --tile-a: #fb923c; --tile-b: #fbbf24; }
.color-teal { --tile-a: #14b8a6; --tile-b: #34d399; }
.color-pink { --tile-a: #ec4899; --tile-b: #f9a8d4; }
.color-purple { --tile-a: #a855f7; --tile-b: #c084fc; }
.color-blue { --tile-a: #3b82f6; --tile-b: #22d3ee; }
.color-cyan { --tile-a: #06b6d4; --tile-b: #67e8f9; }
.color-amber { --tile-a: #f59e0b; --tile-b: #fcd34d; }
.color-green { --tile-a: #22c55e; --tile-b: #86efac; }
.color-slate { --tile-a: #64748b; --tile-b: #cbd5e1; }

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.72)),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  z-index: 0;
}

.category-tile > *,
.category-overview-card > * {
  position: relative;
  z-index: 1;
}

.category-overview-card img {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

.section-block {
  padding-top: 54px;
  padding-bottom: 54px;
}

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

.section-heading span,
.text-panel span {
  background: rgb(244 63 94 / 0.09);
  color: var(--rose-600);
}

.section-heading h2,
.text-panel h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--gray-100);
}

.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);
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: var(--rose-500);
  color: #ffffff;
}

.poster-year {
  right: 12px;
  background: rgb(0 0 0 / 0.64);
  color: #ffffff;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--rose-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin-top: 8px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--rose-600);
}

.movie-card p {
  margin-top: 8px;
  min-height: 44px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-genre {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.5;
}

.rose-panel {
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  padding-left: 28px;
  padding-right: 28px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.text-panel {
  position: sticky;
  top: 110px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.text-panel p {
  margin: 18px 0 24px;
  color: var(--gray-500);
  line-height: 1.8;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 70px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 26px rgb(15 23 42 / 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  color: var(--rose-500);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-title {
  color: var(--gray-900);
  font-weight: 800;
}

.ranking-meta {
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tile-a, #f43f5e), var(--tile-b, #ec4899));
  color: #ffffff;
  padding: 86px 0;
}

.compact-hero {
  --tile-a: #f43f5e;
  --tile-b: #ec4899;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
}

.page-hero p {
  margin-top: 18px;
  max-width: 760px;
  color: rgb(255 255 255 / 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.page-hero-actions a {
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.filter-bar {
  justify-content: space-between;
  margin-bottom: 28px;
  border-radius: 24px;
  background: var(--gray-50);
  padding: 16px;
}

.filter-bar input {
  flex: 1;
  border-radius: 18px;
}

.filter-bar select {
  width: 180px;
  border-radius: 18px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgb(255 255 255 / 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy {
  max-width: 860px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.25);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.36));
  color: var(--rose-500);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  font-size: 34px;
  box-shadow: 0 20px 48px rgb(0 0 0 / 0.28);
  transition: transform 0.25s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

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

.content-card,
.poster-card {
  margin-top: 24px;
  border-radius: 26px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.poster-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
}

.content-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 2;
}

.poster-card {
  position: sticky;
  top: 110px;
}

.poster-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 20px;
}

.poster-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.poster-card dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 12px;
}

.poster-card dt {
  color: var(--gray-500);
  font-weight: 700;
}

.poster-card dd {
  color: var(--gray-900);
  font-weight: 700;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.1);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.compact-card span {
  display: block;
  padding: 0 12px;
}

.compact-title {
  margin-top: 12px;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.compact-meta {
  margin: 6px 0 14px;
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding-top: 46px;
  padding-bottom: 38px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--rose-600);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--rose-500);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 16px 36px rgb(244 63 94 / 0.36);
}

.back-top.is-visible {
  display: flex;
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .poster-card,
  .text-panel {
    position: static;
  }
}

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

  .site-logo {
    font-size: 20px;
  }

  .hero-slider,
  .hero-content {
    min-height: 500px;
  }

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

  .hero-actions,
  .page-hero-actions,
  .section-heading,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-strip,
  .overview-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .poster-frame {
    height: 230px;
  }

  .ranking-item {
    grid-template-columns: 38px 56px 1fr;
  }

  .ranking-meta {
    grid-column: 3;
    white-space: normal;
  }

  .detail-hero,
  .detail-hero-inner {
    min-height: 460px;
  }

  .filter-bar select {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .category-strip,
  .overview-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 320px;
  }

  .mobile-panel nav {
    grid-template-columns: 1fr;
  }
}
