:root {
  --color-primary: 17 94 89;
  --color-primary-light: 20 184 166;
  --color-primary-dark: 13 74 71;
  --color-secondary: 217 119 6;
  --color-secondary-light: 251 191 36;
  --color-accent: 14 116 144;
  --color-accent-light: 6 182 212;
  --color-neutral-50: 250 250 250;
  --color-neutral-100: 244 244 245;
  --color-neutral-200: 228 228 231;
  --color-neutral-300: 212 212 216;
  --color-neutral-400: 161 161 170;
  --color-neutral-500: 113 113 122;
  --color-neutral-600: 82 82 91;
  --color-neutral-700: 63 63 70;
  --color-neutral-800: 39 39 42;
  --color-neutral-900: 24 24 27;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(var(--color-neutral-50));
  color: rgb(var(--color-neutral-900));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.section-padding {
  padding: 4rem 0;
}

.heading-2 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.heading-lead {
  max-width: 46rem;
  margin: 0.85rem 0 0;
  color: rgb(var(--color-neutral-600));
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgb(var(--color-neutral-200));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgb(15 118 110);
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(15 118 110), rgb(6 182 212));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
  font-size: 0.85rem;
}

.logo-copy {
  display: flex;
  flex-direction: column;
}

.logo-copy strong {
  font-size: 1.18rem;
  line-height: 1.05;
}

.logo-copy small {
  color: rgb(var(--color-neutral-600));
  font-size: 0.72rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  color: rgb(var(--color-neutral-700));
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: rgb(15 118 110);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: rgb(15 118 110);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid rgb(var(--color-neutral-300));
  border-radius: 0.65rem;
  background: #fff;
  color: rgb(var(--color-neutral-900));
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
  width: 16rem;
  padding: 0.58rem 0.75rem;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgb(13 148 136);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.nav-search button,
.mobile-search button,
.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-search button,
.btn-primary {
  background: rgb(15 118 110);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.nav-search button:hover,
.mobile-search button:hover,
.btn-primary:hover {
  background: rgb(17 94 89);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-neutral-800));
}

.btn-ghost:hover {
  background: rgb(var(--color-neutral-200));
}

.btn-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-neutral-800));
}

.mobile-nav {
  border-top: 1px solid rgb(var(--color-neutral-200));
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: rgb(var(--color-neutral-700));
  font-weight: 700;
}

.mobile-nav-link.active {
  color: rgb(15 118 110);
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 0 4rem;
}

.hero-copy {
  max-width: 48rem;
  color: #fff;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 44rem;
  margin: 1rem 0 1.5rem;
  color: rgb(229 231 235);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-actions,
.detail-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero-meta span,
.detail-meta span,
.tag-cloud span,
.card-tags,
.card-meta em,
.category-pill {
  border-radius: 999px;
  background: rgb(var(--color-neutral-100));
  color: rgb(var(--color-neutral-700));
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 2rem;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}

.feature-card {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgb(var(--color-neutral-900));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-card img,
.category-tile img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.feature-card img,
.movie-card img,
.category-tile img {
  transition: transform 0.5s ease;
}

.feature-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.32), transparent);
  color: #fff;
}

.feature-gradient h2,
.feature-text h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.feature-gradient p,
.feature-text p {
  color: rgb(var(--color-neutral-600));
}

.feature-gradient p {
  color: rgb(229 231 235);
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.12);
}

.poster-link,
.card-body {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(15 118 110), rgb(6 182 212));
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-overlay span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.card-body {
  padding: 1rem;
}

.card-body strong {
  display: -webkit-box;
  min-height: 3rem;
  overflow: hidden;
  color: rgb(var(--color-neutral-900));
  font-size: 1rem;
  font-weight: 760;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: rgb(15 118 110);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0;
}

.card-meta em {
  padding: 0.25rem 0.55rem;
}

.card-text {
  display: -webkit-box;
  min-height: 2.7rem;
  overflow: hidden;
  color: rgb(var(--color-neutral-600));
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: inline-flex;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  color: rgb(15 118 110);
  background: rgb(204 251 241);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-tile {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  border-radius: 1.1rem;
  background: rgb(var(--color-neutral-900));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  content: "";
}

.category-tile span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
}

.category-tile strong {
  display: block;
  font-size: 1.4rem;
}

.category-tile small {
  color: rgb(229 231 235);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 0.75rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 6rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.rank-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(204 251 241);
  color: rgb(15 118 110);
  font-weight: 850;
}

.ranking-row:nth-child(-n+3) .rank-number {
  background: linear-gradient(135deg, rgb(251 191 36), rgb(217 119 6));
  color: #fff;
}

.ranking-row img {
  width: 6rem;
  height: 3.45rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy small {
  margin-top: 0.2rem;
  color: rgb(var(--color-neutral-600));
}

.rank-score {
  color: rgb(217 119 6);
  font-weight: 850;
}

.page-hero {
  background: linear-gradient(135deg, rgb(240 253 250), rgb(236 254 255));
  padding: 4rem 0;
}

.page-hero h1 {
  color: rgb(var(--color-neutral-900));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgb(var(--color-neutral-600));
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: rgb(15 118 110);
  font-weight: 700;
}

.list-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) repeat(3, minmax(8rem, 12rem));
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.72rem 0.8rem;
}

.no-results {
  display: none;
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  color: rgb(var(--color-neutral-600));
  text-align: center;
}

.no-results.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: rgb(var(--color-neutral-900));
  color: #fff;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25));
  content: "";
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 32rem;
  padding: 4rem 0;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-copy p {
  max-width: 48rem;
  color: rgb(229 231 235);
  font-size: 1.1rem;
}

.detail-actions {
  margin-top: 1.5rem;
}

.player-section {
  padding: 3rem 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.28), rgba(0, 0, 0, 0.55));
  color: #fff;
  text-align: center;
}

.player-overlay span {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  background: rgb(15 118 110);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.35);
  font-size: 1.8rem;
}

.player-overlay strong {
  display: block;
  font-size: 1.1rem;
}

.player-overlay.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
}

.article-panel,
.side-panel {
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.article-panel p {
  margin: 0 0 1.2rem;
  color: rgb(var(--color-neutral-700));
  font-size: 1.03rem;
  line-height: 1.85;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-cloud span {
  padding: 0.35rem 0.75rem;
}

.related-list {
  display: grid;
  gap: 0.8rem;
}

.related-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.related-item img {
  width: 5.5rem;
  height: 3.2rem;
  border-radius: 0.55rem;
  object-fit: cover;
}

.related-item strong,
.related-item small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-item small {
  color: rgb(var(--color-neutral-600));
}

.site-footer {
  margin-top: 4rem;
  background: rgb(var(--color-neutral-900));
  color: rgb(212 212 216);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-grid p {
  max-width: 36rem;
  color: rgb(161 161 170);
}

.footer-grid h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin: 0.4rem 0;
  color: rgb(212 212 216);
}

.footer-grid a:hover {
  color: rgb(94 234 212);
}

.footer-bottom {
  border-top: 1px solid rgb(var(--color-neutral-800));
  padding: 1.2rem;
  color: rgb(113 113 122);
  text-align: center;
}

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

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
  }

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

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

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

  .detail-wrap {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container-custom {
    width: min(100% - 1.25rem, 80rem);
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 34rem;
  }

  .hero-content {
    padding-bottom: 3.3rem;
  }

  .hero-control {
    display: none;
  }

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

  .card-body {
    padding: 0.8rem;
  }

  .card-body strong {
    font-size: 0.95rem;
  }

  .feature-grid,
  .category-strip,
  .footer-grid,
  .detail-wrap,
  .list-toolbar {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .category-tile {
    min-height: 14rem;
  }

  .ranking-row {
    grid-template-columns: 2.5rem 4.8rem minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .ranking-row img {
    width: 4.8rem;
    height: 3rem;
  }

  .detail-poster {
    max-width: 14rem;
  }
}
