/* ─────────────────────────────────────────────
   Laloo Web Player — Warm Sunset Design System
   Primary: #F97066 | Secondary: #0D9488 | Accent: #FB923C
   Background: #FFFBF7 | Font: Plus Jakarta Sans
   ───────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FFFBF7;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* ── Header ── */
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #F97066;
    letter-spacing: 2px;
    margin-bottom: 32px;
    user-select: none;
}

/* ── Cover Art ── */
.cover-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(249, 112, 102, 0.2);
    margin-bottom: 28px;
    background: linear-gradient(135deg, #F97066 0%, #FB923C 100%);
    flex-shrink: 0;
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Song Info ── */
.song-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: #1a1a1a;
    word-break: break-word;
}

.song-style {
    font-size: 14px;
    font-weight: 500;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ── Lyrics Preview ── */
.lyrics-preview {
    background: rgba(249, 112, 102, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
    width: 100%;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    white-space: pre-line;
    text-align: center;
}

/* ── Audio Player ── */
.audio-player {
    width: 100%;
    margin-bottom: 32px;
}

.audio-player audio {
    width: 100%;
    border-radius: 12px;
    outline: none;
}

/* ── CTA Button ── */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F97066 0%, #FB923C 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(249, 112, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 112, 102, 0.45);
}

.cta-button:active {
    transform: translateY(0);
}

/* ── Inactive / Error States ── */
.inactive-message {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.inactive-message h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #555;
}

/* ── Loading ── */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #F97066;
    font-weight: 500;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(249, 112, 102, 0.2);
    border-top-color: #F97066;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Footer ── */
.footer {
    padding: 20px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 360px) {
    .cover-wrapper {
        width: 240px;
        height: 240px;
    }

    .song-title {
        font-size: 20px;
    }

    .cta-button {
        font-size: 14px;
        padding: 12px 24px;
    }
}

@media (min-width: 600px) {
    .cover-wrapper {
        width: 320px;
        height: 320px;
    }
}
