main.heart-comments-page {
    --heart-bg: rgba(255, 252, 246, .72);
    --heart-card: rgba(255, 252, 246, .70);
    --heart-card-hover: rgba(255, 252, 246, .86);
    --heart-border: rgba(0, 102, 204, .16);
    --heart-border-hover: rgba(0, 102, 204, .26);
    --heart-text: #33414F;
    --heart-sub: #5E6E7E;
    --heart-soft: #8C9AA8;
    --heart-brown: #0066CC;
    --heart-brown-dark: #004C99;
    --heart-red: #b86b55;
    --heart-shadow: 0 16px 38px rgba(0, 51, 102, .055);
    --heart-shadow-hover: 0 24px 52px rgba(0, 51, 102, .11);
    width: 100%;
}

.heart-wrap {
    width: 100%;
    margin: 0 auto;
    color: var(--heart-text);
    padding-top: 10px;
    font-family: var(--font-main);
}

.heart-hero {
    position: relative;
    min-height: 62px;
    margin: 8px 0 18px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 14px;
    border: 1px solid rgba(0, 102, 204, .14);
    background: linear-gradient(180deg, rgba(255, 253, 249, .88), rgba(255, 248, 239, .72));
    box-shadow: 0 12px 30px rgba(83, 62, 38, .045);
    overflow: hidden;
}

.heart-hero::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .50);
    pointer-events: none;
}

.heart-hero-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    width: 100%;
}

.heart-main-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    color: rgba(0, 102, 204, .68);
    filter: none;
}

.heart-main-icon svg,
svg.heart-main-icon {
    display: block;
}

.heart-hero-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1;
}

.heart-hero-title h1 {
    margin: 0;
    color: #33414F;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

.heart-hero-title i {
    width: 1px;
    height: 16px;
    background: rgba(0, 102, 204, .18);
    font-style: normal;
    flex: 0 0 auto;
}

.heart-hero-title span {
    color: #5E6E7E;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.heart-hero-arrow {
    display: none;
}

.heart-intro {
    margin: 0 0 18px;
    color: #33414F;
    font-size: 14px;
    line-height: 2;
    letter-spacing: .02em;
}

.heart-intro p {
    margin: 0;
}

.heart-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.heart-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 74px;
    border: 1px solid rgba(0, 102, 204, .14);
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 0, rgba(0, 102, 204, .055), transparent 54%),
        rgba(255, 252, 246, .58);
    box-shadow: 0 10px 24px rgba(80, 61, 42, .045);
    backdrop-filter: blur(8px);
}

.heart-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0066CC;
    background: rgba(0, 102, 204, .075);
    border: 1px solid rgba(0, 102, 204, .09);
}

.heart-stat-icon svg {
    width: 21px;
    height: 21px;
}

.heart-stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heart-stat-text span {
    color: #33414F;
    font-size: 13px;
}

.heart-stat-text strong {
    color: #33414F;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
}

.heart-grid {
    column-count: 2;
    column-gap: 12px;
    margin-top: 2px;
}

.heart-card {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 150px;
    margin: 0 0 12px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    padding: 16px 18px 14px;
    border: 1px solid var(--heart-border);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255, 252, 246, .82), rgba(255, 249, 240, .58)),
        var(--heart-card);
    box-shadow: var(--heart-shadow);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.heart-card:hover {
    transform: translateY(-2px);
    border-color: var(--heart-border-hover);
    background: var(--heart-card-hover);
    box-shadow: var(--heart-shadow-hover);
}

.heart-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -55px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, .07), transparent 62%);
    pointer-events: none;
}

.heart-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.heart-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.heart-avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 102, 204, .15);
    background: rgba(255, 248, 237, .8);
    box-shadow:
        0 5px 12px rgba(0, 51, 102, .07),
        0 0 0 3px rgba(255, 252, 246, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a654f;
    font-weight: 600;
}

.heart-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.heart-name {
    min-width: 0;
    color: #33414F;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.heart-date {
    color: #8C9AA8;
    font-size: 12px;
    white-space: nowrap;
    font-family: Georgia, "Times New Roman", serif;
}

.heart-comment {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    min-height: 56px;
    margin: 4px 0 13px;
    color: #33414F;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: .02em;
}

.heart-quote {
    color: rgba(0, 102, 204, .28);
    font-size: 42px;
    line-height: .9;
    font-family: Georgia, "Times New Roman", serif;
    transform: translateY(4px);
    user-select: none;
}

.heart-source {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    padding-top: 2px;
    color: #8C9AA8;
    font-size: 12px;
}

.heart-source span {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 24px;
}

.heart-source a {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 24px;
    padding: 2px 30px 2px 8px;
    border-radius: 7px;
    color: #0066CC;
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(0, 102, 204, .035);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.heart-source a::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.4px solid currentColor;
    border-right: 1.4px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    opacity: .58;
    transition: right .18s ease, opacity .18s ease;
}

.heart-source a:hover {
    color: var(--heart-brown-dark);
    background: rgba(0, 102, 204, .105);
    border-color: rgba(0, 102, 204, .22);
    box-shadow: 0 7px 16px rgba(0, 51, 102, .075);
    transform: translateY(-1px);
}

.heart-source a:hover::after {
    right: 7px;
    opacity: .9;
}

.heart-empty {
    grid-column: 1 / -1;
    padding: 42px 18px;
    border: 1px solid var(--heart-border);
    border-radius: 10px;
    background: rgba(255, 252, 246, .62);
    color: var(--heart-sub);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 800px) {

    .heart-hero {
        min-height: 68px;
        margin: 6px 0 16px;
        padding: 12px 15px;
        border-radius: 13px;
        align-items: center;
    }

    .heart-hero::before {
        border-radius: 12px;
    }

    .heart-hero-title {
        gap: 12px;
        align-items: center;
    }

    .heart-main-icon {
        width: 28px;
        height: 28px;
    }

    .heart-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: normal;
    }

    .heart-hero-title h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .heart-hero-title i {
        display: none;
    }

    .heart-hero-title span {
        font-size: 12px;
        line-height: 1.45;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .heart-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .heart-stat {
        min-height: auto;
        padding: 12px 8px;
        gap: 8px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .heart-stat-icon {
        width: 36px;
        height: 36px;
    }

    .heart-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .heart-stat-text strong {
        font-size: 24px;
    }

    .heart-grid {
        column-count: 1;
        column-gap: 0;
    }
}

@media (max-width: 480px) {
    .heart-intro {
        font-size: 13px;
        line-height: 1.9;
    }

    .heart-stats {
        gap: 8px;
    }

    .heart-stat {
        padding: 10px 6px;
        border-radius: 8px;
    }

    .heart-stat-text span {
        font-size: 12px;
    }

    .heart-stat-text strong {
        font-size: 22px;
    }

    .heart-card {
        padding: 15px 14px 13px;
        margin-bottom: 10px;
    }

    .heart-source {
        column-gap: 6px;
        font-size: 12px;
    }

    .heart-source a {
        padding-right: 26px;
    }

    .heart-comment {
        grid-template-columns: 28px minmax(0, 1fr);
        font-size: 13px;
    }

    .heart-quote {
        font-size: 36px;
    }

    .heart-actions {
        margin-top: 10px;
    }
}
