body.poetry-Melodic-text {
    background: linear-gradient(
        to bottom,
        #0f0c29 0%,
        #1c1a4a 30%,
        #2a2a72 60%,
        #3a2f5f 85%,
        #1a1833 100%
    );
    position: relative;
    padding-top: 70px;
}

/* мягкое музыкальное свечение */
body.poetry-Melodic-text::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 120, 220, 0.12), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(120, 160, 255, 0.12), transparent 35%);
    z-index: -1;
}

/* Навбар */
body.poetry-Melodic-text .top-nav {
    background: rgba(20, 18, 50, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(180, 140, 255, 0.25);
}

/* Карточка текста песни */
body.poetry-Melodic-text .poem {
    background: linear-gradient(
        to bottom,
        #1a1833,
        #121026
    );
    border: 1px solid rgba(180, 140, 255, 0.35);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    color: #f4f3ff;

    /* лёгкий «ритм» при наведении */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.poetry-Melodic-text .poem:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Заголовок страницы */
body.poetry-Melodic-text h1 {
    color: #d3ccde;

    padding: 8px 16px;
    border-radius: 12px;

    background: rgba(15, 12, 40, 0.5);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(180, 140, 255, 0.35);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);

    letter-spacing: 0.6px;

    margin: 20px auto;
    display: block;
    width: fit-content;
}

/* Название песни */
.poem h2 {
    color: #d3ccde;
}

/* Текст */
body.poetry-Melodic-text .poem p {
    color: #e8e6ff;
    line-height: 1.6;
}

/* Теги */
body.poetry-Melodic-text .poem-tags a,
body.poetry-Melodic-text .poem-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;

    font-size: 0.92rem;
    color: #d9ecff; /* мягкий светло‑голубой */
    background: rgba(40, 60, 100, 0.28); /* холодная дымка */
    border: 1px solid rgba(120, 150, 200, 0.35); /* нежная голубая линия */

    border-radius: 999px;
    text-decoration: none;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: all 0.22s ease;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Hover — мягкое голубое сияние */
body.poetry-Melodic-text .poem-tags a:hover,
body.poetry-Melodic-text .poem-tags span:hover {
    color: #eaf4ff;
    background: rgba(60, 90, 140, 0.38);
    border-color: rgba(150, 180, 220, 0.55);
    box-shadow: 0 0 14px rgba(160, 200, 255, 0.35);
}

/* Active — чуть ярче, но всё ещё мягко */
body.poetry-Melodic-text .poem-tags .active {
    color: #f0f7ff;
    background: rgba(90, 120, 170, 0.45);
    border-color: rgba(170, 200, 240, 0.65);
}

body.poetry-Melodic-text .fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    font-size: 20px;
    line-height: 1;

    color: #d9ecff; /* светло‑голубой */
    background: rgba(40, 60, 100, 0.28); /* холодная дымка */
    border: 1px solid rgba(120, 150, 200, 0.35);

    border-radius: 50%;
    text-decoration: none;

    backdrop-filter: blur(4px);
    transition: 0.25s ease;
}

/* Hover — мягкое голубое сияние */
body.poetry-Melodic-text .fav-btn:hover {
    color: #eaf4ff;
    background: rgba(60, 90, 140, 0.38);
    border-color: rgba(150, 180, 220, 0.55);
    transform: scale(1.08);
}

/* Active — чуть ярче, но без агрессии */
body.poetry-Melodic-text .fav-btn.active,
body.poetry-Melodic-text .fav-btn.favorited {
    color: #f0f7ff;
    background: rgba(90, 120, 170, 0.45);
    border-color: rgba(170, 200, 240, 0.65);
    transform: scale(1.15);
}

/* Click — мягкое сжатие */
body.poetry-Melodic-text .fav-btn:active {
    transform: scale(0.92);
}
