* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #151515;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mini-player {
    background: #252a34;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.track-info {
    margin-bottom: 15px;
    text-align: center;
}

.track-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #363d4a;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.progress {
    height: 100%;
    background: #88E277;
    border-radius: 3px;
    width: 0%;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.play-btn {
    width: 42px;
    height: 42px;
    background: #FF0052;
    font-size: 1.2rem;
}

.play-btn:hover {
    background: #ff3377;
}

.time {
    color: #999;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    min-width: 30px;
}

.time-separator {
    color: #666;
    font-size: 0.7rem;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.volume-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #363d4a;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #FF0052;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #FF0052;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.download-btn {
    background: #FF0052;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.download-btn:hover {
    background: #ff3377;
}

.error-msg {
    color: #FF0052;
    text-align: center;
    font-size: 0.9rem;
}

.error-msg code {
    background: rgba(255, 0, 82, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 380px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .volume-group {
        margin-left: 0;
    }
}
