.player {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 11px;
    background: rgba(10, 12, 20, 0.78);
    border: 1px solid rgba(20, 200, 180, 0.5);
    border-radius: 4px;
    box-shadow:
        0 0 12px rgba(20, 200, 180, 0.14),
        inset 0 0 10px rgba(20, 200, 180, 0.05);
    min-width: 0;
    width: 100%;
    font-size: 0.76rem;
}

.track-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffdc32;
    text-shadow: 0 0 8px rgba(255, 220, 50, 0.25);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.progress-bar,
.volume-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.progress-bar:hover,
.progress-bar:focus-visible {
    border-color: rgba(80, 255, 150, 0.55);
    box-shadow: 0 0 8px rgba(80, 255, 150, 0.2);
}

.volume-bar:hover,
.volume-bar:focus-visible {
    border-color: rgba(255, 100, 200, 0.55);
    box-shadow: 0 0 8px rgba(255, 100, 200, 0.2);
}

.progress-bar {
    width: 100%;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #14c8b4, #50ff96);
    border-radius: 999px;
    pointer-events: none;
    transition: width 0.08s linear;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: rgba(224, 224, 224, 0.78);
    font-variant-numeric: tabular-nums;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(80, 255, 150, 0.4);
    border-radius: 3px;
    background: rgba(20, 200, 180, 0.12);
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.14s ease;
}

.btn:hover,
.btn:focus-visible {
    color: #50ff96;
    border-color: #50ff96;
    background: rgba(80, 255, 150, 0.22);
    box-shadow: 0 0 10px rgba(80, 255, 150, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.btn:active {
    transform: translateY(0) scale(0.96);
}

.btn.play {
    width: 30px;
    height: 30px;
    border-color: rgba(255, 100, 200, 0.7);
    background: rgba(255, 100, 200, 0.18);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(255, 100, 200, 0.16);
}

.btn.play:hover,
.btn.play:focus-visible {
    color: #fff;
    border-color: #ff64c8;
    background: rgba(255, 100, 200, 0.32);
    box-shadow: 0 0 14px rgba(255, 100, 200, 0.35);
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.volume-row .btn {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.volume-bar {
    flex: 1 1 auto;
    min-width: 36px;
}

.volume-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, #b432ff, #ff64c8, #ffdc32);
    border-radius: 999px;
    pointer-events: none;
}