.lyrics-page {
    box-sizing: border-box;
    min-height: calc(100vh - 96px);
    padding: 34px clamp(22px, 5vw, 74px) 70px;
    color: #eee;
    background: #0c0c0c;
    font-family: Arial, Helvetica, sans-serif;
}

.lyrics-server-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 10px;
}
.lyrics-server-pagination a,
.lyrics-server-pagination span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(224, 193, 99, .42);
    background: rgba(5, 5, 5, .72);
    color: rgba(235, 235, 235, .88);
    text-decoration: none;
}
.lyrics-server-pagination a:hover {
    border-color: rgba(224, 193, 99, .82);
    color: #e0c163;
}
.lyrics-server-pagination a[aria-current="page"] {
    border-color: #e0c163;
    background: rgba(224, 193, 99, .18);
    color: #e0c163;
}
.lyrics-server-pagination .is-arrow {
    min-width: 42px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
}
.lyrics-server-pagination .is-disabled {
    opacity: .28;
    cursor: default;
}
.lyrics-page-title { max-width: 1260px; margin: 0 auto 24px; }
.lyrics-page-title h1 { margin: 0; color: #d8ba68; font-size: 28px; }
.lyrics-page-title a { display: inline-block; margin-bottom: 8px; color: #aaa; text-decoration: none; }
.lyrics-album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; max-width: 1260px; margin: 0 auto; }
.lyrics-album-card { min-width: 0; color: #eee; text-decoration: none; }
.lyrics-album-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; background: #080808; transition: transform .18s ease, filter .18s ease; }
.lyrics-album-card:hover img { transform: scale(1.015); filter: brightness(1.08); }
.lyrics-album-card strong { display: block; margin-top: 10px; font-size: 18px; }
.lyrics-album-card span { display: block; margin-top: 4px; color: #aaa; font-size: 12px; }
.lyrics-empty { color: #aaa; }
.text-catalog-page { display: none; }
.lyrics-entry-list { max-width: 1260px; margin: 0 auto; }
.lyrics-entry-list::before { content: ""; display: block; width: min(10cm, 70vw); height: 1px; margin: 0 auto 7.5mm; background: rgba(216, 186, 104, .38); }
.lyrics-entry { position: relative; display: grid; grid-template-columns: minmax(250px, 390px) minmax(0, 1fr); gap: clamp(28px, 5vw, 74px); align-items: start; padding: 0 0 14.5mm; margin: 0 0 7.5mm; }
.lyrics-entry::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(10cm, 70vw); height: 1px; transform: translateX(-50%); background: rgba(216, 186, 104, .38); }
.lyrics-player-column { text-align: center; }
.lyrics-weflon { width: 100%; margin: 0 auto; }
.lyrics-weflon .hstw-track-sound-wave { min-height: 0; padding: 0; overflow: visible; background: transparent; }
.lyrics-weflon .hstw-backdrop { display: none; }
.lyrics-weflon .hstw-shell { width: 100%; transform: none; }
.lyrics-weflon .hstw-wave-button { --hstw-wave-width: min(100%, 360px); }
.lyrics-weflon .hstw-meta { margin-top: 12px; }
.lyrics-sing-invite { margin: -5px 0 12px; color: rgba(255, 255, 255, .72); font-size: 18px; font-weight: 300; line-height: 1.2; text-align: center; }
.lyrics-controls { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.lyrics-controls button { padding: 9px 12px; border: 1px solid #51451f; background: #111; color: #ddd; cursor: pointer; }
.lyrics-controls button[aria-pressed="true"] { border-color: #d8ba68; color: #d8ba68; }
.lyrics-controls label { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 10px; }
.lyrics-controls input { width: 100px; }
.lyrics-share-status { min-height: 16px; margin: 7px 0 0; color: #d8ba68; font-size: 10px; }
.lyrics-copy { box-sizing: border-box; padding-top: 10mm; }
.lyrics-text,
.lyrics-story { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 300; line-height: 1.52; }
.lyrics-line { display: block; min-height: 1.42em; }
.lyrics-line.is-empty { height: .72em; min-height: .72em; }
.lyrics-line strong { font-weight: 700; }
.lyrics-line:not(.is-empty) {
    transform: scale(1);
    transform-origin: left center;
    transition: color .24s ease, font-weight .24s ease, opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1), text-shadow .24s ease;
}
.lyrics-line.is-upcoming-phrase {
    color: #e5d59a;
    font-weight: 700;
    opacity: 1;
    transform: scale(1.035);
    text-shadow: 0 0 9px rgba(229, 213, 154, .28);
}
.lyrics-line.is-active-phrase {
    color: #35ef68;
    font-weight: 900;
    opacity: 1;
    transform: scale(1.12);
    text-shadow: 0 0 15px rgba(53, 239, 104, .5);
    animation: lyrics-phrase-breathe .68s cubic-bezier(.16,.84,.2,1) both;
}
@keyframes lyrics-phrase-breathe {
    0% { transform: scale(1); }
    52% { transform: scale(1.18); }
    100% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .lyrics-line:not(.is-empty) { transition: color .15s ease, font-weight .15s ease; }
    .lyrics-line.is-active-phrase { animation: none; transform: none; }
}
.lyrics-story { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.lyrics-story h3 { margin: 0 0 12px; color: #d8ba68; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.is-single .lyrics-entry { max-width: 1120px; margin-left: auto; margin-right: auto; }
@media (max-width: 980px) {
    .lyrics-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lyrics-entry { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 28px; }
    .lyrics-copy { padding-top: 10mm; }
}
@media (max-width: 700px) {
    .lyrics-desktop-catalog { display: none; }
    .text-catalog-page {
        display: block;
        min-height: 100dvh;
        padding: 0 0 72px;
        background: transparent;
        overflow: hidden;
    }
    .text-catalog-page::after {
        content: "";
        display: block;
        width: calc(100% - 10mm);
        height: 1px;
        margin: 8mm 5mm 0;
        background: rgba(216, 186, 104, .38);
    }
    .text-catalog-tabs {
        display: flex;
        gap: 5mm;
        align-items: center;
        justify-content: center;
        width: calc(100% - 10mm);
        margin: 5mm 5mm;
        padding: 3mm 0;
        border-top: 1px solid rgba(200, 200, 200, .34);
        border-bottom: 1px solid rgba(200, 200, 200, .34);
    }
    .text-catalog-tabs a {
        color: rgba(220, 220, 220, .72);
        font-size: clamp(14px, 4.2vw, 18px);
        font-weight: 700;
        letter-spacing: .035em;
        text-decoration: none;
    }
    .text-catalog-tabs a.is-active { color: #e0c163; }
    .text-catalog-albums { display: block; width: 100%; }
    .text-catalog-album {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        overflow: hidden;
        opacity: 1;
        transition: height .72s cubic-bezier(.22,.72,.2,1), opacity .42s ease, transform .58s cubic-bezier(.22,.72,.2,1);
    }
    .text-catalog-album[hidden] { display: none !important; }
    .text-catalog-album-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        text-align: left;
        cursor: pointer;
    }
    .text-catalog-album-rule {
        display: block;
        width: calc(100% - 10mm);
        height: 1px;
        margin: 5mm 5mm 2mm;
        background: rgba(195, 195, 195, .38);
    }
    .text-catalog-album-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6mm;
        align-items: baseline;
        box-sizing: border-box;
        width: min(calc(90vw - 12.6mm), 351px);
        margin: 0 0 5mm;
        padding-left: 3mm;
    }
    .text-catalog-album-copy strong {
        min-width: 0;
        color: rgba(238, 238, 238, .92);
        font-size: clamp(17px, 5.2vw, 22px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .text-catalog-album-copy span {
        color: rgba(218, 218, 218, .72);
        font-size: clamp(13px, 3.8vw, 16px);
        white-space: nowrap;
    }
    .text-catalog-album-visual {
        position: relative;
        display: grid;
        place-items: center;
        width: min(calc(90vw - 12.6mm), 351px);
        aspect-ratio: 1;
        margin: 0 auto;
        overflow: visible;
        transition: min-height .7s cubic-bezier(.22,.72,.2,1);
    }
    .text-catalog-album-visual > img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 2px;
        object-fit: cover;
        opacity: 1;
        transform: scale(1);
        transition: opacity .42s ease, transform .62s cubic-bezier(.22,.72,.2,1), filter .52s ease;
    }
    .text-catalog-album.is-track-selected .text-catalog-album-visual > img {
        opacity: 0;
        transform: scale(.93);
        pointer-events: none;
    }
    .text-catalog-player-mount {
        position: relative;
        display: none;
        width: min(calc(90vw - 12.6mm), 351px);
        margin: 0 auto;
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
        transition: opacity .5s ease .16s, transform .68s cubic-bezier(.22,.72,.2,1) .08s;
    }
    .text-catalog-album.is-track-selected .text-catalog-player-mount {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .text-catalog-album.is-track-selected .text-catalog-album-visual {
        display: none;
    }
    .text-catalog-player-mount .hstw-track-sound-wave {
        --hstw-cover-size: min(calc(90vw - 12.6mm), 351px);
        --hstw-wave-width: var(--hstw-cover-size);
        --hstw-wave-height: min(24vw, 98px);
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
    }
    .text-catalog-player-mount .hstw-backdrop { display: none; }
    .text-catalog-player-mount .hstw-shell { width: 100%; transform: none; }
    .text-catalog-player-mount .hstw-cover {
        width: var(--hstw-cover-size);
        max-height: min(45dvh, 390px);
    }
    .text-catalog-player-mount .hstw-meta { margin-top: 12px; }
    .text-catalog-player-mount .hstw-meta strong { font-size: clamp(19px, 5.5vw, 25px); }
    .text-catalog-player-mount .hstw-meta span { font-size: clamp(10px, 2.7vw, 12px); }
    .text-catalog-player-mount .hstw-wave-button { margin-top: -2px; }
    .text-catalog-player-mount .text-catalog-tools {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        align-items: stretch;
        width: 100%;
        min-height: 58px;
        margin: 4mm 0 0;
        border-top: 1px solid rgba(216, 190, 98, .46);
        background: rgba(7, 7, 7, .18);
    }
    .text-catalog-player-mount .text-catalog-tools button {
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 58px;
        padding: 3px 8px;
        border: 0;
        border-right: 1px solid rgba(216, 190, 98, .22);
        border-radius: 0;
        color: rgba(255, 255, 255, .72);
        background: transparent;
        font: 900 11px/1 Arial, sans-serif;
        letter-spacing: .035em;
        cursor: pointer;
    }
    .text-catalog-player-mount .text-catalog-tools button:last-child { border-right: 0; }
    .text-catalog-player-mount .text-catalog-tools button.is-active {
        color: #26e866;
        background: rgba(29, 196, 85, .025);
        box-shadow: none;
    }
    .text-catalog-player-mount .text-catalog-tools svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }
    .text-catalog-player-mount .text-catalog-tools [data-text-catalog-loop] svg {
        fill: currentColor;
        stroke: none;
    }
    .text-catalog-player-mount .text-catalog-tools b {
        font: inherit;
    }
    .text-catalog-player-mount .text-catalog-tools [data-lyrics-share] b {
        color: rgba(255, 255, 255, .72);
    }
    .text-catalog-track-panel {
        box-sizing: border-box;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: max-height .82s cubic-bezier(.22,.72,.2,1), opacity .48s ease, transform .72s cubic-bezier(.22,.72,.2,1), padding .6s ease;
    }
    .text-catalog-album.is-open .text-catalog-track-panel {
        max-height: 290px;
        padding: 6mm 0 4mm;
        opacity: 1;
        transform: translateY(0);
    }
    .text-catalog-track-rail {
        display: flex;
        gap: 7mm;
        width: 100%;
        padding: 0 7mm 3mm;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .text-catalog-track-rail::-webkit-scrollbar { display: none; }
    .text-catalog-track {
        flex: 0 0 min(38vw, 166px);
        width: min(38vw, 166px);
        padding: 0;
        border: 0;
        background: transparent;
        color: rgba(238, 238, 238, .88);
        text-align: left;
        scroll-snap-align: start;
        cursor: pointer;
    }
    .text-catalog-track img {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        border: 2px solid transparent;
        object-fit: cover;
        transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
    }
    .text-catalog-track strong {
        display: block;
        margin-top: 2mm;
        font-size: clamp(12px, 3.55vw, 15px);
        line-height: 1.18;
    }
    .text-catalog-track.is-selected img {
        border-color: #e0c163;
        box-shadow: 0 0 18px rgba(224, 193, 99, .3);
        transform: scale(1.02);
    }
    .text-catalog-selected-copy {
        box-sizing: border-box;
        max-height: 0;
        width: calc(100% - 14mm);
        margin: 0 7mm;
        overflow: hidden;
        opacity: 0;
        transform: translateY(12px);
        transition: max-height 1s cubic-bezier(.22,.72,.2,1), opacity .5s ease .18s, transform .74s cubic-bezier(.22,.72,.2,1);
    }
    .text-catalog-album.is-track-selected .text-catalog-selected-copy {
        max-height: 5000px;
        padding: 3mm 0 7mm;
        opacity: 1;
        transform: translateY(0);
    }
    .text-catalog-selected-copy .lyrics-player-column { display: none; }
    .text-catalog-selected-copy .lyrics-copy {
        padding: 0;
        color: rgba(245, 245, 245, .94);
    }
    .text-catalog-selected-copy .lyrics-text {
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.58;
    }
    .text-catalog-selected-copy .story-text {
        font-size: clamp(19px, 5.2vw, 23px);
        line-height: 1.68;
    }
    .text-catalog-pagination {
        display: flex;
        gap: 7px;
        align-items: center;
        justify-content: center;
        width: calc(100% - 10mm);
        min-height: 42px;
        margin: 8mm 5mm 0;
    }
    .text-catalog-pagination button,
    .text-catalog-pagination span {
        display: inline-grid;
        place-items: center;
        min-width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid rgba(170, 170, 170, .32);
        background: rgba(5, 5, 5, .46);
        color: rgba(225, 225, 225, .78);
        font-size: 13px;
    }
    .text-catalog-pagination button.is-current {
        border-color: rgba(224, 193, 99, .84);
        background: rgba(224, 193, 99, .18);
        color: #e0c163;
    }
    .text-catalog-pagination button:disabled { opacity: .26; }
    .text-catalog-pagination .is-arrow { font-size: 22px; }
    .lyrics-page { padding: 24px 16px 52px; }
    .lyrics-page.text-catalog-page { padding: 0 0 72px; }
    .lyrics-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 13px; }
    .lyrics-album-card strong { font-size: 15px; }
    .lyrics-entry { display: block; padding-bottom: 14.5mm; }
    .lyrics-copy { padding-top: 12mm; }
    .lyrics-text, .lyrics-story { font-size: 17px; line-height: 1.54; }
    .lyrics-line { min-height: 1.46em; }
    .lyrics-weflon .hstw-wave-button { --hstw-wave-width: min(88vw, 360px); }
    .lyrics-page-title h1 { font-size: 23px; }
    .lyrics-sing-invite { font-size: 17px; }
}
.lyrics-guidance-toggle {
    display: block;
    width: auto;
    min-width: 0;
    margin: 6px auto 18px;
    padding: 4px 7px;
    border: 2px solid currentColor;
    border-radius: 1px;
    font: 900 10px/1.05 Arial, sans-serif;
    letter-spacing: .025em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32), 0 2px 5px rgba(0, 0, 0, .32);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.lyrics-guidance-toggle.is-enabled {
    color: #061209;
    background: #35d36f;
    border-color: #78efa1;
}
.lyrics-guidance-toggle.is-disabled {
    color: #1a0d04;
    background: #ed922c;
    border-color: #ffc06e;
}
