* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --yellow: #facc15;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
  font: inherit;
}

.container-custom {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 30px rgb(249 115 22 / 0.35);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb923c;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 1.6rem;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #05070d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 3rem;
  align-items: center;
  color: var(--white);
}

.hero-copy,
.page-hero-content,
.detail-copy {
  animation: fadeInUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #fed7aa;
  background: rgb(249 115 22 / 0.16);
  border: 1px solid rgb(251 146 60 / 0.35);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  color: #e5e7eb;
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  line-height: 1.7;
}

.hero-tags,
.detail-meta,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-tags span,
.detail-meta span,
.chip-list span {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #f9fafb;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.65rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.btn-secondary {
  color: var(--white);
  background: #1f2937;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-poster {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotate(1.5deg);
}

.hero-poster::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.22));
}

.hero-poster img,
.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #111827);
}

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

.hero-dot {
  width: 2.5rem;
  height: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  width: 3.4rem;
  background: var(--orange);
}

.category-band {
  padding: 3rem 0;
  background: var(--white);
}

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

.category-tile,
.category-overview {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  border-radius: 1rem;
  color: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--tile-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

.category-tile::after,
.category-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgb(17 24 39 / 0.84), rgb(249 115 22 / 0.68));
}

.category-tile:hover,
.category-overview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.category-tile:hover::before,
.category-overview:hover::before {
  transform: scale(1.12);
}

.category-tile h3,
.category-overview h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}

.category-tile p,
.category-overview p {
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  line-height: 1.65;
}

.category-overview {
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
}

.category-overview span {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: #fed7aa;
  font-weight: 800;
}

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

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fefce8);
}

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

.dark-section .section-title,
.dark-section .section-heading p {
  color: var(--white);
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-link {
  color: var(--orange-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

.card {
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1f2937, #111827);
}

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

.card:hover .poster-wrap img,
.list-card:hover img {
  transform: scale(1.08);
}

.year-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  color: var(--white);
  background: rgb(0 0 0 / 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgb(0 0 0 / 0.0);
  opacity: 0;
  font-size: 2.2rem;
  transition: opacity 0.25s ease, background 0.25s ease;
}

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

.card-body {
  padding: 1rem;
}

.card-body h3,
.list-info h3 {
  display: -webkit-box;
  min-height: 2.6rem;
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.25s ease;
}

.card:hover h3,
.list-card:hover h3 {
  color: var(--orange-dark);
}

.card-body p,
.list-info p {
  display: -webkit-box;
  min-height: 2.7rem;
  margin: 0 0 0.8rem;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.card-meta span:first-child,
.meta-line span:first-child {
  color: var(--orange-dark);
  background: #ffedd5;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

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

.list-card {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.list-poster {
  position: relative;
  width: 12rem;
  flex: 0 0 12rem;
  overflow: hidden;
  background: #111827;
}

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

.list-info {
  padding: 1rem 1rem 1rem 0;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.slim-hero {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.category-hero {
  padding: 6rem 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #fed7aa;
  font-size: 0.9rem;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: grid;
  gap: 0.45rem;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgb(249 115 22 / 0.16);
}

.empty-state {
  display: none;
  margin: 3rem 0 0;
  padding: 2rem;
  text-align: center;
  color: var(--gray-500);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.movie-card.is-hidden {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 4rem 7rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-row img {
  width: 7rem;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #111827;
}

.rank-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.rank-row p {
  display: -webkit-box;
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: var(--gray-500);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-row span:last-child {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.ranking-preview {
  background: var(--gray-50);
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  box-shadow: var(--shadow-2xl);
}

.detail-copy .btn-primary {
  margin-top: 0.25rem;
}

.player-section {
  padding: 4rem 0;
  background: #05070d;
  color: var(--white);
}

.player-section .section-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #000000;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask span {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgb(249 115 22 / 0.45);
  font-size: 2rem;
  text-indent: 0.15rem;
}

.video-player.is-playing .play-mask {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text-section {
  background: var(--gray-50);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
}

.text-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.text-card h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

.text-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.accent-card {
  color: var(--white);
  background: linear-gradient(135deg, #1f2937, #111827);
}

.accent-card p {
  color: #e5e7eb;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

.site-footer p {
  max-width: 32rem;
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 0.5rem 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 1.2rem 1rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: #9ca3af;
  font-size: 0.92rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem;
    border-radius: 0.9rem;
    background: #111827;
    box-shadow: var(--shadow-xl);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem;
    border-radius: 0.65rem;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgb(249 115 22 / 0.12);
  }

  .hero-carousel {
    height: auto;
    min-height: 660px;
  }

  .hero-slide {
    position: relative;
    min-height: 660px;
    display: none;
  }

  .hero-slide.is-active {
    display: flex;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .category-grid,
  .overview-grid,
  .list-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .content-section {
    padding: 3rem 0;
  }

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

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

  .card-body {
    padding: 0.85rem;
  }

  .list-card {
    flex-direction: column;
  }

  .list-poster {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 10;
  }

  .list-info {
    padding: 1rem;
  }

  .rank-row {
    grid-template-columns: 3rem 5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .rank-num {
    width: 2.5rem;
    height: 2.5rem;
  }

  .rank-row img {
    width: 5rem;
  }

  .detail-hero {
    padding: 3rem 0;
  }

  .play-mask span {
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }
}
