:root {
  --page-bg: #fff7fb;
  --panel-bg: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.42);
  --brand: #ef4444;
  --brand-pink: #ec4899;
  --brand-orange: #f97316;
  --deep: #111827;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem), linear-gradient(135deg, #fff7fb 0%, #ffffff 45%, #eff6ff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand), var(--brand-orange));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.32);
  font-size: 15px;
}

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

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: #fff1f2;
}

.header-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 38vw);
}

.header-search input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-search input:focus {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.header-search button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(520px, 88vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 114, 182, 0.22);
}

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

.search-result {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.search-result:hover {
  background: #fff1f2;
}

.search-result img {
  width: 44px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

.search-title {
  display: block;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.search-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.1);
}

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

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

.mobile-link:hover,
.mobile-link.active {
  color: var(--brand);
  background: #fff1f2;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ec4899, #ef4444, #f59e0b);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.15) contrast(1.05);
}

.hero-bg::after,
.watch-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.42), rgba(236, 72, 153, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  color: #ffffff;
  padding-top: 40px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #fda4af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 900;
}

.hero-content h1,
.sub-hero h1,
.watch-inner h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 700px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.dark {
  color: var(--ink);
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.22s ease;
}

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

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

.wide-band {
  width: 100%;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, rgba(233, 213, 255, 0.72), rgba(252, 231, 243, 0.86), rgba(219, 234, 254, 0.72));
}

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

.section-heading p {
  margin: 0 0 6px;
  color: var(--brand-pink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand), var(--brand-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading > a {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.latest-grid,
.editor-grid,
.related-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.1);
  transition: 0.25s ease;
  border: 1px solid rgba(244, 114, 182, 0.12);
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8, #fde68a);
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.rank-item:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.78));
}

.poster-badge,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.poster-type {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  padding: 5px 9px;
}

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

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

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.rank-item img {
  width: 76px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fecdd3, #dbeafe);
  transition: transform 0.35s ease;
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.rank-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.35;
}

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

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

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

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  min-height: 164px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.1);
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.13);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: stretch;
}

.category-covers img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #fecdd3, #dbeafe);
  transition: transform 0.35s ease;
}

.category-card h2 {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--brand);
  font-weight: 900;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
  color: #ffffff;
}

.sub-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: -20vw;
  width: 48vw;
  height: 48vw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.sub-hero > div {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
}

.sub-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.compact-section {
  padding-bottom: 20px;
}

.watch-hero {
  position: relative;
  min-height: 720px;
  background: #111827;
  overflow: hidden;
  color: #ffffff;
}

.watch-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.watch-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px) saturate(1.12);
}

.watch-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-card.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  padding-left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35);
  font-size: 34px;
}

.movie-info {
  padding: 4px;
}

.lead-text {
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 13px;
}

.detail-section {
  padding-bottom: 20px;
}

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

.detail-article,
.side-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 950;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.large-tags {
  gap: 10px;
}

.large-tags span {
  font-size: 13px;
  padding: 8px 12px;
}

.side-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

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

.side-list .rank-item {
  grid-template-columns: 66px 1fr;
  min-height: 88px;
  padding: 10px;
}

.side-list .rank-item img {
  width: 66px;
  height: 74px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  margin-top: 16px;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-col h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .header-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .section-heading {
    display: block;
  }

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

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .editor-grid,
  .related-grid,
  .category-movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .category-grid.large,
  .rank-list,
  .rank-list.mini,
  .rank-board {
    grid-template-columns: 1fr;
  }

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

  .category-covers {
    height: 150px;
  }

  .category-covers img {
    height: 150px;
  }

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

  .watch-inner {
    padding-bottom: 46px;
  }

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

@media (max-width: 520px) {
  .logo-text {
    font-size: 20px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content h1,
  .sub-hero h1,
  .watch-inner h1 {
    font-size: 40px;
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .editor-grid,
  .related-grid,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item img {
    width: 64px;
    height: 78px;
  }

  .detail-article {
    padding: 24px;
  }
}
