@media (max-width: 900px) {
  body::before,
  body::after {
    width: 22vw;
    opacity: .28;
  }
}

@media (max-width: 860px) {
  .dashboard-hero,
  .show-hero {
    display: grid;
  }

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

  .poster-button {
    width: 100%;
  }

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

  select {
    width: 100%;
  }

  .row-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .next-grid {
    grid-template-columns: 1fr;
  }

  .next-card {
    grid-template-columns: 1fr;
  }

  .next-art {
    min-height: 210px;
  }

  .next-art::after {
    background: linear-gradient(0deg, rgba(15,23,42,.82), transparent 56%);
  }
}

@media (max-width: 620px) {
  body::before,
  body::after {
    display: none;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand-text {
    display: none;
  }

  .page {
    width: min(100% - 22px, var(--page-width));
  }

  .dashboard-hero,
  .section,
  .show-hero {
    border-radius: 20px;
    padding: 18px;
  }

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

  .show-card,
  .result-card {
    grid-template-columns: 1fr;
  }

  .show-poster {
    height: 220px;
  }

  .episode-row {
    grid-template-columns: 40px 82px 1fr;
    gap: 10px;
  }

  .episode-thumb {
    height: 52px;
  }
}
