/* --- Lyric Library & Detail — literary aesthetic --- */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Shared paper texture background */
.lyric-library-page,
.lyric-detail-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 2.4em,
            rgba(140, 120, 100, 0.06) 2.4em,
            rgba(140, 120, 100, 0.06) 2.45em
        ),
        linear-gradient(135deg, #fdf8f0 0%, #f5ece0 40%, #faf5eb 100%);
    border-radius: 4px;
    box-shadow:
        0 1px 4px rgba(80, 60, 40, 0.10),
        inset 0 0 60px rgba(200, 180, 150, 0.08);
    font-family: 'Lora', 'Georgia', serif;
    color: #3a2e22;
    position: relative;
}

/* Subtle torn-edge left margin line */
.lyric-library-page::before,
.lyric-detail-page::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(180, 60, 60, 0.15);
}

/* ===== Library page ===== */

.lyric-library-page h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.4rem;
    font-weight: 600;
    color: #2c1e10;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.02em;
}

.lyric-library-page .library-subtitle {
    font-style: italic;
    color: #7a6a58;
    margin: 0 0 1.8rem 0;
    font-size: 0.95rem;
}

.lyric-library-page .btn-submit-lyric {
    display: inline-block;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    padding: 0.45em 1.2em;
    background: transparent;
    color: #6b4f36;
    border: 1px solid #bfab94;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.lyric-library-page .btn-submit-lyric:hover {
    background: #6b4f36;
    color: #fdf8f0;
}

/* Library list */
.lyric-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lyric-card {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(160, 140, 110, 0.18);
    line-height: 1.6;
}

.lyric-card:last-child {
    border-bottom: none;
}

.lyric-card .lyric-title-line {
    font-size: 1.1rem;
}

.lyric-card .lyric-title-line a {
    color: #2c1e10;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.lyric-card .lyric-title-line a:hover {
    color: #8b5e3c;
}

.lyric-card .lyric-title-line .byline {
    font-style: italic;
    font-weight: 400;
    color: #7a6a58;
    margin-left: 0.15em;
}

.lyric-card .lyric-title-line .byline a {
    color: #7a6a58;
    font-weight: 400;
    text-decoration: none;
}

.lyric-card .lyric-title-line .byline a:hover {
    color: #5a4a38;
    text-decoration: underline;
}

.lyric-card .lyric-meta {
    font-size: 0.82rem;
    color: #9a8b78;
    margin-top: 0.15rem;
}

.lyric-card .lyric-meta .tag {
    display: inline-block;
    background: rgba(140, 120, 90, 0.10);
    padding: 0.1em 0.5em;
    border-radius: 3px;
    margin-left: 0.4em;
    font-size: 0.78rem;
}

/* ===== Detail page ===== */

.lyric-detail-page .back-link {
    font-size: 0.85rem;
    color: #9a8b78;
    text-decoration: none;
    transition: color 0.15s;
}

.lyric-detail-page .back-link:hover {
    color: #5a4a38;
}

.lyric-detail-page .lyric-header {
    margin: 1.2rem 0 0.3rem;
}

.lyric-detail-page .lyric-header h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c1e10;
    margin: 0;
    display: inline;
}

.lyric-detail-page .lyric-header .byline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #7a6a58;
    margin-left: 0.3em;
}

.lyric-detail-page .lyric-header .byline a {
    color: #7a6a58;
    text-decoration: none;
}

.lyric-detail-page .lyric-header .byline a:hover {
    color: #5a4a38;
    text-decoration: underline;
}

.lyric-detail-page .lyric-date {
    display: block;
    font-size: 0.82rem;
    color: #9a8b78;
    margin: 0.3rem 0 1.8rem;
}

.lyric-detail-page .lyric-text {
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;

    color: #2c1e10;
    white-space: pre-wrap;
    padding: 0 0 0 1rem;
    margin-bottom: 2.5rem;
}

/* Comments section on lyric page */
.lyric-detail-page .track-comments {
    border-top: 1px solid rgba(160, 140, 110, 0.25);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.lyric-detail-page .track-comments h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #5a4a38;
}

.lyric-detail-page .single_comment .comment-text {
    color: #3a2e22;
    font-size: 1.1rem;
}

.lyric-detail-page .comment-form textarea {
    font-family: 'Lora', serif;
    background: rgba(255,255,250,0.6);
    border: 1px solid #cfc0aa;
    border-radius: 3px;
    padding: 0.6em;
    width: 100%;
    min-height: 4em;
    resize: vertical;
    color: #3a2e22;
}

.lyric-detail-page .comment-form .btn {
    font-family: 'Lora', serif;
    background: transparent;
    color: #6b4f36;
    border: 1px solid #bfab94;
    border-radius: 3px;
    padding: 0.4em 1em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.4em;
}

.lyric-detail-page .comment-form .btn:hover {
    background: #6b4f36;
    color: #fdf8f0;
}

/* Responsive */
@media (max-width: 600px) {
    .lyric-library-page,
    .lyric-detail-page {
        padding: 1.5rem 1rem;
    }

    .lyric-library-page::before,
    .lyric-detail-page::before {
        left: 1rem;
    }

    .lyric-detail-page .lyric-text {
        font-size: 1.25rem;
        padding-left: 0.5rem;
    }

    .lyric-detail-page .lyric-header h2 {
        font-size: 1.8rem;
        display: block;
    }

    .lyric-detail-page .lyric-header .byline {
        display: block;
        margin-left: 0;
        margin-top: 0.2em;
    }
}
