/* --- BASE ARTICLE STYLES --- */
.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-main > li {
    margin-bottom: 8px;
    font-weight: 600;
}
.toc-sublist {
    padding-left: 20px;
    margin-top: 4px;
}
.toc-sublist li {
    margin-bottom: 4px;
    font-weight: normal;
}
.table-of-contents a {
    text-decoration: none;
    display: inline-block;
}
.versus-battle {
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-logo: 'Manrope', sans-serif;
    --text-color: #1D2D35;
    --text-secondary: #5A6D76;
    --link-color: #FF6B00;
    --background-color: #F5F7FA;
    --content-background: #ffffff;
    --border-color: #e9ecef;
    --brand-color: #111;
    --radius: 16px;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --red: #ff4d4d;
    --blue: #007bff;
    --gold: #ff8c00;
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    scrollbar-width: none !important;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* --- VERSUS SPECIFIC --- */
.versus-page .versus-battle h2.round-header {
    display: block !important;
    background: linear-gradient(135deg, #222 0%, #000 100%) !important;
    color: #fff !important;
    padding: 15px 25px !important;
    margin: 40px 0 25px 0 !important;
    border-left: 8px solid var(--gold) !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    transform: skewX(-5deg);
    box-shadow: 10px 10px 0px rgba(255, 140, 0, 0.2);
    border-bottom: none !important;
}

.versus-page .versus-battle .fighter-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800 !important;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 30px !important;
    border-left: none !important;
}

.versus-page .versus-battle .fighter-red {
    background: rgba(255, 77, 77, 0.05);
    border-left: 5px solid var(--red);
    color: var(--red) !important;
}

.versus-page .versus-battle .fighter-blue {
    background: rgba(0, 123, 255, 0.05);
    border-left: 5px solid var(--blue);
    color: var(--blue) !important;
}

.versus-page .versus-battle .fighter-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    padding: 2px !important;
    background: #fff !important;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.versus-page .versus-battle .fighter-avatar:hover {
    transform: scale(1.1);
}

/* --- PAIN LIST (REVIEWS) --- */
.versus-battle .pain-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
}

.versus-battle .pain-list li {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 12px !important;
    padding: 18px 18px 18px 50px !important;
    border-radius: 12px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.versus-battle .pain-list li:hover {
    transform: translateY(-2px);
    border-color: #fca5a5 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08) !important;
}

.versus-battle .pain-list li::before {
    content: "💀";
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    opacity: 0.7;
}

/* --- ARTICLE LINKS --- */
.article-body a {
    color: #FF6B00 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2) !important;
    padding: 0 2px !important;
    transition: all 0.2s ease !important;
    word-break: break-word !important;
    border-radius: 4px !important;
    display: inline !important;
}

.article-body a:hover {
    background-color: rgba(255, 107, 0, 0.08) !important;
    border-bottom-color: #FF6B00 !important;
    color: #e65a00 !important;
    text-decoration: none !important;
}

.table-of-contents a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: none !important;
    padding: 0.3rem 0 !important;
    background: none !important;
    display: block !important;
}

.table-of-contents a:hover {
    color: var(--link-color) !important;
    font-weight: 600 !important;
    background: none !important;
}

.table-of-contents a.active {
    color: var(--link-color) !important;
    font-weight: 700 !important;
    background: rgba(255, 107, 0, 0.1) !important;
    padding: 0.3rem 0.8rem !important;
    border-left: 3px solid var(--link-color) !important;
}

/* --- CROSS-LINKS --- */
.related-dissections {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.dissection-link, .btn-battle-link {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    flex: 1 1 280px;
    height: fit-content;
    min-height: 64px;
    overflow: hidden;
}

.dissection-link:hover, .btn-battle-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fdfdfd;
}

.dissection-link:hover .img-wrapper, .btn-battle-link:hover .img-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dissection-link .img-wrapper,
.btn-battle-link .img-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dissection-link .img-wrapper img,
.btn-battle-link .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dissection-link .img-wrapper span,
.btn-battle-link .img-wrapper span {
    font-size: 24px;
}

.dissection-link {
    padding: 8px 12px 8px 8px;
    gap: 12px;
    border-left: 4px solid #FF6B00;
    max-width: calc(50% - 6px);
}

.btn-battle-link {
    padding: 8px 12px 8px 8px;
    gap: 12px;
    border-left: 4px solid #ef4444;
    margin: 15px 0;
    max-width: 100%;
}

.diss-info, .battle-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.diss-label, .battle-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diss-title, .battle-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2px;
}

/* --- PREVIEWS --- */
.versus-battle .vs-preview-main {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- LEGAL SHIELD --- */
.legal-shield {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 40px 0 20px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .dissection-link {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .related-dissections {
        flex-direction: column;
        gap: 10px;
    }
    .tg-slide-card {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(150%);
        width: 92%;
        max-width: 420px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.3);
        padding: 20px;
        z-index: 999999;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .tg-slide-card.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* --- VIP/AUTHOR COMMENTS --- */
.comment-item--vip {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

.comment-item--vip .comment-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.comment-item--vip .comment-author {
    font-size: 14px !important;
    color: #111827 !important;
}

.author-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 100px;
    margin-left: 8px;
    letter-spacing: 0.2px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    text-transform: none;
}

.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reply-item.comment-item--vip {
    margin-left: 20px;
}

/* --- COMMENT ACTIONS & REACTIONS --- */
.comment-footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.comment-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.comment-reaction-badge:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.comment-reaction-badge .count {
    font-weight: 700;
    color: #475569;
}

.comment-reaction-add {
    position: relative;
}

.btn-add-reaction {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.btn-add-reaction:hover {
    color: #64748b;
}

.comment-reaction-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 100;
    gap: 8px;
    margin-bottom: 8px;
    animation: fadeInScale 0.2s ease-out;
}

.comment-reaction-menu.active {
    display: flex;
}

.reaction-item {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
}

.reaction-item:hover {
    transform: scale(1.3);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.comment-date {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

/* --- CLUSTER LINKS --- */
.cluster-links {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cluster-links h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cluster-links h3::before {
    content: "📚";
    font-size: 1.2em;
}

.cluster-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cluster-links li {
    position: relative;
    padding-left: 24px;
}

.cluster-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 2px;
    color: #cbd5e1;
    font-weight: bold;
    transition: color 0.2s;
}

.cluster-links li:hover::before {
    color: #FF6B00;
}

.cluster-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
    line-height: 1.4;
}

.cluster-links a:hover {
    color: #FF6B00;
    border-bottom-color: rgba(255, 107, 0, 0.3);
}

/* Выделение ссылки на HUB */
.cluster-links li.cluster-hub-link {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.cluster-links li.cluster-hub-link::before {
    content: "⭐";
    color: #fbbf24;
}

.cluster-links li.cluster-hub-link a {
    font-size: 1.15rem;
    color: #0f172a;
}

@media (max-width: 768px) {
    .cluster-links {
        padding: 20px;
        margin-top: 30px;
    }
    .cluster-links a {
        font-size: 1rem;
    }
}
