:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0f172a;
  --panel: rgba(31, 41, 55, 0.58);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red: #dc2626;
  --red-strong: #991b1b;
  --gold: #facc15;
  --green: #22c55e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.20), transparent 30rem),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.10), transparent 26rem),
    linear-gradient(180deg, #030712 0%, #111827 48%, #030712 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

main {
  min-height: 68vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.96), rgba(127, 29, 29, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35);
  font-size: 18px;
}

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

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

.brand-text small,
.footer-brand small {
  color: #fecaca;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #fee2e2;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef08a;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #fee2e2;
  background: rgba(0, 0, 0, 0.14);
}

.mobile-nav.open {
  display: grid;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.38), rgba(127, 29, 29, 0.08));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.62);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.72) 44%, rgba(3, 7, 18, 0.24) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.96) 0%, transparent 36%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  bottom: 106px;
  max-width: 720px;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fecaca;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.25);
  font-size: 14px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(31, 41, 55, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-control-row {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: min(1200px, calc(100% - 48px));
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

.hero-quick {
  display: flex;
  gap: 10px;
}

.hero-quick a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 14px;
}

.site-intro,
.content-section,
.detail-shell,
.article-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 0 16px;
}

.intro-icon,
.page-hero-icon {
  width: 80px;
  height: 80px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.28);
  font-size: 28px;
}

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

.site-intro p,
.page-hero p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-more {
  color: #f87171;
  white-space: nowrap;
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  background: rgba(31, 41, 55, 0.86);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.24);
}

.movie-card-compact {
  border-radius: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.movie-card-compact:hover {
  background: transparent;
  box-shadow: none;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(17, 24, 39, 0.92));
  border: 1px solid var(--line);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.year-badge,
.category-count {
  position: absolute;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
  line-height: 1.3;
}

.type-badge {
  left: 10px;
  top: 10px;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.76);
}

.movie-card-body {
  padding: 12px 2px 4px;
}

.movie-card:not(.movie-card-compact) .movie-card-body {
  padding: 16px;
}

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

.movie-card h3 a:hover {
  color: #f87171;
}

.movie-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.48);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: rgba(127, 29, 29, 0.30);
}

.rank-no {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-info strong,
.side-related-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small,
.side-related-item small {
  color: var(--muted);
  font-size: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box input,
.filter-selects select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
}

.filter-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-selects label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.filter-selects select {
  min-width: 130px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  background: #111827;
  border: 1px solid var(--line);
}

.filter-count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 54px 16px;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.24), transparent 28rem),
    linear-gradient(90deg, rgba(127, 29, 29, 0.34), rgba(127, 29, 29, 0.10));
}

.page-hero-small {
  min-height: 260px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-top: 10px;
}

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

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

.category-card a {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

.category-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.1), rgba(3, 7, 18, 0.92));
}

.category-count {
  right: 14px;
  top: 14px;
}

.category-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
}

.category-info strong {
  font-size: 24px;
}

.category-info small {
  color: #d1d5db;
}

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

.ranking-row {
  border-radius: 18px;
}

.ranking-link {
  display: grid;
  grid-template-columns: 54px 140px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.ranking-number {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-link img {
  width: 140px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ranking-body strong {
  font-size: 18px;
}

.ranking-body small,
.ranking-body em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-heat {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(180, 83, 9, 0.35);
  font-size: 13px;
  font-weight: 800;
}

.detail-shell {
  padding: 28px 0 56px;
}

.detail-breadcrumb {
  justify-content: flex-start;
  margin-bottom: 22px;
}

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

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

.player-card,
.detail-info-card,
.side-panel,
.poster-panel,
.article-block {
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.28), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.35);
  font-size: 28px;
}

.video-player.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.56);
  font-size: 13px;
}

.video-player.playing .player-status {
  opacity: 0;
  pointer-events: none;
}

.detail-info-card {
  margin-top: 20px;
  padding: 24px;
}

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

.detail-title-row h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.detail-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.07);
}

.text-block {
  margin-top: 22px;
}

.text-block h2,
.side-panel h2,
.article-block h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.text-block p,
.article-block p {
  margin: 0 0 12px;
  color: #d1d5db;
  line-height: 1.85;
}

.poster-panel {
  overflow: hidden;
  margin-bottom: 20px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.poster-panel div {
  padding: 16px;
  display: grid;
  gap: 4px;
}

.poster-panel span {
  color: var(--muted);
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

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

.side-related-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}

.side-related-item img {
  width: 116px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.side-related-item span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.article-page {
  max-width: 880px;
  padding: 54px 0;
}

.article-block {
  padding: 26px;
  margin-bottom: 22px;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  color: #cbd5e1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), #030712);
  border-top: 1px solid var(--line);
}

.footer-grid,
.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #94a3b8;
  font-size: 14px;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.back-top.show {
  display: block;
}

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

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

  .mobile-toggle {
    display: block;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .brand-text strong {
    font-size: 17px;
  }

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

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 100px;
  }

  .hero-control-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section-heading,
  .detail-title-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .ranking-link {
    grid-template-columns: 40px 100px 1fr;
  }

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

  .ranking-link img {
    width: 100px;
    height: 62px;
  }

  .detail-info-card,
  .article-block {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .compact-grid,
  .movie-grid,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 82px 1fr;
  }

  .rank-item img {
    width: 82px;
    height: 52px;
  }

  .side-related-item {
    grid-template-columns: 96px 1fr;
  }

  .side-related-item img {
    width: 96px;
    height: 60px;
  }
}
