body.poetry-On-the-edge {
    background: linear-gradient(
        to bottom,
        #3a0a0a 0%,
        #5a1010 30%,
        #7a1515 60%,
        #4a0f0f 85%,
        #1f0707 100%
    );
    position: relative;
    padding-top: 70px;
}

/* драматическое свечение */
body.poetry-On-the-edge::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 60, 60, 0.18), transparent 40%),
        radial-gradient(circle at bottom right, rgba(255, 120, 120, 0.12), transparent 35%);
    z-index: -1;
}

/* Навбар */
body.poetry-On-the-edge .top-nav {
    background: rgba(30, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 80, 80, 0.35);
}

/* Карточка стихотворения */
body.poetry-On-the-edge .poem {
    background: linear-gradient(
        to bottom,
        #1a0505,
        #0f0202
    );
    border: 1px solid rgba(255, 80, 80, 0.4);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 60, 60, 0.15);

    color: #f8eaea;
}

/* Заголовки */
body.poetry-On-the-edge h1 {
    color: #ff6a6a;

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

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

    background: rgba(30, 0, 0, 0.5);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 80, 80, 0.4);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.6),
        0 0 12px rgba(255, 70, 70, 0.25);

    letter-spacing: 0.6px;
}

/* Подзаголовки */
body.poetry-On-the-edge .poem h2 {
    color: #ff8a8a;
}

/* Текст */
body.poetry-On-the-edge .poem p {
    color: #f5e6e6;
}

body.poetry-On-the-edge .poem-tags a,
body.poetry-On-the-edge .poem-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;

    font-size: 0.92rem;
    color: #e8c4c4; /* светлый розово‑винный */
    background: rgba(120, 30, 30, 0.35); /* бордовая дымка */
    border: 1px solid rgba(160, 60, 60, 0.45); /* медная линия */

    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-On-the-edge .poem-tags a:hover,
body.poetry-On-the-edge .poem-tags span:hover {
    color: #ffd6c6; /* теплее, ярче */
    background: rgba(150, 40, 40, 0.45);
    border-color: rgba(200, 80, 80, 0.55);
    box-shadow: 0 0 14px rgba(255, 120, 120, 0.35);
}

/* Active — медно‑золотистый акцент */
body.poetry-On-the-edge .poem-tags .active {
    color: #ffb08a;
    background: rgba(200, 80, 60, 0.55);
    border-color: rgba(220, 120, 90, 0.65);
}

body.poetry-On-the-edge .fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

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

    color: #e8c4c4; /* светлый винный */
    background: rgba(120, 30, 30, 0.35); /* бордовая дымка */
    border: 1px solid rgba(160, 60, 60, 0.45); /* медная линия */

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

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

/* Hover — огненный блик */
body.poetry-On-the-edge .fav-btn:hover {
    color: #ffd6c6;
    background: rgba(150, 40, 40, 0.45);
    border-color: rgba(200, 80, 80, 0.55);
    transform: scale(1.08);
}

/* Active — медное сияние */
body.poetry-On-the-edge .fav-btn.active,
body.poetry-On-the-edge .fav-btn.favorited {
    color: #ffb08a;
    background: rgba(200, 80, 60, 0.55);
    border-color: rgba(220, 120, 90, 0.65);
    transform: scale(1.15);
}

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