:root {
  --site-green: #059669;
  --site-teal: #0d9488;
  --site-dark: #0f172a;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-soft: #f8fafc;
  --site-line: #e5e7eb;
  --site-radius: 1rem;
  --site-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 46%, #ecfdf5 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 2rem, 80rem);
  height: 4rem;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--site-green), var(--site-teal));
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.26);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo__mark {
  transform: scale(1.06) rotate(-3deg);
}

.site-logo__text {
  display: grid;
  line-height: 1.1;
}

.site-logo__text strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--site-green), var(--site-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo__text em {
  margin-top: 0.18rem;
  color: var(--site-muted);
  font-size: 0.74rem;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav__link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--site-green);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-search:focus-within {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.32);
}

.header-search input {
  width: 15rem;
  border: 0;
  outline: 0;
  padding: 0.62rem 0.25rem 0.62rem 1rem;
  background: transparent;
  color: #111827;
}

.header-search button {
  border: 0;
  padding: 0.62rem 1rem;
  color: #ffffff;
  background: var(--site-green);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  border: 0;
  padding: 0.55rem;
  border-radius: 0.7rem;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #374151;
}

.mobile-menu {
  display: none;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 0.8rem 0 1rem;
  border-top: 1px solid var(--site-line);
}

.mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  color: #374151;
  font-weight: 650;
}

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

.main-offset {
  padding-top: 4rem;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide__image {
  position: absolute;
  inset: 0;
}

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

.hero-slide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 520px;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.hero-copy {
  max-width: 45rem;
  color: #ffffff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-tags span:first-child {
  background: var(--site-green);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 40rem;
  margin: 0 0 1.7rem;
  color: #e5e7eb;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button-primary,
.button-glass,
.button-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.86rem 1.5rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--site-green);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.32);
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.03);
  background: #047857;
}

.button-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.button-soft {
  color: var(--site-green);
  background: #ecfdf5;
}

.button-soft:hover {
  background: #d1fae5;
}

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

.hero-dot {
  width: 2.1rem;
  height: 0.38rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

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

.page-section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 0.25rem;
  color: var(--site-green);
  font-weight: 800;
  font-size: 0.82rem;
}

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--site-green);
  font-weight: 800;
  transition: gap 0.2s ease;
}

.section-more:hover {
  gap: 0.5rem;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.46));
}

.movie-card__badge,
.movie-card__rank {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card__badge {
  right: 0.8rem;
  padding: 0.26rem 0.62rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.movie-card__rank {
  left: 0.8rem;
  padding: 0.3rem 0.68rem;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.movie-card__body {
  padding: 1rem;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.movie-card__meta a,
.movie-card__meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  color: #047857;
  background: #ecfdf5;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-card__meta span {
  color: #4b5563;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--site-green);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 0.8rem;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.movie-card__tags span {
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: #6b7280;
  background: #f9fafb;
  font-size: 0.75rem;
}

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

.category-tile {
  position: relative;
  min-height: 11.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.category-tile:hover img {
  transform: scale(1.1);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(5, 150, 105, 0.84));
}

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

.category-tile h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 850;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-hero {
  padding: 5.4rem 0 3.2rem;
  color: #ffffff;
  background: linear-gradient(120deg, var(--site-green), var(--site-teal));
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 880;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 48rem;
  margin: 0;
  color: #d1fae5;
  font-size: 1.05rem;
  line-height: 1.75;
}

.filter-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-tags button,
.sort-select {
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #374151;
  background: #f9fafb;
  font-weight: 700;
  cursor: pointer;
}

.filter-tags button.is-active {
  color: #ffffff;
  border-color: var(--site-green);
  background: var(--site-green);
}

.sort-select {
  border-radius: 0.85rem;
  background: #ffffff;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-panel input {
  min-width: 0;
  border: 1px solid var(--site-line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  outline: 0;
}

.search-panel button {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1.2rem;
  color: #ffffff;
  background: var(--site-green);
  font-weight: 800;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25);
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.35);
  font-size: 2rem;
  transform: translateX(0.12rem);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  background: rgba(0, 0, 0, 0.38);
}

.player-start:hover span {
  transform: translateX(0.12rem) scale(1.08);
  background: var(--site-green);
}

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

.detail-card,
.sidebar-card {
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.detail-card h1 {
  margin: 0 0 0.85rem;
  color: #111827;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 880;
  letter-spacing: -0.04em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

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

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

.detail-meta span,
.detail-meta a,
.detail-tags span {
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 760;
}

.detail-meta a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-green), var(--site-teal));
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.detail-section {
  padding-top: 1.2rem;
  border-top: 1px solid var(--site-line);
}

.detail-section + .detail-section {
  margin-top: 1.2rem;
}

.detail-section h2 {
  margin: 0 0 0.75rem;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 850;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  text-align: justify;
}

.sidebar-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 1rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 850;
}

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

.related-card {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  transform: translateX(3px);
  background: #ecfdf5;
}

.related-card img {
  width: 5.2rem;
  height: 3.8rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card em {
  display: block;
  overflow: hidden;
  margin-top: 0.22rem;
  color: var(--site-muted);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 2rem;
  color: #cbd5e1;
  background: #0f172a;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 2rem;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.site-logo--footer .site-logo__text strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.site-footer__brand p {
  max-width: 30rem;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer__links h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

.site-footer__links a {
  color: #cbd5e1;
  font-size: 0.93rem;
}

.site-footer__links a:hover {
  color: #34d399;
}

.site-footer__bottom {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 4rem 1rem;
  color: var(--site-muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    gap: 1rem;
  }

  .site-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

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

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo__text strong {
    font-size: 1rem;
  }

  .site-logo__text em {
    display: none;
  }

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

  .hero-slide__image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.8));
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.1rem;
  }

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

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

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

  .detail-card {
    padding: 1rem;
  }
}
