body {
    margin: 0;
    overflow: hidden; /* Hide scrollbars for the 3D scene */
    background-color: #000000; /* Black background */
    font-family: 'Inter', sans-serif; /* Use a modern, clean font */
}

canvas {
    display: block;
}

/* --- Modern Music Player --- */
#music-player {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(25, 25, 30, 0.7); /* Dark semi-transparent background */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-details {
    flex-grow: 1;
    overflow: hidden;
}

#song-title {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#song-subtitle {
    font-size: 0.8em;
    font-weight: 300;
    color: #b0b0b0;
    margin-top: 2px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.controls button {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.controls button:hover {
    transform: scale(1.1);
}

.controls button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#play-pause-btn svg {
    width: 32px;
    height: 32px;
}

/* Hide the YouTube iframe itself */
#player {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    top: -9999px;
    overflow: hidden;
}