/* ===============================
   ФОН КАТЕГОРИИ MEMORIES
================================ */
body.poetry-Memories {
    background: linear-gradient(
        to bottom,
        #F7E7C1 0%,   /* светлая старая бумага */
        #D9B88A 30%,  /* мягкий янтарь */
        #C9A87A 60%,  /* тёплая карамель */
        #B08C63 85%,  /* глубокая сепия */
        #8C6A45 100%  /* тёмная винтажная бумага */
    );
    position: relative;
    padding-top: 70px;
}

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

/* Навбар */
body.poetry-Memories .top-nav {
    background: rgba(120, 90, 50, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 120, 70, 0.35);
}

/* Карточка стихотворения */
body.poetry-Memories .poem {
    background: linear-gradient(
        to bottom,
        rgba(255, 245, 225, 0.75),
        rgba(240, 225, 200, 0.85)
    );
    border: 1px solid rgba(150, 110, 70, 0.35);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(200, 170, 120, 0.25);

    color: #2A1E14; /* мягкий чернильный */
}

/* Заголовки */
body.poetry-Memories h1 {
    color: #5A3E22;

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

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

    background: rgba(255, 245, 225, 0.45);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(150, 110, 70, 0.35);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.25),
        0 0 12px rgba(200, 170, 120, 0.25);

    letter-spacing: 0.6px;
}

/* Подзаголовки */
body.poetry-Memories .poem h2 {
    color: #4A2F1A;
}

/* Текст */
body.poetry-Memories .poem p,
body.poetry-Memories .poem .poem-text {
    color: #1A0F07;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(0,0,0,0.4);
}

/* Теги */
body.poetry-Memories .poem-tags span,
body.poetry-Memories .poem-tags a {
    color: #D2691E;
}

/* Лайк */
body.poetry-Memories .poem-like {
    color: #8B6A4A; /* тёплый карамельный */
    transition: 0.25s;
}

body.poetry-Memories .poem-like:hover {
    color: #A67C52; /* чуть ярче */
}

body.poetry-Memories .poem-like.liked {
    color: #D49A6A; /* янтарный */
    transform: scale(1.25) rotate(-8deg);
}

body.poetry-Memories .poem-like:hover {
    color: #C48A52;
}

body.poetry-Memories .poem-like.liked {
    color: #E6A86A;
    animation: like-pop 420ms cubic-bezier(.34, 1.56, .64, 1);
}

/* ЗВЕЗДА — избранное (НЕУБИВАЕМАЯ ВЕРСИЯ) */
.fav-btn {
 width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    pointer-events: auto;
}

/* ★ ЗВЕЗДА — песочный стиль */
body.poetry-Memories .fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

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

    color: #8B6A4A; /* мягкий карамельный */
    background: rgba(255, 245, 225, 0.35);
    border: 1px solid rgba(150, 110, 70, 0.35);

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

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

/* Ховер — чуть ярче */
body.poetry-Memories .fav-btn:hover {
    color: #A67C52;
    background: rgba(255, 245, 225, 0.5);
    border-color: rgba(150, 110, 70, 0.45);
    transform: scale(1.08);
}

/* Активная (в избранном) */
body.poetry-Memories .fav-btn.active,
body.poetry-Memories .fav-btn.favorited {
    color: #D49A6A; /* янтарный */
    background: rgba(255, 240, 210, 0.55);
    border-color: rgba(150, 110, 70, 0.55);
    transform: scale(1.15);
}

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

.poem-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poem-actions .left {
    display: flex;
    align-items: center;
}

.poem-actions .right {
    display: flex;
    align-items: center;
}
