:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-accent: #10b981;
  --color-orange: #f97316;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-neutral-50);
  color: var(--color-neutral-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 229, 229, 0.82);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-text,
.footer-brand span:last-child {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--color-neutral-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
  background: #e0f2fe;
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.page-search,
.sort-select {
  min-height: 42px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  outline: none;
  color: var(--color-neutral-900);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.page-search:focus,
.sort-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.header-search button,
.mobile-search button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--color-neutral-900);
  color: #ffffff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-neutral-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-neutral-900);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--color-neutral-200);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-neutral-100);
  font-weight: 700;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.26);
}

.btn-secondary {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
  margin-top: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-shell {
  padding: 28px 0 44px;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 36%), radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%);
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--color-neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 25, 0.96) 0%, rgba(9, 13, 25, 0.74) 48%, rgba(9, 13, 25, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 90%);
  padding: clamp(34px, 7vw, 78px);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-line {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags {
  margin: 0 0 28px;
  color: #bae6fd;
  font-weight: 700;
}

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

.hero-dots {
  position: absolute;
  left: clamp(34px, 7vw, 78px);
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 56px;
  background: #ffffff;
}

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

.side-panel {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
}

.side-panel h2,
.section-head h2,
.ranking-copy h2,
.info-panel h2,
.detail-article h2 {
  margin: 0;
  color: var(--color-neutral-900);
  line-height: 1.15;
}

.side-more,
.section-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.mini-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.mini-card {
  display: grid;
  grid-template-columns: 32px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--color-neutral-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  background: #e0f2fe;
}

.mini-card img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-neutral-200);
}

.mini-card strong,
.mini-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card small {
  color: var(--color-neutral-500);
}

.mini-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-neutral-900);
  color: #ffffff;
  font-weight: 900;
}

.section {
  padding: clamp(46px, 7vw, 84px) 0;
}

.section-dark {
  background: var(--color-neutral-900);
  color: #ffffff;
}

.section-dark .section-head h2,
.section-dark .movie-card h2,
.section-dark .movie-card h2 a {
  color: #ffffff;
}

.section-dark .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .movie-card p,
.section-dark .movie-meta-line {
  color: rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.ranking-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-neutral-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(14, 165, 233, 0.35);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-neutral-200);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.72));
}

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

.poster-year {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 14px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-neutral-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 0 0 10px;
  color: var(--color-neutral-900);
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h2 a:hover {
  color: var(--color-primary-dark);
}

.movie-card p {
  min-height: 72px;
  margin: 0 0 14px;
  color: var(--color-neutral-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-size: 12px;
  font-weight: 700;
}

.tag-row a:hover {
  background: #e0f2fe;
  color: var(--color-primary-dark);
}

.category-overview {
  background: #ffffff;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-900);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #ffffff;
}

.category-tile strong {
  bottom: 58px;
  font-size: 22px;
}

.category-tile small {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.ranking-strip {
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.ranking-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--color-neutral-600);
}

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

.page-hero {
  padding: clamp(52px, 8vw, 96px) 0;
}

.gradient-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
}

.gradient-hero .eyebrow {
  color: #e0f2fe;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.category-card-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-neutral-200);
}

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

.category-card-large h2 {
  margin: 0 0 10px;
}

.category-card-large p {
  color: var(--color-neutral-600);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-size: 13px;
  font-weight: 700;
}

.category-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
}

.filter-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-sidebar h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.filter-sidebar nav {
  display: grid;
  gap: 8px;
}

.filter-sidebar nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--color-neutral-700);
  font-weight: 700;
}

.filter-sidebar nav a:hover,
.filter-sidebar nav a.active {
  background: #e0f2fe;
  color: var(--color-primary-dark);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar-right {
  justify-content: flex-end;
}

.page-search {
  width: min(380px, 100%);
}

.sort-select {
  min-width: 150px;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-neutral-900);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.96), rgba(8, 13, 24, 0.72), rgba(8, 13, 24, 0.2));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 64px;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 54px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-title-row h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-title-row p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
  font-size: 30px;
}

.detail-article {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article h2 {
  margin: 28px 0 12px;
  font-size: 28px;
}

.detail-article h2:first-of-type {
  margin-top: 22px;
}

.detail-article p {
  margin: 0;
  color: var(--color-neutral-700);
  font-size: 17px;
  white-space: pre-line;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-panel {
  padding: 22px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.info-panel h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--color-neutral-100);
  padding-bottom: 10px;
}

.info-panel dt {
  color: var(--color-neutral-500);
}

.info-panel dd {
  margin: 0;
  color: var(--color-neutral-900);
  text-align: right;
  font-weight: 800;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h2 {
  font-size: 17px;
}

.site-footer {
  background: var(--color-neutral-900);
  color: #ffffff;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, 0.7fr));
  gap: 34px;
}

.site-footer p {
  max-width: 520px;
  color: var(--color-neutral-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--color-neutral-300);
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-neutral-400);
}

.search-page-form {
  margin-top: 26px;
  max-width: 660px;
}

.search-page-form input {
  flex: 1;
  min-height: 52px;
}

.hidden-card {
  display: none;
}

@media (max-width: 1180px) {
  .hero-grid,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

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

@media (max-width: 900px) {
  .nav-links,
  .header-search {
    display: none;
  }

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

  .hero-slider {
    min-height: 560px;
  }

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .ranking-list,
  .footer-grid,
  .category-layout {
    grid-template-columns: 1fr 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .category-layout {
    gap: 22px;
  }
}

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

  .nav-wrap {
    min-height: 66px;
  }

  .hero-shell {
    padding-top: 16px;
  }

  .hero-slider {
    min-height: 610px;
    border-radius: 18px;
  }

  .hero-content {
    width: 100%;
    padding: 30px 22px;
  }

  .hero-dots {
    left: 22px;
    bottom: 22px;
  }

  .hero-actions,
  .toolbar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .ranking-list,
  .footer-grid,
  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .category-card-cover {
    min-height: 180px;
  }

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

  .page-search,
  .sort-select {
    width: 100%;
  }

  .detail-hero {
    min-height: 360px;
  }

  .detail-hero-content {
    padding-top: 32px;
  }

  .breadcrumb {
    margin-bottom: 34px;
  }

  .detail-article,
  .info-panel {
    padding: 20px;
  }
}
