/* Rows, banner and "See all" window, measured on Shahid: the banner is 16:9 of the screen width, "See all" sits next to
   the row title and the page dots at the end of the row head, the window is a rounded panel over a 90 % black backdrop. */

@media (min-width: 992px) {
    html.shasha .sh-hero__slide { height: 56.25vw; min-height: 560px; max-height: 125vh; }
}

html.shasha .sh-rail__head { justify-content: flex-start; align-items: center; }
html.shasha .sh-rail__more {
    margin-inline-start: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 16px;
    cursor: pointer;
}
html.shasha .sh-rail__dots { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }
html.shasha .sh-rail__dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}
html.shasha .sh-rail__dots button.is-on { width: 22px; background: #fff; }
@media (max-width: 991.98px) {
    html.shasha .sh-rail__dots { display: none; }
}

html.sh-all-on { overflow: hidden; }
.sh-all {
    position: fixed;
    inset: 0;
    z-index: 2060;
    overflow-y: auto;
    padding: 82px 16px;
    background: rgba(0, 0, 0, .9);
}
.sh-all[hidden] { display: none; }
.sh-all__panel {
    position: relative;
    width: min(80.3vw, 1640px);
    margin: 0 auto;
    padding: 96px 50px 50px;
    border-radius: 32px;
    background: #181d25;
    color: #fff;
}
.sh-all__title {
    position: absolute;
    top: 44px;
    left: 50%;
    width: 77%;
    margin: 0;
    transform: translateX(-50%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sh-all__close {
    position: absolute;
    top: 38px;
    inset-inline-end: 46px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}
.sh-all__close:hover, .sh-all__close:focus-visible { background: rgba(255, 255, 255, .1); }
.sh-all__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 12px; }
html.shasha .sh-all__grid .sh-tile { flex: none; width: auto; }
.sh-all__wait { margin: 0; padding: 60px 0; text-align: center; }
@media (max-width: 1199.98px) {
    .sh-all__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 12px; }
}
@media (max-width: 767.98px) {
    .sh-all { padding: 64px 8px 24px; }
    .sh-all__panel { width: 100%; padding: 72px 14px 20px; border-radius: 20px; }
    .sh-all__title { top: 26px; font-size: 18px; }
    .sh-all__close { top: 18px; inset-inline-end: 12px; }
    .sh-all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
}

/* Genres: one button that opens the list, instead of a long row of pills. */
html.shasha .sh-genre-menu { position: relative; z-index: 20; display: inline-block; margin-block-end: 8px; }
html.shasha .sh-home > .sh-genre-menu { margin-inline-start: var(--sh-gutter); }
html.shasha .sh-genre-menu__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
html.shasha .sh-genre-menu__btn:hover, html.shasha .sh-genre-menu__btn:focus-visible { background: rgba(255, 255, 255, .12); }
html.shasha .sh-genre-menu__btn i { transition: transform .2s ease; }
html.shasha .sh-genre-menu__btn[aria-expanded="true"] i { transform: rotate(180deg); }
html.shasha .sh-genre-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 8px;
    width: min(720px, calc(100vw - 2 * var(--sh-gutter)));
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px;
    border-radius: 16px;
    background: #181d25;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
html.shasha .sh-genre-menu__panel[hidden] { display: none; }
html.shasha .sh-genre-menu__item {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.shasha .sh-genre-menu__item:hover, html.shasha .sh-genre-menu__item:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
html.shasha .sh-genre-menu__item.active { color: #fff; font-weight: 700; }
@media (max-width: 767.98px) {
    html.shasha .sh-genre-menu__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below 1440 px Shahid shows tall posters in the rows, measured at 390, 768, 1024 and 1280 px: 8 px apart,
   114 px wide on a 390 px phone, 152 px on tablets, 6.2 per screen from 1024 px; no name under the card. */
html.shasha .sh-tile__media picture { display: contents; }
@media (max-width: 1439.98px) {
    html.shasha .sh-rail { --gap: 8px; margin-block-start: 57px; }
    html.shasha .sh-rail__head { margin-block-end: 19px; }
    html.shasha .sh-rail__title { font-size: 18px; line-height: 22px; }
    html.shasha .sh-rail .sh-tile--poster { flex-basis: calc((100vw - 24px) / 6.2 - 8px); }
    html.shasha .sh-tile--poster .sh-tile__media { aspect-ratio: 2 / 3; }
    html.shasha .sh-tile--poster .sh-title-logo,
    html.shasha .sh-tile--poster .sh-tile__time,
    html.shasha .sh-tile--poster .sh-tile__label { display: none; }
    .sh-all__grid:has(.sh-tile--poster) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 8px; }
}
@media (max-width: 1023.98px) {
    html.shasha .sh-rail .sh-tile--poster { flex-basis: 152px; }
    .sh-all__grid:has(.sh-tile--poster) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    html.shasha .sh-rail { margin-block-start: 32px; }
    html.shasha .sh-rail__head { margin-block-end: 7px; }
    html.shasha .sh-rail__title { font-size: 14px; line-height: 18px; }
    html.shasha .sh-rail__more { font-size: 14px; }
    html.shasha .sh-rail .sh-tile--poster { flex-basis: calc((100vw - 16px) / 3.07 - 8px); }
    html.shasha .sh-top10 { --per: 2.1; }
    .sh-all__grid:has(.sh-tile--poster) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
}

/* Match page on phones and tablets: the header grows with what it holds (nothing cut at the bottom of the picture),
   and "Who will win?" takes the whole width instead of a narrow column. */
@media (max-width: 991.98px) {
    html.shasha .sh-event__stage > .sh-event__poster { position: relative; inset: auto; min-height: 74vh; }
    html.shasha .sh-poll { width: 100%; }
}


/* Quran: reciters as round portraits, grouped (Tunisia first), and an "About" card on each reciter's page. */
html.shasha .sh-quran__section { margin-block-start: 40px; padding-inline: var(--sh-gutter); }
html.shasha .sh-quran__heading { margin: 0 0 20px; color: #fff; font-size: 22px; font-weight: 700; }
html.shasha .sh-quran__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 16px; }
html.shasha .sh-quran__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px 18px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease;
}
html.shasha .sh-quran__card:hover, html.shasha .sh-quran__card:focus-visible { background: rgba(255, 255, 255, .06); }
html.shasha .sh-quran__photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-block-end: 12px;
    overflow: hidden;
    border-radius: 50%;
    background: #1f2530;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
html.shasha .sh-quran__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
html.shasha .sh-quran__card:hover .sh-quran__photo img { transform: scale(1.05); }
html.shasha .sh-quran__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
html.shasha .sh-quran__meta { margin-block-start: 4px; color: rgba(255, 255, 255, .6); font-size: 13px; }

html.shasha .sh-album__subtitle { margin: 6px 0 0; color: rgba(255, 255, 255, .85); font-size: 22px; font-weight: 600; }

html.shasha .sh-reciter-about { max-width: 960px; margin-block: 40px 24px; padding-inline: var(--sh-gutter); }
html.shasha .sh-reciter-about__title { margin: 0 0 16px; color: #fff; font-size: 22px; font-weight: 700; }
html.shasha .sh-reciter-about__card { display: flex; align-items: flex-start; gap: 20px; padding: 20px; border-radius: 16px; background: #181d25; }
html.shasha .sh-reciter-about__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
html.shasha .sh-reciter-about__name { margin: 0 0 8px; color: #fff; font-size: 17px; font-weight: 700; }
html.shasha .sh-reciter-about__name span { color: rgba(255, 255, 255, .6); font-weight: 500; }
html.shasha .sh-reciter-about__bio { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.7; }

@media (max-width: 767.98px) {
    html.shasha .sh-quran__section { margin-block-start: 28px; }
    html.shasha .sh-quran__heading { margin-block-end: 12px; font-size: 17px; }
    html.shasha .sh-quran__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
    html.shasha .sh-quran__card { padding: 6px 2px 10px; }
    html.shasha .sh-quran__name { font-size: 13px; }
    html.shasha .sh-quran__meta { font-size: 11px; }
    html.shasha .sh-album__subtitle { font-size: 16px; }
    html.shasha .sh-reciter-about__card { gap: 14px; padding: 16px; }
    html.shasha .sh-reciter-about__photo { width: 64px; height: 64px; }
    html.shasha .sh-reciter-about__bio { font-size: 14px; }
}


/* Listening bar: the X that stops and closes it (beside the volume on computers, beside play on phones). */
html.shasha .sh-audio__close {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin-inline-start: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: rgba(255, 255, 255, .75);
    font-size: 20px;
    cursor: pointer;
}
html.shasha .sh-audio__close:hover, html.shasha .sh-audio__close:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
html.shasha .sh-audio .sh-audio__controls > .sh-audio__close--compact { display: none; }
@media (max-width: 991.98px) {
    html.shasha .sh-audio:not(.is-full) .sh-audio__controls > .sh-audio__close--compact { display: inline-grid; margin-inline-start: 0; }
}
