* {
  box-sizing: border-box;
}

:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-700);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.26);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 0.75rem;
}

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

.nav-link {
  position: relative;
  overflow: hidden;
  padding: 10px 13px;
  color: var(--gray-700);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(37, 99, 235, 0.08));
}

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

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px 16px;
  background: #ffffff;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--cyan);
  background: var(--gray-100);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 52%, #1e3a8a 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
  padding: 88px 0 124px;
}

.hero-copy h1 {
  margin: 22px 0 24px;
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5.65rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-badge,
.hero-slide-kicker,
.category-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-badge {
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-actions,
.hero-links,
.hero-controls,
.watch-topline,
.detail-meta,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 750;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}

.btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn-outline:hover {
  color: var(--blue);
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.25);
}

.btn.full {
  width: 100%;
}

.hero-links {
  margin-top: 28px;
}

.hero-links a,
.hero-inline-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}

.hero-links a:hover,
.hero-inline-links a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-carousel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.hero-slides {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 24px;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 310px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.16), rgba(8, 145, 178, 0.25));
}

.hero-poster img,
.featured-card img,
.poster-wrap img,
.side-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #164e63, #1e3a8a);
}

.hero-slide-copy {
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.98));
}

.hero-slide-kicker {
  padding: 6px 10px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.22);
}

.hero-slide-copy h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2.45rem);
  line-height: 1.15;
}

.hero-slide-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-slide-link {
  display: inline-flex;
  margin-top: 18px;
  color: #67e8f9;
  font-weight: 800;
}

.hero-controls {
  justify-content: center;
  margin-top: 14px;
}

.hero-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  opacity: 0.6;
}

.hero-dot.active {
  width: 24px !important;
  opacity: 1;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  fill: var(--gray-50);
}

.stat-section {
  position: relative;
  z-index: 3;
  margin-top: -54px;
  padding-bottom: 36px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.stat-card {
  min-height: 118px;
  padding: 22px 14px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.movie-card:hover,
.featured-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 1.7rem;
  line-height: 1.2;
}

.stat-card span {
  color: var(--gray-500);
  font-size: 0.92rem;
}

.section-block {
  padding: 78px 0;
  background: var(--gray-50);
}

.section-white {
  background: #ffffff;
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.section-heading span,
.page-hero span {
  margin-bottom: 10px;
  color: var(--cyan);
}

.section-heading.inverted span,
.section-heading.inverted h2,
.section-heading.inverted p {
  color: #ffffff;
}

.section-heading h2,
.page-hero h1,
.text-panel h2,
.detail-card h1,
.detail-card h2,
.related-card h2,
.side-poster-card h2 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.16;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--gray-500);
}

.section-heading.inverted h2,
.section-heading.inverted p {
  color: #ffffff;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.text-link.light {
  color: #67e8f9;
}

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

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

.featured-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 24px;
  background: var(--slate);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.94));
}

.featured-overlay span,
.movie-card-meta span,
.detail-category,
.poster-year,
.rank-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.featured-overlay span {
  padding: 6px 10px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.36);
}

.featured-overlay h3 {
  margin: 12px 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.featured-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.movie-card {
  display: block;
  overflow: hidden;
  color: var(--gray-700);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(8, 145, 178, 0.36);
}

.poster-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #164e63, #1e3a8a);
}

.movie-card:hover .poster-wrap img,
.featured-card:hover img {
  transform: scale(1.06);
}

.poster-wrap img,
.featured-card img {
  transition: transform 0.35s ease;
}

.poster-year {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.22);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-card-meta span {
  padding: 4px 8px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.08);
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.6em;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.1rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--gray-700);
  border-radius: 999px;
  background: var(--gray-100);
  font-size: 0.78rem;
}

.tag-row.large span {
  padding: 8px 13px;
  font-size: 0.9rem;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  color: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile h3,
.category-tile h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.category-tile p,
.category-sample,
.category-kicker {
  position: relative;
  z-index: 1;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-kicker {
  color: rgba(255, 255, 255, 0.74);
}

.category-sample {
  margin-top: 18px;
  color: #ffffff;
  font-weight: 800;
}

.tile-cyan {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.tile-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.tile-green {
  background: linear-gradient(135deg, #059669, #0d9488);
}

.tile-orange {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.tile-indigo {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.tile-purple {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.tile-red {
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.tile-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 130px;
}

.movie-card-compact .poster-wrap {
  height: 100%;
  min-height: 150px;
}

.movie-card-compact h3 {
  min-height: auto;
}

.movie-card-compact p {
  min-height: auto;
}

.cta-section {
  padding: 78px 0;
  background: #ffffff;
}

.cta-card {
  padding: 54px 28px;
  text-align: center;
  color: #ffffff;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 52%, #0891b2);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-card p {
  margin: 0 auto 26px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 62px 0;
  color: #ffffff;
  background: linear-gradient(110deg, var(--cyan), var(--blue));
}

.page-hero h1 {
  max-width: 920px;
  color: #ffffff;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.page-hero span {
  color: #cffafe;
}

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

.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.catalog-section {
  padding: 44px 0 78px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
}

.filter-card,
.detail-card,
.related-card,
.side-poster-card,
.text-panel,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-card {
  padding: 22px;
}

.filter-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 1.2rem;
}

.search-input,
.sort-label select,
.text-panel input,
.text-panel textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gray-700);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.sort-label select:focus {
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-buttons {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.filter-pill {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.sort-label {
  display: grid;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

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

.category-overview-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card .category-tile {
  border-radius: 0;
  box-shadow: none;
}

.category-overview-card .category-tile:hover {
  transform: none;
  box-shadow: none;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px 22px 22px;
}

.category-samples a {
  color: var(--gray-700);
}

.category-samples a:hover {
  color: var(--cyan);
}

.watch-section {
  padding: 18px 0 34px;
  background: #020617;
}

.watch-topline {
  justify-content: space-between;
  padding: 6px 0 16px;
}

.watch-topline a {
  color: #cbd5e1;
  font-weight: 700;
}

.watch-topline a:hover {
  color: #67e8f9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 26px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.82));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.28);
  font-size: 2rem;
}

.player-overlay strong {
  max-width: 800px;
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
}

.player-overlay em {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.detail-section {
  padding: 38px 0 78px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
}

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

.detail-card {
  padding: clamp(24px, 4vw, 42px);
}

.detail-category {
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.detail-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-meta {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-500);
}

.detail-card section {
  margin-top: 28px;
}

.detail-card h2,
.related-card h2,
.side-poster-card h2,
.text-panel h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.detail-card p,
.text-panel p {
  margin: 0;
  color: var(--gray-700);
}

.lead-text {
  font-size: 1.12rem;
  font-weight: 700;
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(37, 99, 235, 0.08));
}

.prev-next {
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.prev-next a {
  color: var(--cyan);
  font-weight: 750;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.side-poster-card,
.related-card {
  padding: 22px;
}

.side-poster-card img {
  height: 430px;
  border-radius: 16px;
  background: linear-gradient(135deg, #164e63, #1e3a8a);
}

.side-poster-card h2 {
  margin-top: 18px;
}

.side-poster-card p {
  margin: 0;
  color: var(--gray-500);
}

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

.text-panel {
  max-width: 900px;
  padding: clamp(24px, 5vw, 54px);
}

.text-panel h2:not(:first-child) {
  margin-top: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.about-grid div {
  padding: 20px;
  border-radius: 18px;
  background: var(--gray-100);
}

.about-grid strong,
.about-grid span {
  display: block;
}

.about-grid strong {
  color: var(--gray-900);
  font-size: 1.1rem;
}

.about-grid span {
  margin-top: 6px;
  color: var(--gray-500);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 58px 0;
}

.footer-logo .brand-title,
.footer-logo .brand-subtitle {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.footer-brand p,
.site-footer p {
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

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

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

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

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

  .hero-carousel,
  .catalog-sidebar,
  .detail-sidebar {
    position: static;
  }

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

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

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

  .header-inner {
    min-height: 66px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    gap: 28px;
    padding: 56px 0 92px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-slides {
    min-height: 500px;
  }

  .stat-grid,
  .movie-grid,
  .category-grid,
  .featured-grid,
  .rank-grid,
  .category-overview-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .cta-section {
    padding: 56px 0;
  }

  .section-heading.split {
    display: block;
  }

  .poster-wrap {
    height: 300px;
  }

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

  .movie-card-compact .poster-wrap {
    min-height: 130px;
  }

  .side-poster-card img {
    height: 360px;
  }

  .player-shell {
    border-radius: 16px;
  }

  .play-circle {
    width: 62px;
    height: 62px;
    font-size: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .hero-carousel {
    padding: 10px;
    border-radius: 22px;
  }

  .hero-slide {
    border-radius: 16px;
  }

  .hero-slide-copy {
    padding: 18px;
  }

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