:root {
    --primary-color: #ff4d6d;
    --accent-color: #c9184a;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0b090a;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.4);
    z-index: -1;
    transform: scale(1.1);
}

.container {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    animation: fadeIn 1s ease-out;
}

.glass-body {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.cover-wrapper {
    margin: 0 auto 1.5rem;
    width: 350px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cover-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-section h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dedicated-to {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 300;
}

.player-controls {
    margin-bottom: 2rem;
}

audio {
    width: 100%;
    height: 40px;
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
    /* Semi-customization of default audio */
    border-radius: 20px;
}

.lyrics-view {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.lyrics-container {
    height: 100%;
    overflow-y: scroll;
    padding: 2rem 0;
    scrollbar-width: none;
    /* Firefox */
}

.lyrics-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.lyrics-content {
    text-align: center;
    line-height: 2.2;
    max-width: 750px;
    margin: 0 auto;
}

.lyrics-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.5s, transform 0.5s;
    font-weight: 300;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 10px;
    white-space: normal;
}

.lyrics-content p.section-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8 !important;
}

/* Scroll-triggered highlighting effect (added via JS later) */
.lyrics-content p.current {
    opacity: 1;
    transform: scale(1.1);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsiveness */
@media (max-width: 480px) {
    .glass-body {
        padding: 1.5rem;
    }

    .cover-wrapper {
        width: 150px;
        height: 150px;
    }

    .title-section h1 {
        font-size: 1.5rem;
    }

    .lyrics-content p {
        font-size: 1rem;
    }
}