:root {
  --color-red-900: #7f1d1d;
  --color-red-800: #991b1b;
  --color-red-700: #b91c1c;
  --color-red-600: #dc2626;
  --color-red-500: #ef4444;
  --color-amber-500: #f59e0b;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-700: #334155;
  --color-slate-900: #0f172a;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.20);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, var(--color-slate-50), var(--color-slate-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-red-900), var(--color-red-700));
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.28);
}

.site-header__inner {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  min-width: 0;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-red-800);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-logo__text small {
  margin-top: 3px;
  color: #fecaca;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fee2e2;
  font-weight: 700;
}

.site-nav__link,
.site-nav__dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__dropdown > a:hover,
.site-nav__link.is-active,
.site-nav__dropdown > a.is-active {
  color: #fff;
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 210px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  color: var(--color-slate-700);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-nav__dropdown:hover .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__menu a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.site-nav__menu a:hover {
  color: var(--color-red-800);
  background: #fef2f2;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide__image {
  position: absolute;
  inset: 0;
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-slide__image span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(220, 38, 38, 0.34), transparent 34%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.52) 48%, rgba(15, 23, 42, 0.48));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--max-width)) / 2));
  padding: 48px 0 96px;
  color: #fff;
}

.hero-kicker,
.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--color-red-600);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  color: #e5e7eb;
  font-size: 14px;
}

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

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

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

.button--primary {
  color: #fff;
  background: var(--color-red-600);
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.35);
}

.button--primary:hover {
  background: var(--color-red-700);
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.hero-controls {
  position: absolute;
  right: max(20px, calc((100vw - var(--max-width)) / 2));
  bottom: 86px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(16px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--color-red-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  width: min(780px, calc(100% - 40px));
  transform: translateX(-50%);
}

.hero-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-strong);
}

.hero-search__box span {
  color: var(--color-red-700);
  font-size: 22px;
}

.hero-search__box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-slate-900);
  font-size: 16px;
}

.search-results {
  margin-top: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.search-results__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
}

.search-results__item:hover {
  background: #fef2f2;
}

.search-results__item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--color-slate-200);
}

.search-results__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-slate-900);
}

.search-results__item p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 13px;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 0;
}

.content-section--first {
  padding-top: 64px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--color-slate-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

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

.section-heading a {
  flex: 0 0 auto;
  color: var(--color-red-700);
  font-weight: 800;
}

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

.movie-grid--small {
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

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

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

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

.movie-card__shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__shade {
  opacity: 1;
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-amber-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(220, 38, 38, 0.90);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__body {
  padding: 13px;
}

.movie-card__body h3 {
  min-height: 44px;
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-slate-900);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__body h3 a:hover {
  color: var(--color-red-700);
}

.movie-card__body p {
  min-height: 40px;
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-slate-500);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--color-slate-500);
  font-size: 12px;
}

.movie-card__meta span {
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--color-slate-100);
}

.movie-card__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.movie-card__tags span {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--color-red-700);
  background: #fef2f2;
  font-size: 12px;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card__main {
  display: block;
  min-height: 170px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--color-red-800), var(--color-red-600));
}

.category-card__count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #fee2e2;
}

.category-card__links {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-card__links a {
  color: var(--color-slate-700);
  font-size: 14px;
}

.category-card__links a:hover {
  color: var(--color-red-700);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-card__poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: var(--color-slate-200);
}

.rank-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card__poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-red-600);
  font-size: 12px;
  font-weight: 900;
}

.rank-card__body h3 {
  margin: 2px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.rank-card__body h3 a:hover {
  color: var(--color-red-700);
}

.rank-card__body p {
  margin: 0 0 8px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.rank-card__body div {
  color: var(--color-slate-500);
  font-size: 12px;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(90deg, var(--color-red-800), var(--color-red-600));
}

.page-hero > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fee2e2;
  font-size: 18px;
}

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero__stats span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.filter-bar {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-bar__search {
  min-width: min(420px, 100%);
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--color-slate-100);
}

.filter-bar__search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-bar__select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-slate-500);
  font-size: 14px;
  font-weight: 800;
}

.filter-bar__select select {
  border: 0;
  outline: 0;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--color-slate-100);
  color: var(--color-slate-900);
}

.filter-bar__count {
  margin-left: auto;
  color: var(--color-red-700);
  font-weight: 900;
}

.player-shell {
  background: #000;
}

.player-wrap {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #000;
  opacity: 1;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.50;
}

.player-cover__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.30), rgba(0, 0, 0, 0.72));
}

.player-cover__button {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-red-600);
  color: #fff;
  font-size: 40px;
  box-shadow: 0 24px 50px rgba(220, 38, 38, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-cover__button {
  transform: scale(1.06);
  background: var(--color-red-700);
}

.player-cover strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  text-align: left;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.2;
}

.detail-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 38px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
}

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

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

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--color-red-700);
  background: #fef2f2;
  font-size: 14px;
  font-weight: 800;
}

.detail-card,
.side-card {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--color-slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-card--intro p {
  color: #7c2d12;
  font-size: 19px;
  font-style: italic;
}

.detail-card--review {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.tag-cloud {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.tag-cloud span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  font-size: 14px;
}

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

.detail-poster {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-slate-200);
  box-shadow: var(--shadow-soft);
}

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

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

.side-card__grid {
  display: grid;
  gap: 14px;
}

.side-card__grid .movie-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  box-shadow: none;
  border: 1px solid var(--color-slate-100);
}

.side-card__grid .movie-card__poster {
  height: 124px;
}

.side-card__grid .movie-card__body h3 {
  min-height: auto;
}

.side-card__grid .movie-card__body p,
.side-card__grid .movie-card__tags,
.side-card__grid .movie-card__play {
  display: none;
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
}

.footer-logo span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--color-red-600);
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #9ca3af;
}

.site-footer__nav h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.site-footer__nav a:hover {
  color: #fca5a5;
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .mobile-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-red-800);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link,
  .site-nav__dropdown > a {
    min-height: 44px;
  }

  .site-nav__dropdown {
    display: grid;
  }

  .site-nav__menu {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-slide__content {
    padding-bottom: 150px;
  }

  .hero-controls {
    right: 20px;
    bottom: 112px;
  }

  .hero-dots {
    bottom: 124px;
  }

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

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

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0 14px;
  }

  .site-logo__text strong {
    font-size: 17px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-slide__content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

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

  .hero-search {
    width: calc(100% - 28px);
  }

  .content-section {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  .category-grid-overview,
  .category-grid-overview--large,
  .rank-grid,
  .rank-grid--wide {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 86px 1fr;
  }

  .page-hero > div {
    padding: 52px 14px;
  }

  .filter-bar__count {
    margin-left: 0;
  }

  .detail-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .player-cover__button {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
