:root {
  color-scheme: light;
  --sky-50: #eff6ff;
  --sky-100: #dbeafe;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
  line-height: 1.6;
}

body.detail-page {
  background: linear-gradient(180deg, #ecf7ff, var(--white) 40%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.86;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--white);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
}

.header-search input {
  width: 190px;
  padding: 9px 12px;
  color: var(--white);
  background: transparent;
}

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

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--white);
  padding: 8px 16px;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
}

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

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(255, 255, 255, 0.13);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  color: var(--white);
  background: transparent;
  padding: 8px 10px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(2, 132, 199, 0.94), rgba(37, 99, 235, 0.78) 48%, rgba(15, 23, 42, 0.82));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-action,
.ranking-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.ranking-play:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.dark {
  color: var(--sky-600);
  border-color: rgba(14, 165, 233, 0.24);
  background: var(--sky-50);
}

.primary-button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  inset: auto 24px 24px auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.38);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

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

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

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-400), var(--blue-600));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
  font-weight: 900;
}

.section-action {
  min-height: 40px;
  padding-inline: 18px;
  color: var(--sky-600);
  background: var(--sky-50);
}

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

.featured-grid .movie-card-large {
  grid-row: span 2;
  grid-column: span 1;
}

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

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-200);
}

.movie-card-large .movie-poster {
  aspect-ratio: 4 / 5;
}

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

.movie-card:hover .movie-poster img,
.ranking-item:hover .ranking-thumb img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0.88;
}

.duration-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--sky-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-tags {
  margin-bottom: 10px;
}

.movie-tags span,
.detail-tags span {
  color: var(--sky-700);
  background: var(--sky-50);
}

.movie-card h3,
.ranking-content h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.ranking-content h2 a:hover {
  color: var(--sky-600);
}

.movie-card p,
.ranking-content p,
.category-tile p,
.category-overview-block p,
.text-card p {
  margin: 0;
  color: var(--slate-600);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.category-band {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

.rank-band {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
}

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

.category-tile {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-400), var(--blue-600));
  font-weight: 900;
}

.category-tile strong {
  color: var(--slate-800);
  font-size: 18px;
}

.category-preview {
  display: grid;
  gap: 4px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 12px;
}

.cta-panel {
  padding: clamp(34px, 6vw, 60px);
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero,
.detail-top {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
}

.page-hero::before,
.detail-top::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 8%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(24px);
}

.page-hero .container,
.detail-top .container {
  position: relative;
  z-index: 2;
}

.page-hero {
  padding: 64px 0;
}

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

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.48);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--slate-50);
  box-shadow: inset 0 0 0 1px var(--slate-200);
}

.stacked-sections {
  display: grid;
  gap: 44px;
}

.category-overview-block {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--slate-200);
}

.category-overview-block:last-child {
  border-bottom: 0;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 60px 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  font-size: 20px;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ranking-play {
  color: var(--white);
  background: var(--sky-500);
}

.search-page-form {
  display: flex;
  max-width: 680px;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: transparent;
}

.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 46px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-top {
  padding: 36px 0 54px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.player-card,
.detail-side,
.text-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000000;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

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

.player-ring {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-ring {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--blue-600);
}

.video-player.is-playing .player-cover {
  display: none;
}

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

.detail-side-body {
  padding: 24px;
  color: var(--slate-800);
}

.category-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-weight: 900;
}

.detail-side h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.detail-side p {
  margin: 0 0 22px;
  color: var(--slate-600);
}

.detail-content {
  padding-bottom: 20px;
}

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

.movie-detail-text h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 26px;
}

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

.movie-detail-text p {
  font-size: 17px;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-50);
  font-size: 13px;
  font-weight: 800;
}

.detail-tags {
  margin-top: 28px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

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

.text-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 26px;
}

.accent-card {
  display: grid;
  align-content: start;
  gap: 14px;
  background: linear-gradient(180deg, var(--sky-50), var(--white));
}

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

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

.footer-brand .brand-mark {
  color: var(--white);
  background: var(--sky-500);
}

.site-footer p {
  color: var(--slate-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--sky-400);
  font-size: 18px;
}

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

.site-footer a {
  color: var(--slate-300);
}

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

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-400);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .desktop-nav {
    margin-left: auto;
  }

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .detail-side img {
    height: 100%;
    aspect-ratio: auto;
  }

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding-top: 36px;
    padding-bottom: 74px;
  }

  .hero-poster {
    width: min(70vw, 280px);
    transform: rotate(0deg);
  }

  .featured-grid,
  .movie-grid.three-cols,
  .movie-grid.four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-item {
    grid-template-columns: 44px 120px minmax(0, 1fr);
  }

  .ranking-play {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero h1 {
    font-size: 36px;
  }

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

  .featured-grid,
  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-large .movie-poster,
  .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    padding: 42px 0;
  }

  .filter-panel,
  .search-page-form {
    border-radius: 20px;
  }

  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ranking-thumb {
    grid-column: 1 / -1;
  }

  .ranking-content,
  .ranking-play {
    grid-column: 1 / -1;
  }

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

  .detail-side img {
    aspect-ratio: 16 / 10;
  }

  .player-ring {
    width: 68px;
    height: 68px;
  }

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