:root {
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 30px 80px rgba(15, 23, 42, 0.25);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--slate-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 {
  display: block;
  max-width: 100%;
}

button,
input {
  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.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-600);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--slate-200);
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-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%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 78px;
  color: var(--white);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: 1.08rem;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-tags span:first-child {
  background: var(--cyan-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button {
  color: var(--white);
  background: var(--cyan-600);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.28);
}

.primary-button:hover {
  background: var(--cyan-700);
  box-shadow: 0 24px 48px rgba(8, 145, 178, 0.34);
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.ghost-button.light {
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.82);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.section {
  padding: 70px 0;
}

.section-light {
  background: var(--slate-50);
}

.section-white {
  background: var(--white);
}

.section-gradient {
  background: linear-gradient(135deg, #ecfeff, #eff6ff 55%, #f8fafc);
}

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

.section-heading h2,
.section-title-row h2,
.side-card h2,
.story-card h2,
.footer-inner h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading p,
.compact-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

.inline-heading,
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.text-link,
.section-title-row a {
  color: var(--cyan-600);
  font-weight: 800;
}

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

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

.preview-grid,
.mini-grid,
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card.hidden,
.ranking-row.hidden {
  display: none;
}

.movie-card-link,
.ranking-row a {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover,
.ranking-row a:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

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

.movie-card-link:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.68), transparent 58%);
  opacity: 0.78;
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: scale(0.92);
  transition: transform 0.25s ease, background 0.25s ease;
}

.movie-card-link:hover .play-badge {
  background: var(--cyan-600);
  transform: scale(1);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta {
  color: var(--cyan-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--slate-800);
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 900;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
  backdrop-filter: none;
  font-size: 0.78rem;
}

.horizontal-scroller {
  overflow-x: auto;
  padding-bottom: 12px;
}

.horizontal-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

.wide-card {
  width: 300px;
  flex: 0 0 auto;
}

.category-preview-list {
  display: grid;
  gap: 44px;
}

.category-preview .section-title-row {
  margin-bottom: 18px;
}

.section-title-row h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--slate-800);
  font-size: 1.35rem;
  font-weight: 900;
}

.section-title-row h3 span {
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: var(--cyan-600);
}

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

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: none;
  color: var(--slate-800);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.filter-groups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--white);
  background: var(--cyan-600);
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-weight: 700;
}

.empty-state.show {
  display: block;
}

.ranking-card,
.side-card,
.story-card,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ranking-card {
  position: sticky;
  top: 90px;
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 38px 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-number {
  color: var(--cyan-600);
  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-list img {
  width: 66px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  color: var(--slate-800);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.compact-card em {
  display: block;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.35), transparent 38%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.small-hero {
  padding: 70px 0;
}

.category-hero {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.32), transparent 42%), linear-gradient(135deg, var(--slate-950), #143344);
}

.ranking-hero {
  background: radial-gradient(circle at 24% 8%, rgba(34, 211, 238, 0.28), transparent 38%), linear-gradient(135deg, #030712, #0f172a 58%, #164e63);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.slim-actions {
  margin-top: 26px;
}

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

.category-tile a {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile a:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  overflow: hidden;
  background: var(--slate-900);
}

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

.category-thumb-fallback {
  display: block;
  height: 150px;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
}

.category-tile-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.category-tile-body strong {
  color: var(--slate-800);
  font-size: 1.3rem;
  font-weight: 900;
}

.category-tile-body em {
  color: var(--slate-600);
  font-style: normal;
}

.ranking-layout {
  display: grid;
  gap: 20px;
}

.ranking-search {
  max-width: 720px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 180px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number.large {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  font-size: 1.15rem;
}

.ranking-row img {
  width: 180px;
  height: 102px;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-row-body strong {
  display: block;
  color: var(--slate-800);
  font-size: 1.18rem;
  font-weight: 900;
}

.ranking-row-body em {
  display: block;
  margin: 4px 0 6px;
  color: var(--cyan-600);
  font-style: normal;
  font-weight: 800;
}

.ranking-row-body p {
  margin: 0;
  color: var(--slate-600);
}

.ranking-score {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan-700);
  background: #cffafe;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(2px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(8, 145, 178, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  min-height: 540px;
  padding: 72px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

.detail-intro h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-intro p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 1.1rem;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  color: #cffafe;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 14px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.16));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-600);
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.45);
  font-size: 2rem;
  transform: translateX(2px);
}

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

.story-card,
.side-card {
  padding: 26px;
}

.story-card p {
  margin: 14px 0 0;
  color: var(--slate-600);
  font-size: 1.02rem;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 800;
}

.side-card a {
  color: var(--cyan-600);
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 86px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.site-footer {
  margin-top: 0;
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

.footer-inner h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}

.footer-inner p {
  max-width: 360px;
  color: var(--slate-400);
}

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

.footer-inner a,
.footer-inner li {
  color: var(--slate-400);
  font-size: 0.95rem;
}

.footer-inner a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .preview-grid,
  .mini-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 0;
  }

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

  .ranking-row a {
    grid-template-columns: 56px 120px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

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

@media (max-width: 640px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 48px 0;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 62px;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .inline-heading,
  .section-title-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .feature-grid,
  .movie-grid,
  .preview-grid,
  .mini-grid,
  .catalog-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    padding: 16px;
  }

  .ranking-row a {
    grid-template-columns: 46px 92px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 92px;
    height: 66px;
  }

  .ranking-row-body p {
    display: none;
  }

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

  .detail-intro h1 {
    font-size: 2.2rem;
  }

  .story-card,
  .side-card {
    padding: 20px;
  }

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