:root {
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-white: #ffffff;
  --color-amber: #d97706;
  --color-rose: #e11d48;
  --color-blue: #2563eb;
  --color-emerald: #059669;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-slate-900);
  background: var(--color-slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-slate-700), var(--color-slate-900));
  box-shadow: var(--shadow-sm);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  color: var(--color-slate-500);
  font-size: 12px;
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  position: relative;
  color: var(--color-slate-600);
  font-size: 14px;
  font-weight: 650;
  padding: 24px 0 21px;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-slate-900);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-slate-900);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--color-slate-200);
  border-radius: 999px;
  background: var(--color-slate-50);
  min-width: 230px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--color-slate-800);
  background: transparent;
  font-size: 14px;
}

.header-search button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-slate-900);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--color-slate-900);
  background: var(--color-slate-100);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-slate-200);
  background: var(--color-white);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  color: var(--color-slate-700);
  border-radius: 12px;
  font-weight: 650;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background: var(--color-slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide.active .hero-image {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.82));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 0;
  color: var(--color-white);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-slate-900);
  background: var(--color-white);
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18);
}

.btn-dark {
  color: var(--color-white);
  background: var(--color-slate-900);
  box-shadow: var(--shadow-md);
}

.btn-soft {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-outline {
  color: var(--color-slate-800);
  border: 1px solid var(--color-slate-200);
  background: var(--color-white);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.68);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--color-white);
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--color-white);
}

.section-gradient {
  background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--color-slate-100);
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-title p {
  margin: 8px 0 0;
  color: var(--color-slate-500);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-600));
}

.poster-frame::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 16px 16px 16px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster-frame.no-image::after {
  opacity: 1;
}

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

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

.poster-frame.no-image img {
  display: none;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.78));
}

.card-labels {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-white);
}

.movie-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.movie-title {
  margin: 0;
  color: var(--color-slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.movie-desc {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 14px;
}

.movie-card.horizontal {
  flex-direction: row;
}

.movie-card.horizontal .poster-frame {
  width: 38%;
  min-width: 170px;
  aspect-ratio: 4 / 3;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--color-slate-500);
}

.page-hero {
  padding: 58px 0;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-700));
}

.page-title {
  max-width: 780px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.72);
}

.pagination {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  color: var(--color-slate-700);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  font-weight: 750;
}

.pagination a:hover,
.pagination .current {
  color: var(--color-white);
  background: var(--color-slate-900);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
  padding: 36px 0 72px;
}

.panel {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.panel-inner {
  padding: 26px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--color-slate-600);
  font-weight: 750;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.38));
  transition: opacity 0.25s ease;
}

.player-box.is-playing .player-layer {
  opacity: 0;
}

.player-trigger {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-slate-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-trigger:hover {
  background: var(--color-white);
  transform: scale(1.08);
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-slate-500);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.tags span,
.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
  font-size: 13px;
  font-weight: 700;
}

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-block p {
  margin: 0;
  color: var(--color-slate-700);
  text-align: justify;
}

.sidebar {
  position: sticky;
  top: 96px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-white);
  background: var(--color-slate-900);
  font-weight: 850;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

.search-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.search-form-large {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
}

.search-form-large input,
.search-form-large select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: var(--color-slate-50);
}

.search-form-large input:focus,
.search-form-large select:focus {
  border-color: var(--color-slate-400);
  background: var(--color-white);
}

.site-footer {
  color: var(--color-slate-300);
  background: var(--color-slate-900);
}

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

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand strong {
  color: var(--color-white);
  font-size: 18px;
}

.footer-col h2,
.footer-col h3 {
  margin: 0 0 16px;
  color: var(--color-white);
  font-size: 16px;
}

.footer-col p,
.footer-col a {
  color: var(--color-slate-400);
  font-size: 14px;
}

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

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--color-slate-500);
  text-align: center;
  font-size: 13px;
}

.empty-state {
  padding: 72px 24px;
  color: var(--color-slate-500);
  text-align: center;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 46px 0 70px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-frame {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

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

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

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