.header__nav a.is-active {
    color: var(--text-main);
}

.lyrics-page,
.lyric-page {
    min-height: 900px;
    padding: 132px 0 132px;
    background: var(--bg-dark);
}

.lyrics-page__container {
    width: min(100% - 40px, 1018px);
}

.lyrics-page__head {
    margin-bottom: 40px;
}

.lyrics-page__head h1,
.lyric-page__head h1 {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
}

.lyrics-page__head p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.35;
}

.lyrics-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    margin-bottom: 22px;
}

.lyrics-search,
.lyrics-filter {
    display: block;
}

.lyrics-search > span:first-child,
.lyrics-filter > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1;
}

.lyrics-search__field {
    position: relative;
    display: block;
}

.lyrics-search input,
.lyrics-filter select {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    outline: 0;
    background: #252B34;
    color: var(--text-main);
    font-size: 18px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.lyrics-search input {
    padding: 0 56px 0 24px;
}

.lyrics-filter select {
    padding: 0 42px 0 18px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 24px,
        calc(100% - 16px) 24px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.lyrics-search__clear {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.lyrics-search__clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-search__clear:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lyrics-search input::placeholder {
    color: var(--text-soft);
}

.lyrics-search input::-webkit-search-cancel-button {
    appearance: none;
}

.lyrics-search input:focus,
.lyrics-filter select:focus {
    border-color: rgba(89, 98, 134, 0.8);
    background-color: #2C3440;
}

.lyrics-page__count {
    margin-bottom: 16px;
    color: var(--text-soft);
    font-size: 13px;
}

.lyrics-list {
    display: grid;
    gap: 24px;
}

.lyrics-card {
    display: block;
    min-height: 122px;
    padding: 24px 28px;
    border-radius: 8px;
    background: #252B34;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.lyrics-card:hover {
    background: #2C3440;
    transform: translateY(-2px);
}

.lyrics-card h2 {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
}

.lyrics-card__line {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
    line-height: 1.3;
}

.lyrics-card__meta {
    color: var(--accent-hover);
    font-size: 12px;
    line-height: 1.2;
}

.lyrics-page__empty {
    padding: 28px;
    border-radius: 8px;
    background: #252B34;
    color: var(--text-muted);
    font-size: 16px;
}

.lyric-page__container {
    width: min(100% - 40px, 760px);
}

.lyric-page__back {
    display: inline-flex;
    margin-bottom: 46px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    transition: color 0.25s ease;
}

.lyric-page__back:hover {
    color: var(--text-main);
}

.lyric-page__head {
    margin-bottom: 58px;
}

.lyric-page__head p {
    margin-bottom: 28px;
    color: var(--accent-hover);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.lyric-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.lyric-page__button {
    display: inline-flex;
    min-width: 214px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #252B34;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease;
}

.lyric-page__button--primary {
    background: var(--accent);
}

.lyric-page__button:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

.lyric-page__button.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.lyric-body {
    padding: 34px 42px;
    border-radius: 8px;
    background: #252B34;
}

.lyric-body [data-lyric-body] {
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.22;
}

.lyric-body p {
    margin: 0 0 22px;
    white-space: pre-line;
}

.lyric-body p:last-child {
    margin-bottom: 0;
}

.lyric-page__empty {
    padding: 180px 0;
}

.lyric-page__empty h1 {
    margin-bottom: 18px;
    font-size: 42px;
}

.lyric-page__empty p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.35;
}

@media (max-width: 820px) {
    .lyrics-page,
    .lyric-page {
        padding: 112px 0 96px;
    }

    .lyrics-page__container,
    .lyric-page__container {
        width: min(100% - 28px, 1018px);
    }

    .lyrics-page__head h1,
    .lyric-page__head h1 {
        font-size: 38px;
    }

    .lyrics-page__head p {
        font-size: 18px;
    }

    .lyrics-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .lyrics-page__head h1,
    .lyric-page__head h1 {
        font-size: 34px;
    }

    .lyrics-card {
        padding: 22px 20px;
    }

    .lyric-page__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lyric-page__button {
        min-width: 0;
        width: 100%;
    }

    .lyric-body {
        padding: 26px 22px;
    }
}
