:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --light-pink: #f9a8d4;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3e8f1;
  --soft: #fff7fb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(249, 168, 212, 0.34), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(251, 113, 133, 0.24), transparent 28%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff8fb 100%);
  color: var(--text);
}

a {
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

img {
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f472b6 0%, #f9a8d4 50%, #fb7185 100%);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25);
  backdrop-filter: blur(14px);
}

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

.navbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-panel a {
  color: #fff;
  font-weight: 650;
  padding: 9px 13px;
  border-radius: 999px;
}

.nav-links a:hover,
.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 36px;
  border-radius: 30px;
  min-height: 520px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, transparent 44%);
}

.hero-content {
  position: absolute;
  inset: auto auto 0 0;
  width: min(720px, 100%);
  padding: 56px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 14px 25px rgba(236, 72, 153, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(236, 72, 153, 0.36);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-light {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.12);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.section {
  padding: 22px 0 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

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

.movie-card:hover img,
.related-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  color: #fff;
  opacity: 0;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.28);
  opacity: 1;
}

.play-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink);
  font-weight: 900;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px;
}

.card-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
}

.meta-pill,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1f7;
  color: #be185d;
  font-weight: 700;
}

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

.category-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.17);
}

.category-card h2,
.category-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-cover {
  width: 110px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-title {
  font-weight: 900;
  font-size: 17px;
}

.rank-sub {
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 22px 0;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.16);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  background: #fff7fb;
  outline: none;
}

.page-hero {
  margin: 28px auto 24px;
  padding: 46px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.page-hero p {
  max-width: 860px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.14);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.34);
}

.play-overlay.hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
}

.player-caption {
  padding: 18px 20px;
}

.player-caption h2 {
  font-weight: 900;
  font-size: 22px;
}

.detail-card {
  padding: 26px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.detail-card p {
  color: #374151;
  line-height: 2;
  margin: 12px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.side-card {
  padding: 18px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.related-card strong {
  display: block;
  font-weight: 850;
  line-height: 1.35;
}

.related-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 50px;
  padding: 36px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-mask {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 100%);
  }

  .hero-content {
    padding: 34px 24px 58px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-control {
    top: auto;
    bottom: 18px;
    transform: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 86px 1fr;
  }

  .rank-cover {
    width: 86px;
    height: 58px;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .logo {
    font-size: 20px;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .related-card {
    grid-template-columns: 86px 1fr;
  }
}
