/* A phone list has one content column and a stable 44px action column. */
.quran-refreshed .qrf-row-name,.quran-refreshed .qrf-row-meta{display:contents}
.qrf-row-duration{display:none}
@media(max-width:820px){
  body.nasheed-refreshed #playlist .track,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row{
    display:grid;grid-template-columns:minmax(0,1fr) 44px;
    grid-template-rows:auto auto;gap:6px 10px;
    box-sizing:border-box;width:100%;min-width:0;max-width:100%;
    min-height:88px;margin:0;padding:16px 10px;
    align-items:start;transform:none;
  }
  body.nasheed-refreshed #playlist .track-toggle,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row>.surah-num,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row>.surah-icon{display:none}
  body.nasheed-refreshed #playlist .track-title-wrap,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row>.surah-title{
    grid-column:1;grid-row:1 / span 2;min-width:0;max-width:100%;
  }
  body.nasheed-refreshed #playlist .track-title,
  body.quran-refreshed .qrf-row-name{
    display:block;font:500 20px/1.45 'Playfair Display',Georgia,serif;
    letter-spacing:0;color:#f0ebdf;white-space:normal;overflow-wrap:break-word;
  }
  body.nasheed-refreshed #playlist .track-title::before,
  body.quran-refreshed .qrf-row-name::before{
    content:attr(data-order);display:inline-block;min-width:20px;margin-right:8px;
    vertical-align:middle;font:500 11px/1.5 Poppins,sans-serif;color:#aebaa5;
    font-variant-numeric:tabular-nums;
  }
  body.nasheed-refreshed #playlist .nsf-track-meta,
  body.quran-refreshed .qrf-row-meta{
    display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;
    margin-top:8px;color:#b8c1b2;font:400 13px/1.5 Poppins,sans-serif;
  }
  body.nasheed-refreshed #playlist .nsf-track-meta:empty,
  body.quran-refreshed .qrf-row-meta:empty{display:none}
  body.nasheed-refreshed .nsf-meta-artist{flex-basis:100%;overflow-wrap:anywhere}
  body.nasheed-refreshed .nsf-meta-lyrics{color:#c2c9bc}
  body.nasheed-refreshed #playlist .nsf-track-meta .verified-badge{
    gap:5px;padding:3px 7px;min-height:24px;background:#80caa810;border-color:#80caa835;
  }
  body.nasheed-refreshed #playlist .nsf-track-meta .vb-text{font-size:11px}
  body.nasheed-refreshed #playlist .nsf-track-meta .verified-badge svg{width:14px;height:14px}
  body.nasheed-refreshed #playlist .track-menu-btn,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view) .surah-menu-btn,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view) .surah-expand{
    grid-column:2;grid-row:1;align-self:start;justify-self:end;
    width:44px;height:44px;min-width:44px;min-height:44px;margin:-4px 0 0;
    border:0;border-radius:12px;background:#ffffff04;color:#c6c8b9;transform:none;
  }
  body.nasheed-refreshed #playlist .track-dur{grid-column:2;grid-row:2;font-size:11px;line-height:1.5}
  body.nasheed-refreshed #playlist .nsf-duration-unknown .track-dur{display:block}
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row>.qrf-row-duration{display:block;grid-column:2;grid-row:2;font:400 11px/1.5 Poppins,sans-serif;color:#aeb8a5;text-align:right;min-height:17px;font-variant-numeric:tabular-nums}
  body.nasheed-refreshed #playlist .track::after,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row::after{left:10px;right:10px}
  body.quran-refreshed .qrf-row-meta .surah-badge{
    display:inline-flex;margin:0;padding:3px 7px;font:400 11px/1.5 Poppins,sans-serif;
  }
  body.quran-refreshed .qrf-row-meta .surah-verse-range{margin:0;font:400 12px/1.5 Poppins,sans-serif}
  body.quran-refreshed .qrf-row-meta .surah-file-reference{display:none}
  body.quran-refreshed .surah-part-title{font-size:18px;line-height:1.5;min-width:0}
  body.nasheed-refreshed #playlist .track:hover,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row:hover{transform:none}
  /* Selection changes color only: keep the same dimensions before and after a tap. */
  body.nasheed-refreshed #playlist .track,
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row{
    border:1px solid transparent;border-radius:16px;background:transparent;
    box-shadow:none;animation:none!important;transform:none!important;
    transition:background-color 140ms ease,border-color 140ms ease;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  }
  body.nasheed-refreshed #playlist .track:is(.current-track,.playing),
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row.active{
    border-color:#afbf9c42;border-radius:16px;background:#9caf8014;
    box-shadow:inset 2px 0 #cbb17b;transform:none!important;
  }
  body.nasheed-refreshed #playlist .track:hover:not(.current-track):not(.playing),
  body.quran-refreshed #surahList:not(.quran-playlist-grid-view)>.surah-row:hover:not(.active){background:transparent;box-shadow:none}
  body.nasheed-refreshed #playlist .track::before{display:none}
  body.nasheed-refreshed #playlist .track .track-title{font-weight:500}
  body.nasheed-refreshed #playlist .track-dur{display:block;min-width:38px;min-height:17px;text-align:right;font-variant-numeric:tabular-nums}
  body.nasheed-refreshed #main-track-title,body.quran-refreshed .qrf-playing-title{transform:none!important;opacity:1!important;transition:none!important}
  body.quran-refreshed #surahActiveIndicator{display:none!important}
  body.quran-refreshed .play-pause-btn.pulse{animation:none!important}
  body.nasheed-refreshed .nsf-mini,body.quran-refreshed .qrf-mini{min-height:76px;animation:none!important;transition:background-color 140ms ease}
  body.nasheed-refreshed .nsf-mini[aria-busy=true],body.quran-refreshed .qrf-mini[aria-busy=true]{border-color:#b5c69d70}
  body.nasheed-refreshed .nsf-mini :is(.nsf-mini-play,.nsf-mini-next),body.quran-refreshed .qrf-mini :is(.qrf-mini-play,.qrf-mini-next){flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box}
  body.nasheed-refreshed .nsf-player-dialog[open],body.quran-refreshed .qrf-player-dialog[open]{animation:listening-sheet-in 160ms ease-out both}
}
@keyframes listening-sheet-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body.nasheed-refreshed .nsf-player-dialog[open],body.quran-refreshed .qrf-player-dialog[open]{animation:none}}
