:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-500: #06b6d4;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --green-500: #22c55e;
  --teal-600: #0d9488;
  --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-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.24);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: var(--gray-50);
}

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.nav-wrap {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.24);
}

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

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

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

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

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

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

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

.dropdown-panel a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-search {
  position: relative;
  flex: 1;
  max-width: 430px;
  margin-left: auto;
}

.nav-search input,
.mobile-panel input,
.search-hero-form input,
.filter-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
}

.nav-search input {
  height: 40px;
  padding: 0 44px 0 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 16px;
  background: rgba(29, 78, 216, 0.98);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel input {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
}

.mobile-panel button {
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 12px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--gray-900), var(--gray-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(59, 130, 246, 0.34), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding-block: 78px;
}

.hero-badge,
.mini-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  padding: 8px 16px;
  color: var(--white);
  background: var(--red-600);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.3);
}

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

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--blue-700);
}

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

.btn-outline {
  color: var(--blue-700);
  background: var(--blue-50);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

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

.section {
  padding: 56px 0;
}

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

.section-muted {
  background: var(--gray-100);
}

.section-hot {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.section-ranking-home,
.section-ranking-page {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.eyebrow {
  color: var(--blue-600);
}

.section-head--light .eyebrow,
.section-head--light h2,
.section-head--light .view-more {
  color: var(--white);
}

.view-more {
  color: var(--blue-700);
  font-weight: 800;
}

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

.scroll-controls {
  display: flex;
  gap: 8px;
}

.scroll-controls button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 50%;
}

.hot-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hot-row::-webkit-scrollbar {
  display: none;
}

.hot-row .movie-card {
  width: 286px;
  min-width: 286px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), #e0f2fe);
}

.movie-card--mini .poster-link {
  aspect-ratio: 16 / 12;
}

.poster-link img,
.wide-poster img,
.rank-cover img,
.category-cover-stack img,
.podium-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.wide-card:hover img,
.ranking-item:hover img,
.podium-card:hover img {
  transform: scale(1.08);
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  opacity: 0;
  background: rgba(37, 99, 235, 0.88);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.quality-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--red-600);
  border-radius: 999px;
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.card-meta a {
  color: var(--blue-700);
  font-weight: 800;
}

.movie-card h3,
.wide-card h3,
.ranking-item h3,
.podium-card h2 {
  margin: 0;
  line-height: 1.3;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.ranking-item h3 a:hover,
.podium-card h2 a:hover {
  color: var(--blue-700);
}

.movie-card p,
.wide-card p,
.ranking-item p,
.podium-card p,
.category-tile p,
.category-summary-card p,
.side-card p {
  color: var(--gray-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--gray-600);
  font-size: 0.78rem;
  background: var(--gray-100);
  border-radius: 999px;
}

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

.category-tile,
.category-summary-card,
.side-card,
.detail-info-card,
.player-card,
.wide-card,
.filter-toolbar,
.podium-card {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.category-tile {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--blue-50);
}

.category-cover-stack a,
.category-cover-stack img {
  min-height: 96px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.category-tile span {
  color: var(--blue-700);
  font-weight: 800;
}

.wide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px;
}

.wide-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}

.mini-badge {
  padding: 6px 10px;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 999px;
}

.ranking-grid-home,
.ranking-list {
  display: grid;
  gap: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  border-radius: 50%;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

.rank-info p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-info span {
  color: var(--gray-500);
  font-size: 0.84rem;
}

.page-hero {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.page-hero h1 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.page-hero .eyebrow,
.page-hero a {
  color: var(--white);
}

.page-hero--category {
  background: linear-gradient(135deg, var(--gray-900), var(--blue-700));
}

.page-hero--ranking {
  background: linear-gradient(135deg, var(--teal-600), var(--green-500));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.detail-shell .breadcrumb {
  color: var(--gray-500);
}

.detail-shell .breadcrumb a:hover {
  color: var(--blue-700);
}

.category-summary-list {
  display: grid;
  gap: 24px;
}

.category-summary-card {
  padding: 22px;
}

.category-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-summary-head h2 {
  margin: 5px 0;
}

.filter-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.filter-toolbar label {
  display: grid;
  flex: 1;
  gap: 8px;
  color: var(--gray-600);
  font-weight: 800;
}

.filter-toolbar input,
.search-hero-form input {
  min-height: 46px;
  padding: 0 16px;
  color: var(--gray-900);
  background: var(--gray-100);
  border-radius: 14px;
}

.toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-buttons button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 0;
  border-radius: 999px;
}

.toolbar-buttons button:hover,
.toolbar-buttons button.is-active {
  color: var(--white);
  background: var(--blue-600);
}

.filter-count {
  margin: 0 0 22px;
  color: var(--gray-500);
}

.empty-state {
  padding: 28px;
  color: var(--gray-600);
  text-align: center;
  background: var(--gray-100);
  border-radius: 18px;
}

.search-hero-form {
  display: flex;
  max-width: 650px;
  gap: 12px;
  margin-top: 26px;
}

.search-hero-form input {
  background: rgba(255, 255, 255, 0.92);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.podium-card {
  overflow: hidden;
  padding: 18px;
  color: var(--gray-900);
}

.podium-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-600), var(--orange-500));
  border-radius: 999px;
}

.podium-card a:first-of-type {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 18px;
}

.detail-shell {
  padding: 34px 0 60px;
  background: var(--gray-50);
}

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

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

.player-card {
  overflow: hidden;
  background: var(--gray-900);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #1f2937, #020617 70%);
}

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

.big-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: var(--white);
  font-size: 2.1rem;
  background: rgba(37, 99, 235, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.38);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.big-play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-box.is-playing .big-play-button {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
}

.detail-info-card,
.side-card {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-title-row h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.08rem;
}

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

.meta-list div {
  padding: 14px;
  background: var(--gray-100);
  border-radius: 16px;
}

.meta-list dt {
  color: var(--gray-500);
  font-size: 0.78rem;
}

.meta-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.prose-block {
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.prose-block + .prose-block {
  margin-top: 22px;
}

.prose-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.prose-block p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.section-inline {
  padding: 22px 0 0;
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.side-ranking {
  display: grid;
  gap: 12px;
}

.ranking-item--compact {
  grid-template-columns: 38px 74px 1fr;
  gap: 10px;
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.ranking-item--compact .rank-number {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

.ranking-item--compact .rank-info p {
  display: none;
}

.ranking-item--compact .rank-info h3 {
  font-size: 0.92rem;
}

.ranking-item--compact .rank-info span {
  font-size: 0.75rem;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-links a {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    height: 520px;
  }

  .movie-grid--four,
  .movie-grid--six,
  .category-grid,
  .ranking-grid-home,
  .podium-grid,
  .wide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-sidebar {
    position: static;
  }

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

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

  .hero-carousel {
    height: 500px;
  }

  .hero-content {
    padding-block: 58px;
  }

  .hero-dots {
    right: 18px;
    bottom: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head,
  .category-summary-head,
  .filter-toolbar,
  .detail-title-row,
  .search-hero-form {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid--three,
  .movie-grid--four,
  .movie-grid--six,
  .category-grid,
  .ranking-grid-home,
  .podium-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .wide-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    align-items: start;
  }

  .rank-cover,
  .wide-poster {
    width: 100%;
  }

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

  .big-play-button {
    width: 66px;
    height: 66px;
    font-size: 1.6rem;
  }
}
