.player__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
    padding: 1.25rem 1rem 1.35rem;
    background: transparent;
}

.player__title {
    margin: 0;
    color: var(--primary);
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.15;
    text-align: center;
}

.player__version {
    min-height: 1.25rem;
    margin: 0;
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
}

.player__artwork {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 250px);
    aspect-ratio: 1 / 1;
    margin: 0.3rem auto 0.05rem;
    overflow: hidden;
    border-radius: 14px;
    background: var(--code-bg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.player__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.player__wrapper.is-playing .player__image,
.player__wrapper.is-loading .player__image {
    filter: blur(5px) brightness(0.78);
    transform: scale(1.08);
}

.player__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: clamp(0.8rem, 3.7vw, 1rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    opacity: 0;
    transform: scale(0.98);
    border-radius: inherit;
    background: rgba(25, 30, 52, 0.68);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player__wrapper.is-playing .player__overlay,
.player__wrapper.is-loading .player__overlay {
    opacity: 1;
    transform: scale(1);
}

.progress__container {
    display: flex;
    align-items: center;
    width: min(100%, 260px);
    height: 0.8rem;
    padding: 0.25rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #6ea2ff;
    box-sizing: border-box;
    cursor: pointer;
}

.progress__bar {
    width: 0;
    height: 100%;
    min-width: 0;
    border-radius: 999px;
    background: #ffd970;
    transition: width 0.08s linear;
}

.player__controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: min(100%, 210px);
    margin-top: 0.25rem;
}

.player__control {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #6ea2ff;
    background: transparent;
    cursor: pointer;
    font-size: 2.25rem;
    line-height: 1;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.player__control:hover:not(:disabled),
.player__control:focus-visible:not(:disabled) {
    color: #4f7fe3;
    transform: scale(1.07);
}

.player__control:disabled {
    color: #b9cfff;
    cursor: not-allowed;
    opacity: 0.7;
}

.play__button {
    font-size: 2.55rem;
}

.player__wrapper.is-loading .play__button i {
    animation: player-spin 0.8s linear infinite;
}

@keyframes player-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .player__wrapper {
        padding: 1.1rem 0.85rem 1.25rem;
    }

    .player__artwork,
    .progress__container {
        width: 100%;
    }

    .player__overlay {
        padding: 0.55rem;
    }
}