:root {
    --background-color: #181818;
    --card-background: #282828;
    --text-color: #ffffff;
    --highlight-color: #1db954;
    --secondary-text: #b3b3b3;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.player-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 10px;
}

.player-container {
    width: 100%;
    max-width: 400px;
    background: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.album-art {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.track-info {
    margin: 15px 0;
    text-align: center;
}

.track-info h2 {
    font-size: 24px;
    color: var(--highlight-color);
    margin: 10px 0 5px;
}

.track-info p {
    font-size: 18px;
    color: var(--secondary-text);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.play-btn {
    background: var(--highlight-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.volume-slider {
    width: 100px;
}

.status {
    font-size: 16px;
    color: var(--secondary-text);
    text-align: center;
}

.recently-played-container {
    width: 100%;
    max-width: 250px;
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.recently-played-container h3 {
    color: var(--highlight-color);
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.recently-played-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid var(--secondary-text);
}

.recently-played-item:last-child {
    border-bottom: none;
}

.recently-played-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.recently-played-item .song-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.recently-played-item .song-artist,
.recently-played-item .song-time {
    font-size: 14px;
    color: var(--secondary-text);
}

.fade {
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* Media Query for Mobile Layout */
@media (max-width: 768px) {
    .player-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .player-container {
        max-width: 100%;
    }

    .recently-played-container {
        max-width: 100%;
    }

    .album-art {
        max-width: 100%;
    }

    .track-info h2 {
        font-size: 20px;
    }

    .track-info p,
    .status {
        font-size: 16px;
    }

    .play-btn {
        width: 50px;
        height: 50px;
    }

    .volume-slider {
        width: 80px;
    }
}
