* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 12px;
}

.back-link:hover {
    color: white;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.header .subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Value cards */
.value-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.value-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.value-desc {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Song rows */
.song-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.song-row + .song-row {
    border-top: 1px solid #f0f0f0;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.song-artist {
    font-size: 0.82rem;
    color: #888;
}

.song-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-apple {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-apple:hover {
    background: #333;
}

.btn-lyrics {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0e6ff;
    color: #764ba2;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-lyrics:hover {
    background: #e0d0f5;
}

/* Lyrics modal overlay */
.lyrics-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lyrics-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lyrics-panel {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.lyrics-overlay.active .lyrics-panel {
    transform: translateY(0);
}

.lyrics-panel-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.lyrics-panel-header .close-btn {
    float: right;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.lyrics-panel-header .close-btn:hover {
    background: #e0e0e0;
}

.lyrics-panel-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2px;
}

.lyrics-panel-header .artist {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.lyrics-panel-header .summary {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
    background: #f8f5ff;
    padding: 10px 14px;
    border-radius: 10px;
}

.lyrics-panel-body {
    padding: 20px 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lyrics-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 500px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .value-card {
        padding: 18px;
    }

    .song-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .song-actions {
        width: 100%;
    }

    .btn-apple, .btn-lyrics {
        flex: 1;
        justify-content: center;
    }

    .lyrics-panel {
        max-height: 92vh;
    }
}
