:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --green-600: #16a34a;
  --blue-600: #2563eb;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --violet-600: #7c3aed;
  --cyan-600: #0891b2;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--emerald-50) 0%, #ffffff 36%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--emerald-800), var(--green-600));
  box-shadow: var(--shadow-md);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  color: var(--white);
  font-size: 21px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand:hover .brand-mark {
  background: rgba(255, 255, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--emerald-950);
}

.hero-stage,
.hero-slide,
.hero-slide > img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.08);
}

.hero-shade {
  background:
    radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.30), transparent 30%),
    linear-gradient(90deg, rgba(2, 44, 34, 0.94), rgba(6, 95, 70, 0.72) 48%, rgba(2, 44, 34, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 88px 0 126px;
  max-width: 1180px;
}

.hero-kicker,
.section-kicker,
.category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #bbf7d0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 22px 0 10px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-title-line {
  max-width: 760px;
  margin: 0 0 14px;
  color: #d1fae5;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(236, 253, 245, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-info .primary-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.section-more,
.category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--emerald-800);
  background: var(--white);
  padding: 14px 24px;
  box-shadow: var(--shadow-md);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ghost-btn {
  color: var(--white);
  padding: 13px 23px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: #bbf7d0;
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.hero-search input,
.filter-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

.hero-search input {
  padding: 0 18px;
  min-height: 48px;
}

.hero-search button,
.filter-input-wrap button {
  border: 0;
  color: var(--white);
  background: var(--emerald-600);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.feature-panel,
.content-section,
.filter-bar,
.ranking-list,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-panel {
  position: relative;
  z-index: 10;
  margin-top: -42px;
}

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

.feature-tile {
  display: flex;
  min-height: 155px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-700), var(--green-600));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.feature-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.feature-tile span {
  font-weight: 900;
  font-size: 18px;
}

.feature-tile strong {
  font-size: 22px;
  line-height: 1.25;
}

.feature-tile em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.content-section {
  padding: 72px 0;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-white {
  background: transparent;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.rank-panel-head h2,
.story-card h2 {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head.compact h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-more {
  color: var(--emerald-700);
  background: var(--white);
  padding: 11px 18px;
  box-shadow: var(--shadow-sm);
}

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

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--slate-200);
}

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

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

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.year-badge {
  right: 12px;
  background: var(--emerald-600);
}

.region-badge {
  left: 12px;
  background: rgba(15, 23, 42, 0.76);
}

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

.movie-card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body h2 a:hover {
  color: var(--emerald-700);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-700);
  font-size: 13px;
}

.meta-line span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--slate-100);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 90px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.rank-panel-head span {
  color: #86efac;
  font-weight: 900;
}

.rank-panel-head h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.rank-no {
  color: #bbf7d0;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info em {
  color: rgba(236, 253, 245, 0.72);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.rank-item b {
  color: #facc15;
}

.category-strip {
  padding: 72px 16px;
  background: linear-gradient(90deg, var(--emerald-700), var(--green-600));
}

.category-strip .section-head h2,
.category-strip .section-kicker {
  color: var(--white);
}

.category-links {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-links a,
.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--emerald-800);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.category-links a:hover,
.filter-chips button:hover,
.filter-chips button.active {
  background: var(--emerald-600);
  color: var(--white);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(187, 247, 208, 0.22), transparent 30%),
    linear-gradient(110deg, var(--emerald-900), var(--green-600));
  padding: 86px 16px;
  text-align: center;
}

.page-hero > div {
  width: min(820px, 100%);
  margin: 0 auto;
}

.page-hero .section-kicker,
.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  margin: 18px auto 0;
  color: rgba(236, 253, 245, 0.9);
  line-height: 1.9;
  font-size: 18px;
}

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

.category-card {
  min-height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.category-card a {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 280px;
}

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

.category-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card h2 {
  margin: 10px 0;
  font-size: 28px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 22px;
  color: var(--slate-500);
  line-height: 1.8;
}

.category-more {
  align-self: flex-start;
  color: var(--white);
  background: var(--emerald-600);
  padding: 10px 18px;
}

.tone-blue .category-more,
.tone-blue.feature-tile {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.tone-rose .category-more,
.tone-rose.feature-tile {
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.tone-slate .category-more,
.tone-slate.feature-tile {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.tone-amber .category-more,
.tone-amber.feature-tile {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.tone-orange .category-more,
.tone-orange.feature-tile {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.tone-violet .category-more,
.tone-violet.feature-tile {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

.tone-cyan .category-more,
.tone-cyan.feature-tile {
  background: linear-gradient(135deg, #0891b2, #0d9488);
}

.tone-lime .category-more,
.tone-lime.feature-tile {
  background: linear-gradient(135deg, #65a30d, #16a34a);
}

.filter-bar {
  margin-top: 36px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-input-wrap {
  display: flex;
  min-height: 52px;
  padding: 6px;
  border-radius: 999px;
  background: var(--slate-100);
}

.filter-input-wrap.large {
  min-height: 62px;
}

.filter-input-wrap input {
  padding: 0 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.empty-state {
  display: none;
  padding: 48px 16px;
  color: var(--slate-500);
  text-align: center;
  font-weight: 800;
}

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

.ranking-list {
  padding: 44px 0 72px;
}

.ranking-row {
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 76px 92px minmax(0, 1fr) 68px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.ranking-number {
  color: var(--emerald-700);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy small {
  display: block;
}

.ranking-copy strong {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-copy em {
  color: var(--slate-500);
  font-style: normal;
  line-height: 1.65;
}

.ranking-copy small {
  margin-top: 10px;
  color: var(--slate-700);
}

.ranking-row b {
  color: var(--amber-500);
  font-size: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  color: var(--white);
  background: var(--emerald-950);
}

.detail-backdrop,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-backdrop img {
  object-fit: cover;
  filter: brightness(0.33) blur(4px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 44, 34, 0.96), rgba(6, 78, 59, 0.72));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #bbf7d0;
  font-weight: 800;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: rgba(236, 253, 245, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span,
.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
}

.tag-list {
  margin: 18px 0 28px;
}

.tag-list span {
  color: var(--emerald-950);
  background: #bbf7d0;
}

.player-section {
  padding: 72px 0 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #020617;
}

.player-cover {
  z-index: 3;
  border: 0;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  background: #020617;
}

.player-cover img {
  object-fit: cover;
  filter: brightness(0.48);
  transition: transform 0.35s ease;
}

.player-cover:hover img {
  transform: scale(1.04);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%);
  font-size: 34px;
  padding-left: 5px;
}

.player-cover strong {
  position: absolute;
  left: 50%;
  top: calc(50% + 72px);
  transform: translateX(-50%);
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.05em;
}

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

.detail-content {
  padding: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.story-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.story-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.95;
}

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

.related-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-card strong,
.related-card span {
  display: block;
  padding: 0 12px;
}

.related-card strong {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card span {
  margin: 5px 0 14px;
  color: var(--slate-500);
  font-size: 12px;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 38px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 22px;
}

.footer-brand-block p,
.footer-column p,
.footer-column a,
.footer-bottom {
  color: rgba(236, 253, 245, 0.76);
  line-height: 1.8;
}

.footer-column h2 {
  color: #86efac;
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  font-size: 14px;
}

.hide-card {
  display: none !important;
}

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

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

  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: relative;
    top: auto;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

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

  .nav-link {
    text-align: center;
  }

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

  .hero-content {
    padding-top: 86px;
    padding-bottom: 166px;
  }

  .hero-search {
    bottom: 96px;
  }

  .hero-controls {
    bottom: 28px;
  }

  .feature-panel {
    margin-top: 24px;
  }

  .feature-grid,
  .movie-grid,
  .small-grid,
  .category-grid,
  .footer-inner,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-card a,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .category-card img {
    aspect-ratio: 16 / 9;
  }

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

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

  .ranking-row b {
    grid-column: 3;
  }

  .ranking-row img {
    width: 72px;
    height: 96px;
  }

  .filter-input-wrap,
  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .filter-input-wrap button,
  .hero-search button {
    min-height: 44px;
  }
}
