:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-ink: #172033;
  --color-muted: #667085;
  --color-soft: #e6edf7;
  --color-primary: #2563eb;
  --color-primary-dark: #1e3a8a;
  --color-cyan: #06b6d4;
  --color-ring: rgba(37, 99, 235, 0.28);
  --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.04);
}

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

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #dbeafe, #a5f3fc);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #dbeafe;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(37, 99, 235, 0.86);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(191, 219, 254, 0.16);
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

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

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

.hero-slide__backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: blur(1px) saturate(1.1);
}

.hero-slide__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.74) 45%, rgba(15, 23, 42, 0.88));
}

.hero-slide__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  min-height: 560px;
  gap: 56px;
  padding-block: 64px 110px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--color-primary);
}

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

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.genre-tags,
.movie-card__tags,
.detail-badges,
.tag-links,
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.genre-tags span,
.detail-badges span,
.tag-links a,
.hot-tags button {
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: var(--color-primary-dark);
  background: #eaf2ff;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 35px 70px rgba(2, 6, 23, 0.45);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-cover,
.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  gap: 10px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(16px);
}

.hero-thumb.is-active {
  color: #fff;
  border-color: #22d3ee;
  background: rgba(37, 99, 235, 0.42);
}

.hero-thumb img {
  width: 52px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.hero-thumb span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-search-section {
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.quick-search-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.quick-search-form,
.search-main-input {
  display: flex;
  gap: 12px;
}

.quick-search-form input,
.search-main-input input,
.filter-panel input,
.filter-panel select {
  min-height: 50px;
  border: 1px solid #d8e2f1;
  border-radius: 15px;
  outline: 0;
  background: #fff;
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.quick-search-form input,
.search-main-input input,
.filter-panel input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
}

.quick-search-form input:focus,
.search-main-input input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-ring);
}

.section-block {
  padding: 76px 0;
}

.section-blue {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f172a);
  color: #fff;
}

.section-muted {
  background: #eaf1fb;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-blue .section-heading p {
  color: #bfdbfe;
}

.section-more {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 900;
}

.section-blue .section-more {
  color: #a5f3fc;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.86)),
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.35), transparent 28%);
}

.poster-image {
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-image.is-missing {
  opacity: 0;
}

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

.movie-card__badge,
.movie-card__rank {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
}

.movie-card__badge {
  left: 10px;
}

.movie-card__rank {
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.movie-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card__body {
  padding: 14px;
}

.movie-card h3 {
  min-height: 44px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #182235;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card__meta,
.movie-card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card__desc {
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__tags {
  margin-top: 12px;
}

.movie-card__tags span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-list a:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.rank-no {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: #a5f3fc;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: #bfdbfe;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 10%, rgba(34, 211, 238, 0.38), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.small-hero .container {
  padding-block: 78px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #dbeafe;
  font-size: 18px;
}

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

.stat-grid div,
.category-tile,
.filter-panel,
.search-shell,
.sitemap-box {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stat-grid div {
  padding: 24px;
}

.stat-grid strong {
  display: block;
  color: var(--color-primary);
  font-size: 36px;
  line-height: 1;
}

.stat-grid span {
  color: var(--color-muted);
  font-weight: 800;
}

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

.category-tile {
  display: block;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-tile strong {
  display: block;
  font-size: 21px;
}

.category-tile span {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-primary);
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.filter-panel,
.search-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
}

.search-shell {
  display: block;
  padding: 22px;
}

.search-main-input {
  margin-bottom: 16px;
}

.filter-panel select {
  padding: 0 12px;
}

.filter-count {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.hot-tags button {
  color: var(--color-primary-dark);
  background: #eff6ff;
  cursor: pointer;
}

.detail-top {
  padding: 52px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.32), transparent 34%),
    linear-gradient(135deg, #0f172a, #172554 56%, #111827);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-start.is-hidden {
  display: none;
}

.player-start__icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.3);
}

.player-state {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  margin: 0;
  color: #bfdbfe;
  font-size: 13px;
  pointer-events: none;
}

.detail-side {
  position: sticky;
  top: 104px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.detail-actions .btn {
  flex: 1;
}

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

.detail-article,
.related-panel {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-article {
  padding: 34px;
}

.detail-article h1 {
  margin: 14px 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--color-primary-dark);
  font-size: 18px;
  font-weight: 800;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f1f5fb;
  color: var(--color-muted);
  font-weight: 700;
}

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

.detail-article p {
  color: #344054;
}

.detail-badges span,
.genre-tags span,
.tag-links a {
  color: var(--color-primary-dark);
  background: #eff6ff;
  border-color: #dbeafe;
}

.tag-links a:hover {
  color: #fff;
  background: var(--color-primary);
}

.related-panel {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.related-panel h2 {
  margin: 0 0 16px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-radius: 16px;
}

.related-list .movie-card__poster {
  aspect-ratio: 3 / 4;
}

.related-list .movie-card__body {
  padding: 12px;
}

.related-list .movie-card__desc,
.related-list .movie-card__tags,
.related-list .movie-card__play {
  display: none;
}

.sitemap-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.sitemap-box {
  padding: 24px;
}

.sitemap-box h2 {
  margin: 0 0 12px;
}

.sitemap-box ul {
  margin: 0 0 22px;
  padding-left: 20px;
}

.sitemap-box li {
  margin: 8px 0;
}

.sitemap-box a:hover {
  color: var(--color-primary);
}

.sitemap-movies ul {
  columns: 3;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: 46px;
}

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

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
}

.is-hidden-by-filter {
  display: none !important;
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide__inner,
  .detail-grid,
  .detail-layout,
  .split-layout,
  .quick-search-card,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .hero-slide__inner {
    gap: 30px;
    min-height: 650px;
    padding-block: 48px 170px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    justify-self: center;
  }

  .hero-controls {
    display: grid;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-side,
  .related-panel {
    position: static;
  }

  .detail-side {
    display: none;
  }

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

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

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 730px;
  }

  .hero-slide__inner {
    padding-block: 38px 180px;
  }

  .hero-actions,
  .quick-search-form,
  .search-main-input,
  .footer-bottom {
    flex-direction: column;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .quick-search-card,
  .detail-article {
    padding: 20px;
  }

  .section-block {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .mini-grid,
  .stat-grid,
  .category-grid,
  .filter-panel,
  .detail-meta {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .filter-panel input,
  .filter-panel .filter-count {
    grid-column: 1 / -1;
  }

  .filter-panel .btn {
    grid-column: 1 / -1;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card__desc,
  .movie-card__tags {
    display: none;
  }

  .ranking-list a {
    grid-template-columns: 38px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .sitemap-movies ul {
    columns: 1;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .mini-grid,
  .stat-grid,
  .category-grid,
  .filter-panel,
  .detail-meta {
    grid-template-columns: 1fr;
  }
}
