:root {
  --color-rose: #e11d48;
  --color-orange: #f97316;
  --color-amber: #f59e0b;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-line: #e5e7eb;
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 46%, #f3f4f6 100%);
  color: var(--color-ink);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 64px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  box-shadow: 0 18px 30px rgba(225, 29, 72, 0.28);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.button-ghost {
  color: var(--color-rose);
  background: #fff1f2;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
}

.section-block {
  padding: 64px 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(249, 115, 22, 0.2));
}

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

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #374151);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .card-poster {
  aspect-ratio: auto;
  min-height: 220px;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(225, 29, 72, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 900;
}

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

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

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

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--color-rose);
  font-size: 12px;
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.ranking-item a:hover {
  color: var(--color-rose);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  font-weight: 900;
}

.ranking-title {
  font-weight: 800;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px 170px;
  gap: 14px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #fff;
  color: var(--color-ink);
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--color-rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.page-hero {
  padding: 62px 0 38px;
  background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.12), transparent 38%), linear-gradient(180deg, #fff, #f9fafb);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--color-rose);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  z-index: 3;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  box-shadow: 0 20px 42px rgba(225, 29, 72, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

.detail-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

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

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.side-card {
  overflow: hidden;
  padding-bottom: 20px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.side-card-content {
  padding: 20px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  color: #374151;
}

.info-list dt {
  color: var(--color-muted);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.compact-card span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 12px;
  font-weight: 800;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.next-prev a {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff1f2;
  color: var(--color-rose);
  font-weight: 800;
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, #f9fafb, #eef2f7);
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: #4b5563;
}

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

.footer-bottom {
  padding: 20px 0 30px;
  color: var(--color-muted);
  border-top: 1px solid #dbe1ea;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

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

  .menu-toggle {
    display: flex;
  }

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

  .section-head,
  .ranking-layout,
  .detail-layout,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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

  .ranking-item a {
    grid-template-columns: 44px 1fr;
  }

  .ranking-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1280px);
  }

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

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

  .hero-copy {
    padding: 48px 0;
  }

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

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

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

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

  .movie-card-horizontal .card-poster {
    aspect-ratio: 2 / 3;
  }

  .detail-card {
    padding: 22px;
  }
}
