/* ================================
   LYRICS PAGE - Page-Specific Styles
   Linked AFTER styles.css
   ================================ */

/* Widen content section for two-column album layout */
.lyrics-content {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: white;
}

/* Intro text - own width, independent of songbook ad */
.lyrics-intro {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* Desktop line break between the two sentences */
.lyrics-intro-break {
    display: block;
}

/* Songbook ad section */
.songbook-ad {
    text-align: center;
    margin-bottom: 40px;
}

.songbook-ad img {
    max-width: 560px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    transition: opacity 0.3s ease;
}

.songbook-ad img:hover {
    opacity: 0.7;
}

.songbook-ad p {
    font-size: 15px;
    color: #444;
    line-height: 1.3;
}

.songbook-cta {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Album grid - two columns with full-width divider lines */
.albums-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Individual album block */
.album-block {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 28px 0;
}

/* Full-width divider lines between rows using nth-child.
   In a 2-column grid, items 3&4 start row 2, 5&6 row 3, etc.
   We add a top border to every item starting from the 3rd,
   but use a negative margin + full-width pseudo-element to 
   span across both columns. Instead, we use a simpler approach:
   a top border on every odd item from row 2 onward, spanning
   full grid width via column span. 
   
   Actually the cleanest way: use a real border on a wrapper.
   But since we want to keep the flat grid structure, we'll use
   a pseudo-element on every other pair. */

/* Reset - no borders on individual blocks */

/* Use a full-width spanning pseudo-element for row dividers.
   We target every item that starts a new row (3rd, 5th, 7th, 9th)
   and use a pseudo-element positioned to span the full grid width. */
.album-block:nth-child(n+3):nth-child(odd) {
    position: relative;
}

.album-block:nth-child(n+3):nth-child(odd)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* Span from left edge of left column across the gap to right edge of right column */
    width: calc(200% + 40px);
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
}

/* The even items in rows 2+ would also have a border if we don't suppress them.
   Since the odd item's pseudo-element spans full width, just hide the even item's natural position. */

.album-cover {
    width: 200px;
    min-width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.album-title {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 17px;
    font-weight: 400;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Album subtitle (e.g. "Duo album w/ Carrie Elkin") */
.album-subtitle {
    font-family: 'Rosario', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #545454;
    text-transform: none;
    letter-spacing: 0;
}

.album-tracklist {
    list-style: decimal;
    padding: 0 0 0 22px;
    margin: 0;
}

.album-tracklist li {
    font-family: 'Rosario', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.album-tracklist li a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-tracklist li a:hover {
    opacity: 0.7;
}

/* Non-linked tracks (e.g. covers) */
.album-tracklist li .nolink {
    color: #888;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .lyrics-content {
        padding: 1.5rem 1rem;
    }

    .lyrics-intro {
        max-width: 100%;
    }

    /* No forced line break on mobile */
    .lyrics-intro-break {
        display: inline;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .album-block {
        gap: 12px;
        padding: 22px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }

    /* Disable the desktop row-spanning pseudo-elements on mobile */
    .album-block:nth-child(n+3):nth-child(odd)::before {
        display: none;
    }

    .album-cover {
        width: 110px;
        min-width: 110px;
        height: 110px;
    }

    .album-title {
        font-size: 15px;
    }

    .album-tracklist li {
        font-size: 13px;
        line-height: 1.6;
    }

    .songbook-ad img {
        max-width: 300px;
    }
}
