.player.show {
    transform: translateY(105px);
}

.vu-meter {
    background: linear-gradient(#3c3c3c, #1c1c1c);
    border-radius: 4px;
    border: 2px solid #666;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .15),
        inset 0 -2px 3px rgba(0, 0, 0, .7),
        0 15px 30px rgba(0, 0, 0, .5);
}

.scale {
    background: #101010;
    padding: 10px;
    border: 1px solid #444;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .8);
}

.player-indicator-row {
    display: flex;
    gap: 3px;
}

.player-indicator-row+.player-indicator-row {
    margin-top: 6px;
}

.segment {
    width: 11px;
    height: 22px;
    background: #d7d7d763;
    border-radius: 1px;
    transition: .08s linear;
}

.segment.green {
    background: #2fff44;
    box-shadow:
        0 0 4px #2fff44,
        0 0 8px #2fff44,
        0 0 16px rgba(47, 255, 68, .7);
}

.segment.red {
    background: #ff3131;
    box-shadow:
        0 0 4px #ff3131,
        0 0 8px #ff3131,
        0 0 16px rgba(255, 49, 49, .8);
}

.channel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel+.channel {
    margin-top: 6px;
}

.channel-label {
    width: 12px;
    flex-shrink: 0;

    color: #2fff44;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, sans-serif;

    text-shadow:
        0 0 4px #2fff44,
        0 0 8px #2fff44;
}
.skeleton-text {
    display: block;

    min-width: 120px;
    height: 14px;

    color: transparent;
    border-radius: 4px;

    background: linear-gradient(
        90deg,
        #2a2a2a 25%,
        #3a3a3a 50%,
        #2a2a2a 75%
    );

    background-size: 200% 100%;
    background-repeat: no-repeat;

    animation: skeleton-text 1.2s infinite linear;
}

@keyframes skeleton-text {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/*##############################################################################################################  ALBUM INFO MODAL  ##########################*/
.track-cover {
    display: block;
    max-width: 100%;
    cursor: pointer;
}

/* Основной контейнер */

.release-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* Класс появления */

.release-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Затемнение страницы */

.release-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

/* Само окно */

.release-modal__window {
    position: relative;
    z-index: 1;

    width: min(900px, 100%);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #2f2f2f;
    color: #ffffff;

    border: 1px solid #454545;
    border-radius: 10px;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);

    transform: translateY(20px) scale(0.97);

    transition: transform 0.25s ease;
}

.release-modal.is-open .release-modal__window {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия */

.release-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;

    font-size: 28px;
    line-height: 36px;

    cursor: pointer;
}

.release-modal__close:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* Содержимое */

.release-modal__content {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;

    padding: 32px;
}

.release-modal__cover img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 7px;
    background: #222222;
}

.release-modal__info {
    min-width: 0;
}

.release-modal__label {
    display: block;

    margin-bottom: 8px;

    color: #aaaaaa;
    font-size: 14px;
}

.release-modal__title {
    margin: 0 0 8px;

    font-size: 30px;
    line-height: 1.2;
}

.release-modal__artist {
    display: inline-block;

    margin-bottom: 18px;

    color: #46cd39;
    font-size: 18px;
    text-decoration: none;
}

.release-modal__artist:hover {
    text-decoration: underline;
}

.release-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;

    padding-bottom: 20px;
    margin-bottom: 20px;

    color: #bcbcbc;
    font-size: 14px;

    border-bottom: 1px solid #484848;
}

/* Треклист */

.release-modal__tracklist h3 {
    margin: 0 0 12px;

    font-size: 18px;
}

.release-modal__tracklist ol {
    margin: 0;
    padding: 0;

    list-style: none;
    counter-reset: release-track;
}

.release-modal__tracklist li {
    counter-increment: release-track;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    cursor: pointer;
    border-bottom: 1px solid #424242;
}

.release-modal__tracklist li:hover {
    color: #46cd39;
}

.release-modal__tracklist li::before {
    content: counter(release-track);

    color: #858585;
    text-align: center;
}

.release-modal__tracklist time {
    color: #969696;
    font-size: 13px;
}

/* Мобильная версия */

@media (max-width: 700px) {
    .release-modal {
        align-items: flex-start;
        padding: 10px;
    }

    .release-modal__window {
        max-height: calc(100vh - 20px);
    }

    .release-modal__content {
        grid-template-columns: 1fr;
        gap: 20px;

        padding: 20px;
    }

    .release-modal__cover {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .release-modal__title {
        padding-right: 35px;
        font-size: 25px;
    }
}

/*##############################################################################################################  ALBUM INFO MODAL  ##########################*/

.player-cover:hover{
    cursor: pointer;
}
.release-modal {
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

/* Chrome, Edge, Safari */
.release-modal::-webkit-scrollbar {
    width: 10px;
}

.release-modal::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}

.release-modal::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 2px solid #1e1e1e;
}

.release-modal::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.release-modal::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

.waveform-render {
    position: relative;
    width: 100%;
    height: 51px;
}

#player-waveform {
    display: block;
    width: 100%;
    height: 100%;
}

.waveform-error {
    position: absolute;
    inset: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.35);

    display: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    pointer-events: none;
}

.waveform-error span {
    padding: 7px 14px;

    border: 1px solid rgba(255, 60, 60, 0.5);
    border-radius: 6px;

    background: rgba(15, 15, 15, 0.9);

    color: #ff4545;
    font-size: 13px;
    font-weight: 700;
    text-align: center;

    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.waveform-error.is-open {
    display: block;
}