/* ==========================================================
   STYLE1 — Lyrics family
   Used by: lyrics.html · lyricso.html · view.html
   ========================================================== */

/* ── Search / filter bar ── */
.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}
.search-box input {
    width: 100%;
    padding: .85rem 1rem .85rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    background: var(--surface);
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,77,59,.12);
}
.search-box i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.filter-select {
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    cursor: pointer;
    font-size: .95rem;
    transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ── Lyrics card grid ── */
.lyrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.lyric-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.lyric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.lyric-title {
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--primary);
    font-weight: 700;
}
.lyric-artist {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: .3rem;
    font-size: .92rem;
}
.lyric-artist i { color: var(--primary); margin-right: 4px; }
.lyric-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: .85rem;
    margin: 1rem 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.lyric-meta i { color: var(--brand-orange); margin-right: 4px; }
.lyric-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Single lyric view (view.html) ── */
.view-section {
    padding-top: 80px;
    padding-bottom: 5rem;
    min-height: 70vh;
}
.lyrics-sheet {
    background: var(--surface);
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary);
}
.sheet-header {
    text-align: center;
    border-bottom: 2px dashed var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.song-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: .5rem;
    font-weight: 700;
    line-height: 1.3;
}
.song-writer, .song-composer {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: .3rem;
}
.song-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: .9rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}
.song-meta span { display: flex; align-items: center; gap: 6px; }
.song-meta i { color: var(--brand-orange); }
.song-body {
    font-size: 1.05rem;
    line-height: 2.2;
    white-space: pre-line;
    text-align: center;
    color: var(--text);
    font-weight: 500;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

@media print {
    .site-header, .site-footer, .action-buttons, .back-to-top { display: none !important; }
    .view-section { padding: 0; }
    .lyrics-sheet {
        box-shadow: none;
        border: none;
        width: 100%; max-width: 100%;
        padding: 0; margin: 0;
    }
    body { background: #fff; color: #000; margin: 0; }
}

@media (max-width: 768px) {
    .lyrics-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .lyric-excerpt { display: none; }
    .lyrics-sheet { padding: 2rem 1.5rem; }
    .song-title { font-size: 1.5rem; }
    .action-buttons { flex-direction: column; }
}