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

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Arial, sans-serif;

    background: #eef7f0;
    color: #183b2a;
}

.music-player {
    width: 390px;
    max-width: 92%;

    padding: 25px;

    background: rgba(255, 255, 255, 0.85);

    border: 1px solid #d6eadb;
    border-radius: 24px;

    box-shadow: 0 20px 45px rgba(42, 88, 58, 0.12);
}

/* Header */

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;

    color: #6b8573;
}

.dot {
    width: 8px;
    height: 8px;

    background: #79b88b;

    border-radius: 50%;
}

/* Cover */

.cover-container {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 18px;

    background: #dceee0;
}

.cover-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

/* Song Info */

.song-info {
    text-align: center;

    margin: 22px 0;
}

.song-info h2 {
    font-size: 22px;

    margin-bottom: 6px;

    color: #183b2a;
}

.song-info p {
    font-size: 14px;

    color: #789082;
}

/* Progress */

.progress-section {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 11px;

    color: #789082;
}

#progress {
    flex: 1;
}

/* Range */

input[type="range"] {
    accent-color: #6daa7d;

    cursor: pointer;
}

/* Controls */

.controls {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 28px;

    margin: 22px 0;
}

.controls button {
    border: none;

    background: transparent;

    font-size: 22px;

    color: #315b40;

    cursor: pointer;

    transition: 0.2s;
}

.controls button:hover {
    color: #4f9464;

    transform: scale(1.1);
}

/* Play Button */

.play-btn {
    width: 58px;
    height: 58px;

    border-radius: 50% !important;

    background: #6daa7d !important;

    color: white !important;

    box-shadow: 0 8px 20px rgba(74, 132, 91, 0.25);
}

.play-btn:hover {
    background: #5f9d70 !important;
}

/* Volume */

.volume-section {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 25px;
}

#volume {
    flex: 1;
}

/* Playlist */

.playlist h3 {
    font-size: 15px;

    margin-bottom: 10px;

    color: #315b40;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 14px;

    margin-top: 8px;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.2s;
}

.playlist-item:hover {
    background: #f0f7f1;
}

.playlist-item.active {
    background: #e4f2e7;

    color: #4f9464;
}

.playlist-item strong {
    display: block;

    font-size: 14px;
}

.playlist-item small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #789082;
}

.playlist-item span {
    font-size: 11px;

    color: #9caf9f;
}

/* Mobile */

@media (max-width: 450px) {

    .music-player {
        padding: 20px;

        border-radius: 20px;
    }

    .song-info h2 {
        font-size: 20px;
    }

    .controls {
        gap: 22px;
    }
}
