:root {
  --color-primary: 41 128 185;
  --color-primary-dark: 30 97 140;
  --color-primary-light: 93 173 226;
  --color-secondary: 52 152 219;
  --color-accent: 46 204 113;
  --color-neutral-50: 250 250 250;
  --color-neutral-100: 245 245 245;
  --color-neutral-200: 229 229 229;
  --color-neutral-300: 212 212 212;
  --color-neutral-400: 163 163 163;
  --color-neutral-500: 115 115 115;
  --color-neutral-600: 82 82 82;
  --color-neutral-700: 64 64 64;
  --color-neutral-800: 38 38 38;
  --color-neutral-900: 23 23 23;
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-card-hover: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: rgb(var(--color-neutral-50));
  color: rgb(var(--color-neutral-900));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-spacing {
  padding: 72px 0;
}

.card {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}


.bg-white {
  background: #ffffff;
}

.bg-soft {
  background: rgb(var(--color-neutral-100));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(var(--color-primary));
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand {
  font-size: 22px;
}

.brand-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-secondary)));
  color: #ffffff;
  box-shadow: 0 10px 24px rgb(var(--color-primary) / 0.28);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

.nav-link {
  color: rgb(var(--color-neutral-700));
  font-weight: 650;
}

.nav-link:hover,
.nav-link-active {
  color: rgb(var(--color-primary));
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 66px;
  left: 0;
  width: 224px;
  padding: 8px 0;
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  color: rgb(var(--color-neutral-700));
  font-size: 14px;
}

.dropdown-link:hover {
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-primary));
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgb(var(--color-neutral-300));
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: rgb(var(--color-neutral-800));
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  background: rgb(var(--color-primary));
  color: #ffffff;
  font-weight: 650;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--color-neutral-100));
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--color-neutral-800));
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgb(var(--color-neutral-200));
  background: #ffffff;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  padding: 18px 0 22px;
}

.mobile-link,
.mobile-sub-link {
  display: block;
  padding: 10px 0;
  color: rgb(var(--color-neutral-700));
  font-weight: 650;
}

.mobile-sub-links {
  padding-left: 16px;
}

.mobile-sub-link {
  color: rgb(var(--color-neutral-600));
  font-size: 14px;
  font-weight: 500;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: rgb(var(--color-neutral-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.92), rgb(0 0 0 / 0.52), rgb(0 0 0 / 0.10));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 740px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(var(--color-primary));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgb(var(--color-neutral-200));
  font-size: 18px;
  line-height: 1.7;
}

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

.button-primary,
.button-secondary,
.button-light,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
}

.button-primary {
  background: rgb(var(--color-primary));
  color: #ffffff;
  box-shadow: 0 12px 28px rgb(var(--color-primary) / 0.28);
}

.button-primary:hover {
  background: rgb(var(--color-primary-dark));
  color: #ffffff;
}

.button-secondary {
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-neutral-800));
}

.button-secondary:hover {
  background: rgb(var(--color-neutral-200));
}

.button-light {
  background: #ffffff;
  color: rgb(var(--color-neutral-900));
}

.button-light:hover {
  color: rgb(var(--color-primary));
}

.button-ghost {
  border: 1px solid rgb(255 255 255 / 0.38);
  color: #ffffff;
  background: rgb(255 255 255 / 0.10);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 0.18);
  color: #ffffff;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.52);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgb(0 0 0 / 0.76);
}

.hero-control-prev {
  left: 20px;
}

.hero-control-next {
  right: 20px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1,
.category-hero h1 {
  margin: 0;
  color: rgb(var(--color-neutral-900));
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p,
.category-hero p {
  margin: 8px 0 0;
  color: rgb(var(--color-neutral-600));
  line-height: 1.7;
}

.section-more {
  color: rgb(var(--color-primary));
  font-weight: 750;
  white-space: nowrap;
}

.section-more:hover {
  color: rgb(var(--color-primary-dark));
}

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

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

.movie-card {
  position: relative;
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(var(--color-neutral-900));
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.055);
}

.movie-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.0);
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.movie-card:hover .movie-play-icon {
  background: rgb(0 0 0 / 0.32);
  opacity: 1;
}

.movie-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgb(0 0 0 / 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  padding: 5px 8px;
  text-align: center;
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
}

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

.movie-card-body h2,
.movie-card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: rgb(var(--color-neutral-900));
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body h2 a:hover,
.movie-card-body h3 a:hover {
  color: rgb(var(--color-primary));
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: rgb(var(--color-neutral-600));
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgb(var(--color-neutral-500));
  font-size: 13px;
}

.movie-meta-row.wide {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.rating {
  color: #d99a05;
  font-weight: 800;
}

.movie-tag-line {
  margin-top: 12px;
  color: rgb(var(--color-primary));
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 0 18px;
}

.horizontal-row {
  display: flex;
  gap: 24px;
  width: max-content;
}

.horizontal-row .movie-card {
  width: 320px;
  flex: 0 0 auto;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background: rgb(var(--color-neutral-900));
  color: #ffffff;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.055);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.32), rgb(0 0 0 / 0.05));
}

.category-card-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

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

.category-card p {
  margin: 0;
  color: rgb(var(--color-neutral-200));
  font-size: 14px;
}

.page-hero,
.category-hero {
  padding: 62px 0;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-title,
.category-hero {
  color: rgb(var(--color-neutral-900));
}

.filter-panel {
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgb(var(--color-neutral-300));
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
  color: rgb(var(--color-neutral-800));
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgb(var(--color-primary));
  box-shadow: 0 0 0 3px rgb(var(--color-primary) / 0.14);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 190px;
}

.movie-card-horizontal .movie-thumb {
  height: 100%;
  aspect-ratio: auto;
}

.movie-list {
  display: grid;
  gap: 20px;
}

.detail-hero {
  padding: 52px 0;
  background: linear-gradient(135deg, rgb(var(--color-neutral-900)), rgb(22 46 68));
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgb(var(--color-neutral-300));
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.35);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgb(0 0 0 / 0.18);
  color: #ffffff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover span {
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(var(--color-primary));
  color: #ffffff;
  font-size: 42px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.32);
}

.detail-copy h1 {
  color: #ffffff;
  margin-bottom: 18px;
}

.detail-copy .lead {
  color: rgb(var(--color-neutral-200));
  font-size: 18px;
  line-height: 1.75;
}

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

.detail-meta span,
.tag-list a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.13);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
}

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

.detail-content {
  padding: 56px 0;
  background: #ffffff;
}

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

.detail-article {
  color: rgb(var(--color-neutral-800));
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: rgb(var(--color-neutral-900));
  font-size: 26px;
  line-height: 1.25;
}

.detail-article p {
  margin: 0 0 24px;
  color: rgb(var(--color-neutral-700));
  line-height: 1.85;
  white-space: pre-wrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 28px;
}

.tag-list a,
.tag-list span {
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-primary));
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: 18px;
  background: rgb(var(--color-neutral-50));
}

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

.side-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 110px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: rgb(var(--color-neutral-900));
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item p {
  margin: 0;
  color: rgb(var(--color-neutral-500));
  font-size: 12px;
}

.search-results-empty {
  padding: 44px;
  border-radius: 18px;
  background: #ffffff;
  color: rgb(var(--color-neutral-600));
  text-align: center;
  box-shadow: var(--shadow-card);
}

.site-footer {
  background: rgb(var(--color-neutral-800));
  color: rgb(var(--color-neutral-300));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  max-width: 360px;
  color: rgb(var(--color-neutral-400));
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid a:hover {
  color: rgb(var(--color-primary-light));
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgb(var(--color-neutral-700));
  color: rgb(var(--color-neutral-400));
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: flex;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

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

  .hero-control {
    display: none;
  }

  .section-spacing,
  .detail-content {
    padding: 46px 0;
  }

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

  .movie-grid,
  .movie-grid-three,
  .category-strip,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .movie-thumb {
    aspect-ratio: 16 / 9;
  }

  .detail-hero {
    padding: 34px 0;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }
}
