/* Loaded before legacy player styles so the initial layout cannot widen a phone. */
@media (max-width: 820px) {
  html {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html body.nbk-listening-colors {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }
  body.quran-refreshed .player-wrap,
  body.nasheed-refreshed .nsf-workspace {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding-inline: 12px;
  }
  body.quran-refreshed .player-wrap > .desktop-left,
  body.nasheed-refreshed .nsf-library {
    min-width: 0;
    max-width: 100%;
    contain: inline-size;
  }
  body.quran-refreshed .qrf-search,
  body.quran-refreshed .qrf-search input,
  body.nasheed-refreshed .search-inner {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.quran-refreshed .qrf-search input,
  body.quran-refreshed input:not([type=range]):not([type=checkbox]):not([type=radio]),
  body.quran-refreshed textarea,
  body.quran-refreshed select,
  body.nasheed-refreshed #searchInput {
    font-size: 16px;
  }
  body.quran-refreshed .qrf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  body.quran-refreshed .qrf-filters button {
    min-height: 44px;
    max-width: 100%;
    font-size: 12px;
    white-space: normal;
  }
  body.quran-refreshed .qrf-intro > p:not(.qrf-eyebrow) {
    font-size: 13px;
    line-height: 1.7;
  }
  body.quran-refreshed .qrf-mini,
  body.nasheed-refreshed .nsf-mini {
    box-sizing: border-box;
    max-width: calc(100dvw - 24px);
    min-width: 0;
  }
}
