main {
    background-color: var(--CardBackground);
    border-radius: 2rem;
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Layout for text + cover */
.song-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.song-text {
    flex: 2;
}

/* Text column: take most of the width and keep text centered in that column */
/* Main album page heading */
.song-text h1 {
    flex: 2;
    color: var(--Color9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Reuse cover-art size but make sure it fits nicely here */
.song-cover .cover-art {
    width: 25.5rem;
    height: 25.5rem;
    border-radius: 1rem;
    object-fit: cover;
}

/* Stack vertically on small screens */
@media (max-width: 768px) {
    .song-layout {
        flex-direction: column;
        align-items: center;
    }

    .song-cover {
        order: -1; /* put cover above text on mobile, if you like */
    }

    .song-text {
        width: 100%;
    }
}

/* Individual audio item */
.audio-item {
    background-color: var(--OverlayCardBackground);
    border: 1px solid var(--Color4);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audio-item:hover {
    background-color: var(--Color4);
    box-shadow: 0 4px 12px rgba(64, 169, 161, 0.2);
    transform: translateX(4px);
}

/* Audio title */
.audio-title {
    color: var(--Color9);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Audio controls container */
.audio-controls {
    width: 100%;
}

/* Style the audio element */
audio {
    width: 100%;
    height: 40px;
    border-radius: 0.75rem;
    outline: none;
}

/* Custom audio player styling */
audio::-webkit-media-controls-panel {
    background-color: var(--CardBackground);
    border-radius: 0.75rem;
}

audio::-webkit-media-controls-play-button {
    background-color: var(--LinkBackgroundColor);
    border-radius: 50%;
}

audio::-webkit-media-controls-play-button:hover {
    background-color: var(--LinkHoverBackgroundColor);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--ItalicColor);
    font-size: 0.875rem;
}

audio::-webkit-media-controls-timeline {
    background-color: var(--OverlayCardBackground);
    border-radius: 1rem;
    margin: 0 0.5rem;
}

audio::-webkit-media-controls-volume-slider {
    background-color: var(--OverlayCardBackground);
    border-radius: 1rem;
}

audio::-webkit-media-controls-mute-button {
    background-color: transparent;
}

/* Firefox custom controls */
audio::-moz-range-track {
    background-color: var(--OverlayCardBackground);
    border-radius: 1rem;
}

audio::-moz-range-thumb {
    background-color: var(--LinkBackgroundColor);
    border: none;
    border-radius: 50%;
}

audio::-moz-range-thumb:hover {
    background-color: var(--LinkHoverBackgroundColor);
}