:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--teal-50), var(--white) 42%, var(--cyan-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500), var(--blue-500));
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--teal-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.desktop-nav a,
.nav-dropdown > a {
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: #dffdf9;
  opacity: 1;
}

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

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 58px;
  display: grid;
  min-width: 190px;
  padding: 10px;
  color: var(--gray-800);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--teal-700, #0f766e);
  background: var(--teal-50);
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 6px 8px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--teal-700, #0f766e);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.spotlight {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gray-900), var(--gray-800));
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1s ease;
  pointer-events: none;
}

.spotlight-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
}

.spotlight-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.20)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.spotlight-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 42px;
  height: 100%;
  color: var(--white);
}

.spotlight-copy {
  max-width: 720px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.spotlight h1,
.spotlight h2 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.spotlight p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.spotlight-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.spotlight-poster {
  position: relative;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

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

.spotlight-poster:hover img {
  transform: scale(1.08);
}

.spotlight-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 52px;
  background: rgba(0, 0, 0, 0.20);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spotlight-poster:hover span {
  opacity: 1;
}

.spotlight-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  font-size: 30px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.spotlight-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.06);
}

.spotlight-arrow.prev {
  left: 18px;
}

.spotlight-arrow.next {
  right: 18px;
}

.spotlight-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.spotlight-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, background 0.2s ease;
}

.spotlight-dots button.is-active {
  background: var(--white);
  transform: scale(1.32);
}

.spotlight-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
}

.spotlight-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
  transition: width 0.4s ease;
}

.page-bg {
  min-height: 70vh;
  padding: 34px 0 4px;
  background: linear-gradient(180deg, var(--teal-50), var(--white) 45%, var(--cyan-50));
}

.section-block {
  margin-top: 36px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.intro-panel h2,
.section-heading h2,
.page-title h1 {
  margin: 0;
  color: var(--gray-800);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-panel h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.intro-panel p,
.page-title p {
  margin: 10px 0 0;
  color: var(--gray-600);
}

.wide-search,
.search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.wide-search input,
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
}

.wide-search button,
.search-form button,
.catalog-toolbar button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
  padding: 10px 18px;
  font-weight: 800;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading.light h2,
.section-heading.light .section-kicker {
  color: var(--white);
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--gray-100);
}

.tab-buttons button {
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: transparent;
  padding: 8px 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-buttons button.is-active {
  color: var(--white);
  background: var(--teal-500);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.movie-card,
.movie-list-card,
.info-card,
.side-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

.card-cover img,
.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
}

.play-badge,
.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 42px;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge,
.movie-list-card:hover .play-dot {
  opacity: 1;
}

.card-body {
  padding: 15px;
}

.card-body h3,
.list-info h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p,
.list-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span:first-child,
.meta-row span:first-child,
.detail-meta a,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-100);
  color: #0f766e;
  font-weight: 700;
}

.category-overview {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.70), rgba(207, 250, 254, 0.78));
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  background: var(--white);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
}

.category-tile h3 {
  margin: 0;
  font-size: 18px;
}

.category-tile p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.ranking-panel {
  padding: 28px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-500), var(--cyan-500));
  box-shadow: var(--shadow);
}

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

.movie-list-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-list-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.list-cover {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  background: var(--gray-200);
}

.list-info {
  padding: 16px;
}

.masonry-grid {
  columns: 3 260px;
  column-gap: 22px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 22px;
}

.latest-rail-wrap {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--teal-100), var(--cyan-100));
}

.latest-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.rail-item {
  scroll-snap-align: start;
}

.link-more {
  color: var(--teal-600);
  font-weight: 800;
}

.link-more.light {
  color: var(--white);
}

.page-title {
  padding: 18px 0 10px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-600);
  font-weight: 800;
}

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.category-large-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-large-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 230px;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--gray-200);
}

.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-large-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.category-large-body h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.category-large-body p {
  margin: 0;
  color: var(--gray-600);
}

.category-enter {
  margin-top: 18px;
  color: var(--teal-600);
  font-weight: 900;
}

.catalog-toolbar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.catalog-toolbar label,
.search-filters label {
  display: grid;
  gap: 5px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.catalog-toolbar select,
.search-filters select,
.search-filters input {
  min-width: 150px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
  padding: 10px 12px;
  background: var(--white);
}

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

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

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 52px 20px;
  text-align: center;
  color: var(--gray-500);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.ranking-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.36));
}

.ranking-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 340px;
  max-width: 760px;
}

.ranking-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
}

.ranking-hero p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.page-ranking {
  max-width: 960px;
}

.detail-page {
  min-height: 75vh;
  padding: 34px 0;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.26));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500));
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.32);
  font-size: 42px;
  text-indent: 5px;
}

.detail-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.detail-header h1 {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-line {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

.text-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.text-section h2,
.side-card h2,
.info-card h2 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.text-section p,
.info-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.review-box {
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-50), var(--cyan-50));
}

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

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.side-card + .side-card {
  position: static;
}

.side-related-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-related-item:hover {
  background: var(--teal-50);
}

.side-related-item img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.side-related-item span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-nav-card a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--teal-700, #0f766e);
  background: var(--teal-50);
  font-weight: 800;
}

.info-title {
  max-width: 880px;
}

.info-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  padding: 24px;
}

.site-footer {
  margin-top: 64px;
  color: var(--white);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 26px;
  padding: 42px 0;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--teal-100);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
}

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

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

  .spotlight-content {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

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

  .category-large-grid,
  .detail-layout,
  .info-layout {
    grid-template-columns: 1fr;
  }

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

  .side-card {
    position: static;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .spotlight {
    height: 560px;
  }

  .spotlight-content {
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
    padding: 36px 0 70px;
  }

  .spotlight-poster {
    display: none;
  }

  .spotlight h1,
  .spotlight h2 {
    font-size: 38px;
  }

  .spotlight p {
    font-size: 16px;
  }

  .spotlight-arrow {
    display: none;
  }

  .intro-panel,
  .category-large-link,
  .detail-header {
    grid-template-columns: 1fr;
  }

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

  .movie-list-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .list-cover {
    min-height: 118px;
  }

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

  .wide-search,
  .search-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .wide-search button,
  .search-form button {
    width: 100%;
  }

  .latest-rail {
    grid-auto-columns: 260px;
  }

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

  .detail-card {
    padding: 18px;
  }

  .detail-poster {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-large-link {
    min-height: auto;
  }

  .category-collage {
    min-height: 180px;
  }

  .catalog-toolbar,
  .search-filters {
    display: grid;
  }

  .catalog-toolbar label,
  .catalog-toolbar select,
  .search-filters label,
  .search-filters select,
  .search-filters input {
    width: 100%;
  }
}
