/* Mobile-first approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #fff;
}

/* Background with soft overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('papou.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Choice screen */
.choice-screen {
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.choice-screen.hidden {
    display: none;
}

.choice-screen h1 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.choice-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.choice-btn:active {
    transform: translateY(0);
}

/* Lyrics content */
.lyrics-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 100px; /* Space for player */
    z-index: 1;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.lyrics-content.hidden {
    display: none;
}

.lyrics-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lyrics-text {
    line-height: 1.8;
    font-size: 1rem;
}

.lyrics-text p {
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Audio player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player.hidden {
    display: none;
}

#audio-element {
    display: none; /* Hide default controls, we'll use custom ones */
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Tablet and desktop */
@media (min-width: 768px) {
    .choice-screen h1 {
        font-size: 2.5rem;
    }

    .choice-btn {
        font-size: 1.2rem;
        padding: 1.5rem 2.5rem;
    }

    .lyrics-content {
        padding: 3rem 2.5rem;
        font-size: 1.1rem;
    }

    .lyrics-content h2 {
        font-size: 2.2rem;
    }

    .player-controls {
        max-width: 800px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .choice-screen h1 {
        font-size: 3rem;
    }

    .lyrics-content {
        max-width: 700px;
    }
}

/* Hide scrollbar but keep functionality */
.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

