 /* ==========================================================
   ФИНАЛЬНАЯ СТИЛИЗАЦИЯ МИНИ-ПЛЕЕРА
   ========================================================== */

.player-dock {
    position: fixed;
    z-index: 20;

    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));

    padding: 0 10px 8px;

    background: transparent !important;
}

.player {
    width: min(100%, 740px);

    margin: 0 auto;
    padding: 11px 12px 10px;

    border: 1px solid #343740;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #1b1e25 0%,
            #15171d 55%,
            #111318 100%
        );

    box-shadow:
        0 10px 32px rgba(0, 0, 0, .48);
}

/* ----------------------------------------------------------
   Верхняя строка
   ---------------------------------------------------------- */

.player__top {
    display: flex;
    align-items: center;

    gap: 10px;
}

.player__cover {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(255, 159, 36, .35);
    border-radius: 11px;

    color: #ffe4ad;
    font-size: 24px;

    background:
        radial-gradient(
            circle at 72% 22%,
            #ffb23f 0,
            transparent 34%
        ),
        radial-gradient(
            circle at 25% 80%,
            #683222 0,
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #3c2020,
            #12151c
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.04);
}

.player__track {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.player__title {
    overflow: hidden;

    color: var(--text);

    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.player__artist {
    overflow: hidden;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------
   Сердце + меню
   ---------------------------------------------------------- */

.player__favorite,
.player__menu {
    width: 34px;
    height: 42px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: #f0f1f4;

    font-size: 25px;

    transition:
        color .18s ease,
        transform .18s ease;
}

.player__favorite:active,
.player__menu:active {
    transform: scale(.9);
}

.player__favorite:hover {
    color: var(--accent);
}

/* ----------------------------------------------------------
   Прогресс
   ---------------------------------------------------------- */

.player__progress {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 10px 1px 6px;
}

.player__time {
    flex: 0 0 auto;

    color: #969aa4;

    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.player__progress-track {
    position: relative;

    height: 4px;

    flex: 1;

    overflow: visible;

    border-radius: 20px;

    background: #3a3d46;

    touch-action: none;
}

.player__progress-value {
    position: relative;

    width: 38%;
    height: 100%;

    border-radius: inherit;

    background: var(--accent);

    box-shadow:
        0 0 8px rgba(255, 159, 36, .22);
}

.player__progress-value::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #ffd398;
    box-shadow:
        0 0 0 2px rgba(255, 159, 36, .18);

    transition:
        width .15s ease,
        height .15s ease,
        box-shadow .15s ease;
}

.player__progress-track.is-seeking .player__progress-value::after {
    width: 18px;
    height: 18px;

    box-shadow:
        0 0 0 3px rgba(255, 159, 36, .22);
}

.player__progress-track {
    position: relative;
    height: 20px;
    flex: 1;
    overflow: visible;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.player__progress-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 4px;
    border-radius: 20px;
    background: #3a3d46;
}

/* ----------------------------------------------------------
   Управление
   ---------------------------------------------------------- */

.player__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 4px;
}

.player__controls button {
    width: 42px;
    height: 40px;

    flex: 1 1 0;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: #e6e7ea;

    font-size: 22px;

    border-radius: 12px;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.player__controls button:active {
    transform: scale(.90);
}

.player__controls button:hover {
    background: rgba(255,255,255,.035);
}

.player__controls .player__mode {
    color: #8f939d;
}

.player__controls .player__mode--active {
    color: var(--accent);
}

.player__controls .player__play {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border-radius: 50%;

    background: var(--accent);

    color: #1a1308;

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        0 0 18px rgba(255, 159, 36, .25);
}

.player__controls .player__play:hover {
    background: #ffab3d;
}

/* ----------------------------------------------------------
   Телефоны
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .player-dock {
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 6px;
    }

    .player {
        padding: 9px 10px 8px;

        border-radius: 17px;
    }

    .player__cover {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .player__title {
        font-size: 14px;
    }

    .player__artist {
        font-size: 11px;
    }

    .player__favorite,
    .player__menu {
        width: 30px;
        flex-basis: 30px;
    }

    .player__controls button {
        height: 38px;
        font-size: 20px;
    }

    .player__controls .player__play {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

/* ----------------------------------------------------------
   Очень маленькие экраны
   ---------------------------------------------------------- */

@media (max-width: 360px) {

    .player__cover {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .player__favorite,
    .player__menu {
        width: 27px;
        flex-basis: 27px;

        font-size: 22px;
    }

    .player__controls {
        gap: 1px;
    }

    .player__controls button {
        font-size: 18px;
    }
}

/* ==========================================================
   SVG ИКОНКИ МИНИ-ПЛЕЕРА
   ========================================================== */

.player svg {
    width: 22px;
    height: 22px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.player__favorite svg {
    width: 22px;
    height: 22px;
}

.player__menu svg {
    width: 22px;
    height: 22px;

    fill: currentColor;
    stroke: none;
}

.player__controls button svg {
    width: 22px;
    height: 22px;
}

.player__controls .player__play svg {
    width: 18px;
    height: 18px;
}

.player__controls .player__play {
    display: grid;
    place-items: center;
}

.player__mode--active svg {
    stroke-width: 2;
}

.player__controls .player__mode {
    color: #8f939d;
    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.player__controls .player__mode--active {
    color: var(--accent);
    background: rgba(255, 159, 36, .08);
}

.player__controls .player__mode--active svg {
    stroke-width: 2.2;
}

.player__controls .player__mode:active {
    transform: scale(.90);
}