/* =========================================================
   NVX AUDIO ARCHIVE
   هماهنگ با HOME MOBILE UI
========================================================= */

:root {
    --audio-bg: #080a0d;
    --audio-card: #11151a;
    --audio-card2: #15191f;

    --audio-red: #;
    --audio-red2: #ff4654;

    --audio-text: #ffffff;
    --audio-muted: #8b9199;

    --audio-border: rgba(255, 255, 255, .07);

    --audio-glass:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );
}


/* =========================================================
   PAGE
========================================================= */

body {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(239, 51, 64, .08),
            transparent 35%
        ),
        var(--audio-bg);

    color: var(--audio-text);
    padding-bottom: 120px;
}

.container.my-5 {
    max-width: 1250px;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.container.my-5 > h2 {
    margin: 35px 0 28px;

    color: #fff;

    font-size: 28px;
    font-weight: 900;

    text-align: center;

    position: relative;
}

.container.my-5 > h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    border-radius: 10px;

    background: var(--audio-red);

    box-shadow:
        0 0 15px rgba(239,51,64,.35);
}


/* =========================================================
   PAGE SIZE
========================================================= */

.page-size-custom {
    position: relative;
    z-index: 500;
}

.dropdown-wrapper {
    position: relative;

    display: inline-block;

    z-index: 600;
}

.dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 145px;

    padding: 11px 18px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;

    color: #fff;

    background:
        rgba(255,255,255,.045);

    backdrop-filter: blur(18px);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        .25s ease;
}

.dropdown-btn:hover {
    border-color: rgba(239,51,64,.45);

    background:
        rgba(239,51,64,.08);

    box-shadow:
        0 8px 25px rgba(239,51,64,.08);
}


/* =========================================================
   CUSTOM DROPDOWN
========================================================= */

.dm {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: 150px;

    transform:
        translateX(-50%)
        translateY(-5px)
        scale(.97);

    padding: 7px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    background:
        rgba(15,18,22,.96);

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 17px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 20px 55px rgba(0,0,0,.55);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 5000;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s;
}

.dm.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}

.dm a {
    display: block;

    width: 100%;

    padding: 9px 10px;

    border-radius: 11px;

    color: #ddd;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.04);

    text-decoration: none;

    text-align: center;

    font-size: 11px;

    transition: .2s ease;
}

.dm a:hover {
    color: #fff;

    background:
        rgba(239,51,64,.12);

    border-color:
        rgba(239,51,64,.3);
}

.dm hr {
    margin: 0;

    border: 0;

    border-top:
        1px solid rgba(255,255,255,.05);
}


/* =========================================================
   FILTER AREA
========================================================= */

.filter-wrapper {
    position: relative;

    z-index: 450;

    margin: 25px auto 28px;

    padding: 17px;

    max-width: 850px;

    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );

    border:
        1px solid rgba(255,255,255,.065);

    backdrop-filter: blur(20px);

    box-shadow:
        0 15px 45px rgba(0,0,0,.18);
}


/* Update */

.filter-top {
    margin-bottom: 13px !important;
}

.filter-top .filter-btn {
    border-color:
        rgba(239,51,64,.18);

    background:
        rgba(239,51,64,.055);

    color:
        #cfd2d6;

    font-size: 10px;

    border-radius: 10px;

    padding: 7px 13px;
}


/* Filter row */

.filter-bar {
    gap: 8px !important;
}

.filter-item {
    position: relative;

    z-index: 1000;
}

.filter-item .filter-btn {
    min-width: 105px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 12px;

    background:
        rgba(255,255,255,.045);

    color:
        #d6d8db;

    font-size: 11px;

    padding: 9px 13px;

    transition: .2s ease;
}

.filter-item .filter-btn:hover,
.filter-item .filter-btn:focus {
    color: #fff;

    border-color:
        rgba(239,51,64,.4);

    background:
        rgba(239,51,64,.08);

    box-shadow:
        0 6px 20px rgba(239,51,64,.07);
}


/* Bootstrap dropdown */

.filter-item .dropdown-menu {
    min-width: 150px;

    max-height: 260px;

    overflow-y: auto;

    margin-top: 7px !important;

    padding: 7px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 15px;

    background:
        rgba(14,17,21,.97);

    backdrop-filter: blur(25px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.55);

    z-index: 10000;
}

.filter-item .dropdown-item {
    padding: 9px 11px;

    border-radius: 9px;

    color: #ccc;

    font-size: 11px;

    text-align: center;

    transition: .2s ease;
}

.filter-item .dropdown-item:hover {
    color: #fff;

    background:
        rgba(239,51,64,.12);
}

.filter-item .dropdown-menu hr {
    margin: 4px 0;

    border:
        0;

    border-top:
        1px solid rgba(255,255,255,.05);
}


/* =========================================================
   AUDIO LIST
========================================================= */

.audio-card {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    min-height: 82px;

    margin: 8px 0;

    padding: 7px 10px;

    border:
        1px solid rgba(255,255,255,.055);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    backdrop-filter: blur(14px);

    box-shadow:
        0 7px 25px rgba(0,0,0,.16);

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.audio-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(239,51,64,.2);

    background:
        linear-gradient(
            145deg,
            rgba(239,51,64,.075),
            rgba(255,255,255,.018)
        );
}


/* bottom line */

.audio-card::after {
    content: "";

    position: absolute;

    left: 12%;
    right: 12%;

    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(239,51,64,.22),
            transparent
        );
}


/* =========================================================
   AUDIO LINK
========================================================= */

.audio-card > a:first-child {
    min-width: 0;

    display: flex;

    align-items: center;

    flex: 1;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   AUDIO IMAGE
========================================================= */

.img-audio {
    flex-shrink: 0;

    position: relative;
}

.img-audio img {
    display: block;

    width: 62px;
    height: 62px;

    margin: 3px 10px 3px 3px;

    object-fit: cover;

    border-radius: 13px;

    border:
        1px solid rgba(255,255,255,.08);

    box-shadow:
        0 8px 20px rgba(0,0,0,.35);

    transition:
        transform .3s ease;
}

.audio-card:hover .img-audio img {
    transform: scale(1.04);
}


/* =========================================================
   AUDIO CONTENT
========================================================= */

.audio-card .card-body {
    flex: 1;

    min-width: 0;

    height: auto !important;

    margin: 0 !important;

    padding: 5px 7px !important;

    color: #fff;
}

.audio-card .card-title {
    margin: 0 0 6px !important;

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.7;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.audio-card .card-body p {
    margin: 2px 0 !important;

    color: #777f88 !important;

    font-size: 9px;

    line-height: 1.6;
}

.audio-card .card-body p:last-child {
    color:
        rgba(239,51,64,.7) !important;
}


/* =========================================================
   ACTIONS
========================================================= */

.actions {
    display: flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;

    margin-left: 4px;
}

.play-btn,
.download-btn {
    width: 36px;
    height: 36px;

    padding: 0 !important;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.08);

    color: #c8cbd0;

    background:
        rgba(255,255,255,.055);

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.play-btn:hover,
.download-btn:hover {
    color: #fff;

    background:
        rgba(239,51,64,.16);

    border-color:
        rgba(239,51,64,.35);

    transform:
        translateY(-2px);
}

.play-btn {
    background:
        rgba(239,51,64,.13);

    color:
        #ff5360;

    border-color:
        rgba(239,51,64,.2);
}

.play-btn i,
.download-btn i {
    font-size: 12px;
}


/* =========================================================
   BOTTOM AUDIO PLAYER
   مهم:
   بالاتر از NAVBAR / MODAL / DROPDOWN
========================================================= */

.audio-player,
#bottomAudioPlayer {

    position: fixed !important;

    left: 0 !important;
    right: 0 !important;

    bottom: -160px !important;

    width: 100% !important;

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 10px 22px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            rgba(20,23,28,.96),
            rgba(8,10,13,.98)
        ) !important;

    border-top:
        1px solid rgba(255,255,255,.1);

    box-shadow:
        0 -15px 50px rgba(0,0,0,.6),
        0 -2px 25px rgba(239,51,64,.06);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    transition:
        bottom .4s cubic-bezier(.2,.8,.2,1);

    /*
       بالاتر از:
       navbar
       swiper
       dropdown
       bootstrap modal
       floating buttons
    */
    z-index: 2147483647 !important;

    isolation: isolate;
}

.audio-player.show,
#bottomAudioPlayer.show {
    bottom: 0 !important;
}


/* =========================================================
   PLAYER CLOSE
========================================================= */

.close-btn {
    position: absolute;

    top: -17px;
    right: 18px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 50%;

    color: #aaa;

    background:
        rgba(17,21,26,.97);

    box-shadow:
        0 -5px 20px rgba(0,0,0,.3);

    cursor: pointer;

    transition: .2s ease;

    z-index: 5;
}

.close-btn:hover {
    color: #fff;

    background:
        var(--audio-red);

    border-color:
        var(--audio-red);
}


/* =========================================================
   PLAYER LEFT
========================================================= */

.player-left {
    min-width: 220px;

    display: flex;

    align-items: center;

    gap: 11px;
}

.cover {
    flex-shrink: 0;

    width: 52px;
    height: 52px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #181c22,
            #0d0f12
        );

    background-size: cover;
    background-position: center;

    border:
        1px solid rgba(255,255,255,.08);

    box-shadow:
        0 7px 20px rgba(0,0,0,.35);
}

.info {
    min-width: 0;

    direction: rtl;

    text-align: right;
}

.info span {
    display: block;

    max-width: 230px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #fff;

    font-size: 12px;

    font-weight: 700;
}

.info small {
    display: block;

    margin-top: 4px;

    color: #777f88;

    font-size: 9px;
}


/* =========================================================
   PLAYER CENTER
========================================================= */

.player-center {
    flex: 1;

    width: 100%;

    max-width: 600px;

    min-width: 180px;
}

.controls {
    display: flex;

    justify-content: center;

    margin-bottom: 6px;
}

.controls button,
#playPause {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    color: #111;

    background:
        #fff !important;

    font-size: 13px;

    cursor: pointer;

    box-shadow:
        0 7px 25px rgba(255,255,255,.1);

    transition:
        transform .2s ease;
}

.controls button:hover,
#playPause:hover {
    transform:
        scale(1.08);
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-container {
    display: flex;

    align-items: center;

    gap: 9px;

    direction: ltr;

    unicode-bidi: normal;

    color: #737981;

    font-size: 9px;
}

#progressBar {
    flex: 1;

    width: 100%;

    height: 4px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 20px;

    outline: none;

    background:
        rgba(255,255,255,.12);

    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 10px;
    height: 10px;

    border: 0;

    border-radius: 50%;

    background:
        var(--audio-red);

    box-shadow:
        0 0 10px rgba(239,51,64,.4);

    cursor: pointer;
}

#progressBar::-moz-range-thumb {
    width: 10px;
    height: 10px;

    border: 0;

    border-radius: 50%;

    background:
        var(--audio-red);

    cursor: pointer;
}


/* =========================================================
   PLAYER RIGHT
========================================================= */

.player-right {
    min-width: 130px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 9px;

    color: #777;
}

#volume {
    width: 90px;

    height: 4px;

    accent-color:
        var(--audio-red);

    cursor: pointer;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 35px;
}

.pagination .page-link {
    min-width: 42px;

    padding: 8px 13px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 12px !important;

    color: #c4c7cb;

    background:
        rgba(255,255,255,.045);

    backdrop-filter: blur(12px);

    font-size: 11px;

    text-align: center;

    transition: .2s ease;
}

.pagination .page-link:hover {
    color: #fff;

    border-color:
        rgba(239,51,64,.4);

    background:
        rgba(239,51,64,.1);

    transform:
        translateY(-2px);
}

.pagination .page-item.active .page-link {
    color: #fff;

    background:
        var(--audio-red);

    border-color:
        var(--audio-red);

    box-shadow:
        0 6px 20px rgba(239,51,64,.25);
}

.pagination .page-item.disabled .page-link {
    color: #666;

    opacity: .45;

    background:
        rgba(255,255,255,.025);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 105px;
    }

    .container.my-5 {
        padding-left: 12px !important;
        padding-right: 12px !important;

        margin-top: 25px !important;
    }


    /* Title */

    .container.my-5 > h2 {
        margin-top: 20px;

        font-size: 22px;
    }


    /* Filter */

    .filter-wrapper {
        margin-top: 20px;

        padding: 12px;

        border-radius: 18px;
    }

    .filter-bar {
        display: grid !important;

        grid-template-columns:
            repeat(3, 1fr);

        width: 100%;

        gap: 7px !important;
    }

    .filter-item {
        width: 100%;
    }

    .filter-item .filter-btn {
        width: 100%;

        min-width: 0;

        padding:
            9px 5px;

        font-size: 9px;
    }


    /* Audio card */

    .audio-card {
        min-height: 75px;

        padding: 6px 7px;

        border-radius: 15px;
    }

    .img-audio img {
        width: 55px;
        height: 55px;

        margin-right: 7px;
    }

    .audio-card .card-title {
        font-size: 11px;

        margin-bottom: 4px !important;
    }

    .audio-card .card-body p {
        font-size: 8px;
    }

    .actions {
        gap: 5px;
    }

    .play-btn,
    .download-btn {
        width: 33px;
        height: 33px;
    }

    .play-btn i,
    .download-btn i {
        font-size: 10px;
    }


    /* =====================================================
       MOBILE PLAYER
    ===================================================== */

    .audio-player,
    #bottomAudioPlayer {
        min-height: 74px;

        padding:
            9px 11px;

        gap: 8px;

        border-radius:
            18px 18px 0 0;

        flex-wrap: nowrap;

        z-index: 2147483647 !important;
    }

    .close-btn {
        top: -14px;

        right: 12px;

        width: 28px;
        height: 28px;

        font-size: 11px;
    }


    .player-left {
        min-width: 0;

        width: 38%;

        gap: 7px;
    }

    .cover {
        width: 43px;
        height: 43px;

        border-radius: 11px;
    }

    .info {
        min-width: 0;
    }

    .info span {
        max-width: 100px;

        font-size: 9px;
    }

    .info small {
        font-size: 7px;

        margin-top: 2px;
    }


    .player-center {
        min-width: 0;

        max-width: none;

        flex: 1;
    }

    .controls {
        margin-bottom: 4px;
    }

    .controls button,
    #playPause {
        width: 38px;
        height: 38px;

        font-size: 11px;
    }

    .progress-container {
        gap: 5px;

        font-size: 7px;
    }

    #progressBar {
        height: 3px;
    }

    #progressBar::-webkit-slider-thumb {
        width: 8px;
        height: 8px;
    }


    .player-right {
        display: none;
    }


    /* Dropdown */

    .dm {
        width: 135px;
    }

    .dm a {
        font-size: 10px;

        padding: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .container.my-5 > h2 {
        font-size: 20px;
    }

    .filter-wrapper {
        padding: 9px;
    }

    .filter-bar {
        gap: 5px !important;
    }

    .filter-item .filter-btn {
        font-size: 8px;

        padding:
            8px 3px;
    }

    .audio-card {
        min-height: 70px;
    }

    .img-audio img {
        width: 49px;
        height: 49px;
    }

    .audio-card .card-title {
        font-size: 10px;
    }

    .audio-card .card-body p {
        font-size: 7px;
    }

    .play-btn,
    .download-btn {
        width: 30px;
        height: 30px;
    }


    .audio-player,
    #bottomAudioPlayer {
        padding:
            8px;

        min-height: 68px;
    }

    .cover {
        width: 38px;
        height: 38px;
    }

    .info span {
        max-width: 82px;

        font-size: 8px;
    }

    .controls button,
    #playPause {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   EXTRA SAFETY
   جلوگیری از اینکه نویگیشن یا عناصر شناور روی پلیر بیایند
========================================================= */

.navbar,
.mobile-header,
.fixed-bottom,
.bottom-nav,
.mobile-bottom-nav,
footer {
    /*
       عمداً پایین‌تر از پلیر نگه داشته می‌شوند.
    */
    z-index: 1000;
}

.modal,
.offcanvas {
    z-index: 20000;
}

.audio-player,
#bottomAudioPlayer {
    z-index: 2147483647 !important;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible {
    outline:
        2px solid rgba(239,51,64,.7);

    outline-offset:
        3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 768px) {
    h2{
        margin-top: 70px !important;
    }
}



/* =========================================================
   CURRENT PLAYING AUDIO
   کارت در حال پخش
========================================================= */

.audio-card.is-playing {
    position: relative;

    border-color:
        rgba(215, 25, 32, .42);

    background:
        linear-gradient(
            135deg,
            rgba(215, 25, 32, .13),
            rgba(28, 28, 35, .92),
            rgba(10, 10, 14, .94)
        );

    box-shadow:
        0 12px 35px rgba(0,0,0,.35),
        0 0 25px rgba(215,25,32,.12),
        inset 0 1px 0 rgba(255,255,255,.05);

    animation:
        playingCardPulse 2.4s ease-in-out infinite;
}


/* خط نور پایین کارت */

.audio-card.is-playing::after {
    left: 6%;
    right: 6%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--audio-red-dark),
            var(--audio-red-light),
            var(--audio-red-bright),
            var(--audio-red-light),
            var(--audio-red-dark),
            transparent
        );

    box-shadow:
        0 0 12px rgba(239,51,64,.55);

    animation:
        playingLine 1.8s linear infinite;
}


/* =========================================================
   CARD PULSE
========================================================= */

@keyframes playingCardPulse {

    0%,
    100% {
        box-shadow:
            0 12px 35px rgba(0,0,0,.35),
            0 0 18px rgba(215,25,32,.08),
            inset 0 1px 0 rgba(255,255,255,.05);
    }

    50% {
        box-shadow:
            0 14px 38px rgba(0,0,0,.38),
            0 0 30px rgba(215,25,32,.20),
            inset 0 1px 0 rgba(255,255,255,.07);
    }
}


/* =========================================================
   MOVING RED LINE
========================================================= */

@keyframes playingLine {

    0% {
        opacity: .45;
        transform: scaleX(.65);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: .45;
        transform: scaleX(.65);
    }
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.audio-card.is-playing .play-btn {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--audio-red-light),
            var(--audio-red),
            var(--audio-red-dark)
        );

    border-color:
        rgba(239,51,64,.65);

    box-shadow:
        0 0 0 0 rgba(239,51,64,.45),
        0 6px 20px rgba(215,25,32,.25);

    animation:
        playButtonPulse 1.7s ease-out infinite;
}


@keyframes playButtonPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(239,51,64,.45),
            0 6px 20px rgba(215,25,32,.25);
    }

    70% {
        box-shadow:
            0 0 0 9px rgba(239,51,64,0),
            0 6px 24px rgba(215,25,32,.30);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(239,51,64,0),
            0 6px 20px rgba(215,25,32,.20);
    }
}


/* =========================================================
   IMAGE
========================================================= */

.audio-card.is-playing .img-audio img {

    border-color:
        rgba(239,51,64,.45);

    box-shadow:
        0 0 18px rgba(215,25,32,.16);

    animation:
        playingImage 2.5s ease-in-out infinite;
}


@keyframes playingImage {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.035);
    }
}


/* =========================================================
   TITLE
========================================================= */

.audio-card.is-playing .card-title {

    color:
        var(--audio-red-bright);

    text-shadow:
        0 0 12px rgba(239,51,64,.18);
}


/* =========================================================
   PLAYING STATUS
========================================================= */

.audio-playing-status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-right: 7px;

    padding: 3px 7px;

    border-radius: 7px;

    color: #fff;

    background:
        rgba(215,25,32,.12);

    border:
        1px solid rgba(215,25,32,.22);

    font-size: 8px;

    font-weight: 700;

    white-space: nowrap;

    vertical-align: middle;
}


.audio-playing-status::before {

    content: "";

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--audio-red-bright);

    box-shadow:
        0 0 8px rgba(239,51,64,.75);

    animation:
        playingDot 1s ease-in-out infinite;
}


@keyframes playingDot {

    0%,
    100% {
        opacity: .45;
        transform: scale(.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =========================================================
   PLAYER BUTTON WHEN ACTIVE
========================================================= */

#bottomAudioPlayer .play-pause {

    background:
        linear-gradient(
            135deg,
            var(--audio-red-light),
            var(--audio-red-dark)
        );

    border:
        1px solid rgba(239,51,64,.45);

    box-shadow:
        0 8px 25px rgba(215,25,32,.22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


#bottomAudioPlayer .play-pause:hover {

    transform:
        scale(1.06);

    box-shadow:
        0 10px 30px rgba(215,25,32,.35);
}


/* =========================================================
   RED PROGRESS BAR
========================================================= */

#bottomAudioPlayer input[type="range"] {

    accent-color:
        var(--audio-red-light);
}


#bottomAudioPlayer input[type="range"]::-webkit-slider-thumb {

    background:
        var(--audio-red-bright);

    box-shadow:
        0 0 8px rgba(239,51,64,.5);
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .audio-card.is-playing,
    .audio-card.is-playing::after,
    .audio-card.is-playing .play-btn,
    .audio-card.is-playing .img-audio img,
    .audio-playing-status::before {

        animation: none !important;
    }
}


/* =========================
   AUDIO PROGRESS
========================= */

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.progress-time {
    min-width: 38px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    direction: ltr;
    transition: color .25s ease;
}

.progress-bar-custom {
    position: relative;
    flex: 1;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: visible;
    transition:
        height .25s ease,
        background .25s ease;
}

/* قسمت پخش شده */
.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;

    background: linear-gradient(
        90deg,
        var(--audio-red-dark, #a90f15),
        var(--audio-red, #d71920),
        var(--audio-red-light, #ef3340)
    );

    box-shadow:
        0 0 8px rgba(215,25,32,.35),
        0 0 16px rgba(215,25,32,.12);

    transition: width .08s linear;
}

/* نقطه روی Progress */
.progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;

    width: 9px;
    height: 9px;

    transform: translate(-50%, -50%);
    border-radius: 50%;

    background: #ef3340;

    box-shadow:
        0 0 0 3px rgba(215,25,32,.12),
        0 0 10px rgba(239,51,64,.45);

    opacity: 0;
    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* Hover */
.progress-bar-custom:hover .progress-track {
    height: 5px;
    background: rgba(255,255,255,.11);
}

.progress-bar-custom:hover .progress-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 0 4px rgba(215,25,32,.12),
        0 0 14px rgba(239,51,64,.55);
}

.progress-bar-custom:hover ~ .progress-time,
.progress-container:hover .progress-time {
    color: rgba(255,255,255,.65);
}

/* هنگام پخش */
.audio-player.show .progress-fill {
    box-shadow:
        0 0 8px rgba(215,25,32,.45),
        0 0 20px rgba(215,25,32,.14);
}


.progress-dot {
    position: absolute;
    left: 0%;
    top: 50%;

    width: 10px;
    height: 10px;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background: #ef3340;

    box-shadow:
        0 0 0 3px rgba(215,25,32,.15),
        0 0 12px rgba(239,51,64,.55);

    opacity: 1;
    pointer-events: none;
}