/* ==========================================================
   MIDAD — AUDIO PLAYER
   منصة القراءات العشر التفاعلية
========================================================== */

/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --audio-gold: #c9a45c;
    --audio-gold-light: #e3c47c;
    --audio-gold-dark: #9d7838;

    --audio-green: #123c32;
    --audio-green-light: #1c5a4b;
    --audio-green-dark: #0a2922;

    --audio-bg: #f8f5ed;
    --audio-card: #ffffff;

    --audio-text: #26352f;
    --audio-muted: #78817c;

    --audio-border: rgba(201, 164, 92, 0.22);

    --audio-shadow:
        0 20px 50px rgba(18, 60, 50, 0.10);

    --audio-radius: 24px;
}


/* ==========================================================
   DARK MODE
========================================================== */

body.dark-mode {
    --audio-bg: #0c1915;
    --audio-card: #13251f;

    --audio-text: #f2ead8;
    --audio-muted: #aeb8b2;

    --audio-border: rgba(201, 164, 92, 0.18);

    --audio-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   AUDIO LIBRARY SECTION
========================================================== */

.audio-library-section {
    position: relative;
    overflow: hidden;
}

.audio-library-section::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    top: 5%;
    right: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(201, 164, 92, 0.08),
            transparent 70%
        );

    pointer-events: none;
}

.audio-library-section::after {
    content: "";
    position: absolute;

    width: 400px;
    height: 400px;

    bottom: -200px;
    left: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(18, 60, 50, 0.06),
            transparent 70%
        );

    pointer-events: none;
}


/* ==========================================================
   MAIN AUDIO LIBRARY
========================================================== */

.audio-library {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(300px, 0.85fr)
        minmax(420px, 1.15fr);

    gap: 28px;

    align-items: stretch;
}


/* ==========================================================
   AUDIO BROWSER
========================================================== */

.audio-browser {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: var(--audio-card);

    border: 1px solid var(--audio-border);

    border-radius: var(--audio-radius);

    box-shadow: var(--audio-shadow);

    overflow: hidden;
}


/* ==========================================================
   BROWSER HEADER
========================================================== */

.audio-browser-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 24px 25px;

    background:
        linear-gradient(
            135deg,
            var(--audio-green),
            var(--audio-green-light)
        );

    color: #ffffff;
}


.audio-browser-title {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


.audio-browser-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: var(--audio-gold-light);

    font-size: 21px;
}


.audio-browser-title > div:last-child {
    min-width: 0;
}


.audio-browser-title span {
    display: block;

    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;
}


.audio-browser-title h3 {
    margin: 0;

    color: #ffffff;

    font-family: "Amiri", serif;

    font-size: 22px;

    font-weight: 700;
}


.audio-reader-count {
    flex-shrink: 0;

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(201, 164, 92, 0.15);

    border: 1px solid rgba(227, 196, 124, 0.28);

    color: var(--audio-gold-light);

    font-size: 13px;

    white-space: nowrap;
}


/* ==========================================================
   SEARCH + FILTER
========================================================== */

.audio-browser-tools {
    display: grid;

    grid-template-columns: 1fr 190px;

    gap: 12px;

    padding: 18px;

    background: var(--audio-card);

    border-bottom: 1px solid var(--audio-border);
}


/* SEARCH */

.audio-search {
    position: relative;

    display: flex;
    align-items: center;
}


.audio-search > i {
    position: absolute;

    right: 15px;

    color: var(--audio-muted);

    pointer-events: none;
}


.audio-search input {
    width: 100%;

    height: 46px;

    padding:
        0 44px
        0 42px;

    border: 1px solid var(--audio-border);

    border-radius: 13px;

    outline: none;

    background: var(--audio-bg);

    color: var(--audio-text);

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.audio-search input::placeholder {
    color: var(--audio-muted);
}


.audio-search input:focus {
    border-color: var(--audio-gold);

    box-shadow:
        0 0 0 3px
        rgba(201, 164, 92, 0.10);

    background: var(--audio-card);
}


.audio-search-clear {
    position: absolute;

    left: 8px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: var(--audio-muted);

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.audio-search-clear.visible {
    opacity: 1;

    visibility: visible;
}


.audio-search-clear:hover {
    background: rgba(201, 164, 92, 0.10);

    color: var(--audio-gold-dark);
}


/* FILTER */

.audio-filter-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}


.audio-filter-wrapper > i {
    position: absolute;

    right: 14px;

    color: var(--audio-gold-dark);

    pointer-events: none;

    z-index: 2;
}


.audio-filter-wrapper select {
    width: 100%;

    height: 46px;

    padding:
        0 40px
        0 12px;

    border: 1px solid var(--audio-border);

    border-radius: 13px;

    outline: none;

    background: var(--audio-bg);

    color: var(--audio-text);

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    appearance: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.audio-filter-wrapper::after {
    content: "\f078";

    position: absolute;

    left: 14px;

    font-family: "Font Awesome 6 Free";

    font-weight: 900;

    font-size: 10px;

    color: var(--audio-muted);

    pointer-events: none;
}


.audio-filter-wrapper select:focus {
    border-color: var(--audio-gold);

    box-shadow:
        0 0 0 3px
        rgba(201, 164, 92, 0.10);
}


/* ==========================================================
   READERS LIST
========================================================== */

.audio-readers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    padding: 18px;

    max-height: 500px;

    overflow-y: auto;

    scrollbar-width: thin;

    scrollbar-color:
        var(--audio-gold)
        transparent;
}


.audio-readers::-webkit-scrollbar {
    width: 5px;
}


.audio-readers::-webkit-scrollbar-track {
    background: transparent;
}


.audio-readers::-webkit-scrollbar-thumb {
    background: var(--audio-gold);

    border-radius: 20px;
}


/* ==========================================================
   READER CARD
========================================================== */

.audio-reader-item {
    position: relative;

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 13px;

    border: 1px solid var(--audio-border);

    border-radius: 15px;

    background: var(--audio-bg);

    color: var(--audio-text);

    cursor: pointer;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}


.audio-reader-item:hover {
    transform: translateY(-2px);

    border-color:
        rgba(201, 164, 92, 0.55);

    box-shadow:
        0 8px 20px
        rgba(18, 60, 50, 0.08);
}


.audio-reader-item.active {
    background:
        linear-gradient(
            135deg,
            rgba(18, 60, 50, 0.10),
            rgba(201, 164, 92, 0.08)
        );

    border-color: var(--audio-gold);

    box-shadow:
        0 8px 24px
        rgba(201, 164, 92, 0.12);
}


.audio-reader-avatar {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--audio-green),
            var(--audio-green-light)
        );

    color: var(--audio-gold-light);

    font-size: 17px;
}


.audio-reader-item.active
.audio-reader-avatar {
    background:
        linear-gradient(
            135deg,
            var(--audio-gold-dark),
            var(--audio-gold)
        );

    color: #ffffff;
}


.audio-reader-info {
    min-width: 0;

    flex: 1;
}


.audio-reader-info strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--audio-text);

    font-family: "Amiri", serif;

    font-size: 16px;
}


.audio-reader-info span {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--audio-muted);

    font-size: 10px;
}


.audio-reader-play {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: var(--audio-gold-dark);

    cursor: pointer;
}


/* ==========================================================
   EMPTY READERS
========================================================== */

.audio-readers-empty {
    grid-column: 1 / -1;

    padding: 50px 20px;

    text-align: center;

    color: var(--audio-muted);
}


.audio-readers-empty i {
    display: block;

    margin-bottom: 12px;

    color: var(--audio-gold);

    font-size: 30px;
}


.audio-readers-empty strong {
    display: block;

    margin-bottom: 5px;

    color: var(--audio-text);

    font-family: "Amiri", serif;

    font-size: 18px;
}


/* ==========================================================
   PLAYER CARD
========================================================== */

.audio-player {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 25px;

    border-radius: var(--audio-radius);

    background:
        linear-gradient(
            145deg,
            var(--audio-green-dark),
            var(--audio-green)
        );

    border: 1px solid
        rgba(201, 164, 92, 0.20);

    color: #ffffff;

    box-shadow:
        0 25px 60px
        rgba(18, 60, 50, 0.22);

    overflow: hidden;
}


.audio-player::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -220px;
    left: -180px;

    border-radius: 50%;

    border: 1px solid
        rgba(201, 164, 92, 0.13);

    box-shadow:
        0 0 0 40px rgba(201, 164, 92, 0.025),
        0 0 0 80px rgba(201, 164, 92, 0.018),
        0 0 0 120px rgba(201, 164, 92, 0.012);

    pointer-events: none;
}


.audio-player::after {
    content: "";

    position: absolute;

    left: 28px;
    bottom: 20px;

    font-family: "Font Awesome 6 Free";

    font-weight: 900;

    color: rgba(201, 164, 92, 0.08);

    font-size: 90px;

    pointer-events: none;
}


/* ==========================================================
   PLAYER HEADER
========================================================== */

.audio-player-header {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    gap: 16px;

    padding-bottom: 22px;

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.10);
}


.audio-player-cover {
    width: 70px;
    height: 70px;

    flex: 0 0 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--audio-gold-dark),
            var(--audio-gold)
        );

    color: #ffffff;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.18);

    font-size: 28px;
}


.audio-player-info {
    flex: 1;

    min-width: 0;
}


.audio-player-info > span {
    display: block;

    margin-bottom: 4px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 11px;
}


.audio-player-info h3 {
    margin: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #ffffff;

    font-family: "Amiri", serif;

    font-size: 25px;

    line-height: 1.25;
}


.audio-player-info p {
    margin: 5px 0 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color:
        rgba(255, 255, 255, 0.60);

    font-size: 11px;
}


/* FAVORITE */

.audio-player-favorite {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.70);

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.audio-player-favorite:hover {
    background:
        rgba(201, 164, 92, 0.15);

    color: var(--audio-gold-light);

    transform: scale(1.04);
}


.audio-player-favorite.active {
    background:
        rgba(201, 164, 92, 0.18);

    color: var(--audio-gold-light);
}


/* ==========================================================
   SURAH INFORMATION
========================================================== */

.audio-surah-info {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    padding: 25px 0 15px;
}


.audio-surah-current span {
    display: block;

    margin-bottom: 4px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 11px;
}


.audio-surah-current strong {
    display: block;

    color: var(--audio-gold-light);

    font-family: "Amiri", serif;

    font-size: 25px;
}


.audio-time {
    display: flex;

    align-items: center;

    gap: 6px;

    direction: ltr;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 11px;

    white-space: nowrap;
}


/* ==========================================================
   PROGRESS
========================================================== */

.audio-progress-container {
    position: relative;
    z-index: 2;

    padding: 2px 0 20px;
}


.audio-progress {
    width: 100%;

    height: 5px;

    margin: 0;

    appearance: none;

    -webkit-appearance: none;

    border-radius: 20px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.14);

    cursor: pointer;
}


.audio-progress::-webkit-slider-thumb {
    appearance: none;

    -webkit-appearance: none;

    width: 15px;
    height: 15px;

    border: 3px solid var(--audio-green);

    border-radius: 50%;

    background: var(--audio-gold-light);

    box-shadow:
        0 0 0 3px
        rgba(227, 196, 124, 0.12);

    transition:
        transform 0.2s ease;
}


.audio-progress::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}


.audio-progress::-moz-range-thumb {
    width: 15px;
    height: 15px;

    border: 3px solid var(--audio-green);

    border-radius: 50%;

    background: var(--audio-gold-light);

    box-shadow:
        0 0 0 3px
        rgba(227, 196, 124, 0.12);
}


/* ==========================================================
   CONTROLS
========================================================== */

.audio-controls-new {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 5px 0 25px;
}


.audio-control-new {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.78);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.audio-control-new:hover {
    transform: translateY(-2px);

    background:
        rgba(201, 164, 92, 0.14);

    color: var(--audio-gold-light);
}


.audio-control-new:active {
    transform: scale(0.94);
}


.audio-main-play {
    width: 67px;
    height: 67px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--audio-gold),
            var(--audio-gold-light)
        );

    color: var(--audio-green-dark);

    cursor: pointer;

    font-size: 21px;

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.audio-main-play:hover {
    transform: scale(1.06);

    box-shadow:
        0 15px 34px
        rgba(0, 0, 0, 0.28);
}


.audio-main-play:active {
    transform: scale(0.96);
}


/* ==========================================================
   PLAYER BOTTOM
========================================================== */

.audio-player-bottom {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 17px;

    border-top: 1px solid
        rgba(255, 255, 255, 0.10);
}


/* VOLUME */

.audio-volume {
    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 130px;
}


.audio-volume-button {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.68);

    cursor: pointer;
}


.audio-volume input {
    width: 85px;

    height: 4px;

    appearance: none;

    -webkit-appearance: none;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.16);

    cursor: pointer;
}


.audio-volume input::-webkit-slider-thumb {
    appearance: none;

    -webkit-appearance: none;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: var(--audio-gold-light);
}


.audio-volume input::-moz-range-thumb {
    width: 11px;
    height: 11px;

    border: none;

    border-radius: 50%;

    background: var(--audio-gold-light);
}


/* STATUS */

.audio-status {
    color:
        rgba(255, 255, 255, 0.48);

    font-size: 10px;

    text-align: left;
}


/* ==========================================================
   SURAH SELECTOR — COMPATIBILITY
========================================================== */

.audio-surah-select,
#audioSurahSelect {
    width: 100%;

    min-height: 45px;

    margin-bottom: 15px;

    padding: 0 15px;

    border: 1px solid
        rgba(201, 164, 92, 0.22);

    border-radius: 12px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;

    font-family: inherit;

    cursor: pointer;
}


.audio-surah-select option,
#audioSurahSelect option {
    background: var(--audio-green-dark);

    color: #ffffff;
}


/* ==========================================================
   RECITATION BROWSER
   Compatibility with the secondary selector
========================================================== */

.recitation-browser {
    position: relative;

    max-width: 900px;

    margin: 35px auto;

    padding: 25px;

    border: 1px solid var(--audio-border);

    border-radius: var(--audio-radius);

    background: var(--audio-card);

    box-shadow: var(--audio-shadow);
}


.recitation-selector {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.selector-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.selector-group label {
    color: var(--audio-text);

    font-family: "Amiri", serif;

    font-size: 15px;

    font-weight: 700;
}


.selector-group select {
    width: 100%;

    height: 45px;

    padding: 0 14px;

    border: 1px solid var(--audio-border);

    border-radius: 12px;

    outline: none;

    background: var(--audio-bg);

    color: var(--audio-text);

    font-family: inherit;

    cursor: pointer;
}


.selector-group select:focus {
    border-color: var(--audio-gold);

    box-shadow:
        0 0 0 3px
        rgba(201, 164, 92, 0.10);
}


.recitation-actions {
    margin-top: 20px;

    display: flex;

    justify-content: center;
}


.recitation-play-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 0 25px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--audio-green),
            var(--audio-green-light)
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(18, 60, 50, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.recitation-play-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(18, 60, 50, 0.22);
}


.recitation-message {
    margin-top: 15px;

    min-height: 20px;

    color: var(--audio-muted);

    font-size: 12px;

    text-align: center;
}


/* ==========================================================
   FOCUS ACCESSIBILITY
========================================================== */

.audio-player button:focus-visible,
.audio-browser button:focus-visible,
.audio-browser select:focus-visible,
.audio-browser input:focus-visible,
.recitation-browser button:focus-visible,
.recitation-browser select:focus-visible {
    outline: 2px solid var(--audio-gold-light);

    outline-offset: 3px;
}


/* ==========================================================
   DISABLED
========================================================== */

.audio-player button:disabled,
.audio-browser button:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    pointer-events: none;
}


/* ==========================================================
   LOADING STATE
========================================================== */

.audio-player.is-loading .audio-main-play {
    animation:
        audioPulse 1s infinite;
}


@keyframes audioPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.94);
    }

}


/* ==========================================================
   PLAYING STATE
========================================================== */

.audio-player.is-playing
.audio-player-cover {
    animation:
        audioCoverPulse 2.2s ease-in-out infinite;
}


@keyframes audioCoverPulse {

    0%,
    100% {
        box-shadow:
            0 10px 25px
            rgba(0, 0, 0, 0.18);
    }

    50% {
        box-shadow:
            0 10px 25px
            rgba(0, 0, 0, 0.18),
            0 0 0 8px
            rgba(201, 164, 92, 0.07);
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .audio-library {
        grid-template-columns: 1fr;
    }


    .audio-browser {
        order: 2;
    }


    .audio-player {
        order: 1;
    }


    .audio-readers {
        max-height: 360px;
    }

}


/* ==========================================================
   TABLET SMALL
========================================================== */

@media (max-width: 768px) {

    .audio-browser-tools {
        grid-template-columns: 1fr;
    }


    .audio-reader-count {
        font-size: 11px;

        padding: 7px 10px;
    }


    .audio-browser-header {
        padding: 20px;
    }


    .audio-player {
        padding: 20px;
    }


    .audio-player-cover {
        width: 60px;
        height: 60px;

        flex-basis: 60px;

        border-radius: 17px;

        font-size: 23px;
    }


    .audio-player-info h3 {
        font-size: 22px;
    }


    .audio-surah-current strong {
        font-size: 22px;
    }


    .recitation-selector {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 576px) {

    .audio-library {
        gap: 18px;
    }


    .audio-browser {
        border-radius: 18px;
    }


    .audio-player {
        padding: 17px;

        border-radius: 18px;
    }


    .audio-browser-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        padding: 18px;
    }


    .audio-browser-title h3 {
        font-size: 20px;
    }


    .audio-reader-count {
        align-self: flex-start;
    }


    .audio-browser-tools {
        padding: 13px;
    }


    .audio-readers {
        grid-template-columns: 1fr;

        padding: 13px;

        max-height: 420px;
    }


    .audio-reader-item {
        padding: 12px;
    }


    .audio-player-header {
        gap: 11px;

        padding-bottom: 18px;
    }


    .audio-player-cover {
        width: 53px;
        height: 53px;

        flex-basis: 53px;

        border-radius: 15px;

        font-size: 20px;
    }


    .audio-player-info h3 {
        font-size: 20px;
    }


    .audio-player-info p {
        font-size: 10px;
    }


    .audio-player-favorite {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .audio-surah-info {
        padding-top: 20px;
    }


    .audio-surah-current strong {
        font-size: 20px;
    }


    .audio-controls-new {
        gap: 8px;

        padding-bottom: 20px;
    }


    .audio-control-new {
        width: 39px;
        height: 39px;

        font-size: 12px;
    }


    .audio-main-play {
        width: 59px;
        height: 59px;

        font-size: 18px;
    }


    .audio-player-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }


    .audio-volume {
        width: 100%;
    }


    .audio-volume input {
        flex: 1;

        width: auto;
    }


    .audio-status {
        width: 100%;

        text-align: right;
    }


    .recitation-browser {
        margin: 25px 12px;

        padding: 18px;

        border-radius: 18px;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

    .audio-control-new {
        width: 35px;
        height: 35px;
    }


    .audio-main-play {
        width: 53px;
        height: 53px;
    }


    .audio-player-cover {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }


    .audio-player-info h3 {
        font-size: 18px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .audio-reader-item,
    .audio-control-new,
    .audio-main-play,
    .audio-player-favorite,
    .recitation-play-btn {
        transition: none;
    }


    .audio-player.is-playing
    .audio-player-cover,
    .audio-player.is-loading
    .audio-main-play {
        animation: none;
    }

}