:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(244, 63, 94, 0.16);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #fff1f2 45%, #fffbeb 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 32px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-brand span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #ec4899, var(--amber));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--rose), #ec4899, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-dark);
  background: #ffe4e6;
}

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

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input {
  width: 240px;
  border: 1px solid #fecdd3;
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.header-search button,
.mobile-search button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #ec4899);
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffe4e6;
  color: var(--rose-dark);
  font-size: 22px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #111827;
}

.hero-backdrop-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-image-tile {
  position: relative;
  overflow: hidden;
}

.hero-image-tile img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-image-tile:hover img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62) 40%, rgba(248, 250, 252, 0.98));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  min-height: 78vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 64px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-content h1 {
  max-width: 960px;
  margin: 22px auto 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 950;
  background: linear-gradient(135deg, #fb7185, #f9a8d4, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
}

.hero-slider {
  width: min(760px, 100%);
  min-height: 210px;
  position: relative;
}

.hero-copy {
  display: none;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.hero-copy.is-active {
  display: block;
  animation: fadeUp 0.45s ease both;
}

.hero-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.hero-actions,
.category-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #ec4899);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
  border: 0;
  cursor: pointer;
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
}

.ghost-btn.dark {
  color: var(--rose-dark);
  border-color: #fecdd3;
  background: rgba(255, 255, 255, 0.74);
}

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

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

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

.hero-dots button.active {
  width: 34px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

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

.narrow-pad {
  padding-top: 64px;
  padding-bottom: 64px;
}

.soft-section {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fffbeb);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  color: var(--ink);
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.story-card p,
.side-card dd,
.rank-info p,
.movie-card-body p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.15);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: var(--shadow);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.play-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: 0.25s ease;
}

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

.duration-badge {
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--rose-dark);
}

.movie-card-body p {
  margin: 10px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span,
.detail-meta-line span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 800;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  background: linear-gradient(135deg, #fff7ed, #ffe4e6);
  color: #9f1239;
  font-size: 12px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.13);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

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

.rank-info a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.rank-info p {
  margin: 8px 0 10px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.15);
}

.category-tile {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: 0.24s ease;
}

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

.category-tile span {
  font-size: 36px;
}

.category-tile strong,
.category-overview-title {
  margin-top: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #881337 55%, #92400e);
  color: #fff;
}

.small-hero {
  padding: 82px 16px;
  text-align: center;
}

.small-hero h1 {
  margin: 18px auto 14px;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
}

.small-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.86);
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  text-decoration: none;
}

.category-overview-title span {
  font-size: 30px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 118px 1fr;
}

.compact-card .poster-link {
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
}

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

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: #475569;
  font-weight: 900;
}

.filter-panel input {
  width: min(520px, 100%);
  border-radius: 16px;
}

.big-search {
  width: min(680px, 100%);
  display: flex;
  gap: 12px;
  margin: 28px auto 0;
}

.big-search input {
  width: 100%;
  border-radius: 999px;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.82));
}

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

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

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.detail-top-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: #111827;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.1;
  font-weight: 950;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-line {
  margin-top: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.player-card,
.story-card,
.side-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.15);
}

.player-card {
  overflow: hidden;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

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

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

.story-card,
.side-card {
  padding: 24px;
  margin-top: 24px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.story-card p {
  margin: 0 0 24px;
  font-size: 17px;
}

.side-card {
  margin-top: 0;
  position: sticky;
  top: 98px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}

.side-card dt {
  color: #9f1239;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
}

.side-card a {
  color: var(--rose-dark);
  text-decoration: none;
  font-weight: 900;
}

.site-footer {
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #4c0519 58%, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links a {
  color: #fecdd3;
  text-decoration: none;
  font-weight: 800;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .side-card {
    position: static;
  }
}

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

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

  .hero-backdrop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .rank-item {
    grid-template-columns: 48px 78px 1fr;
    gap: 12px;
  }

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

  .detail-poster {
    width: min(260px, 72vw);
  }

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

@media (max-width: 560px) {
  .nav-shell {
    min-height: 64px;
  }

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

  .hero-section,
  .hero-content {
    min-height: 86vh;
  }

  .hero-backdrop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy {
    padding: 18px;
    border-radius: 22px;
  }

  .movie-grid,
  .rank-grid,
  .category-grid,
  .mini-card-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 112px 1fr;
  }

  .filter-panel,
  .big-search {
    display: grid;
  }

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

  .small-hero {
    padding: 60px 16px;
  }

  .content-section {
    padding: 48px 0;
  }
}
