body {
    font-family: var(--font-main);
}

.input-row { 
    display: flex;
    gap: 10px; 
    align-items: center; 
}

.input-field {
    background-color: var(--accent3);
    flex-grow: 1;
    height: 42px !important;
    margin-bottom: 5px;
    margin-top: 5px;

    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding-left: 10px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    box-sizing: border-box;
}

.send-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 25% ;

    
    background-color: var(--accent3);
    border: 2px solid var(--border-color);
    cursor: pointer;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    overflow: hidden;
    
    transition: all 0.2s ease;
}

.send-btn img {
    width: 32px;
    height: auto;
    filter: var(--icon-active-filter);
}

.send-btn:active {
    transform: scale(0.9);
}

.comment-time {
    color: var(--text-muted)    ;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 5px;
}

.comment-section { padding: 20px; position: relative; z-index: 1000; }

.comment-box {
    max-height: 500px; overflow-y: auto; background: #1C1C1C;
    border: 2px solid; padding: 5px; margin-bottom: 15px;
    margin-left: 25px; margin-right: 25px;
}

.comment-replies {
    margin-top: 10px;
}   

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 25%;
    background: #eee;
    border: 2px solid var(--border-color);
}

.comment-body { flex: 1; }

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    align-items: flex-start;
}

.comment-author {
    font-weight: bold;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
}

.comment-text {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
}

.comment-body {
    flex: 1;
}

.comm-reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 13px;
}

.reply-target-info { 
    display: none; 
    align-items: center; 
    justify-content: space-between;
    background: var(--accent3);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13px;
}
.reply-target-info.active { display: flex; }

.cancel-reply {
    cursor: pointer;
    color: var(--text-main);
    margin-left: 10px;
    background: none;
    border: none;
}

.cancel-reply img {
    width: 16px;
    height: auto;
    filter: var(--icon-active-filter);
}

.comment-actions {
    font-size: 11px;
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:5px;
    margin-left: -5px;
}

.more-load-btn {
    display: block;
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    border: none;
    color: var(--text-main);
    background-color: var(--accent3);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 40px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 900;
    font-family: var(--font-main);
}

.more-replies-btn {
    display: block;
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    border: none;
    color: var(--text-main);
    background-color: var(--accent3);
    order: 2px solid var(--border-color);
    border-radius: 5px;
    height: 40px;
    font-size: 11px;
    cursor: pointer;

    font-weight: 900;
    font-family: var(--font-main);
}

.reply-target-label {
    font-size: 12px;
    color: #8b949e;
    margin-left: 5px;
}

.replies-container {
    margin-top: 12px;
}

.comment-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.comment-meta-main {
    display: flex;
    flex-grow: 1;
    min-width: 0;
    flex-direction: row; 
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.reply-separator {
    color: var(--text-muted);
    font-size: 10px;
    opacity: 0.6;
}

.reply-target-line {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.comment-time-container {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.comments-header-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-left: 4px;
}

.comment-time-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-comm-btn {
    width: 16px;
    height: auto;
    
    background: none;
    border: none;
    cursor: pointer;
    font-size: 10px;
    padding: 2px 5px;
    opacity: 0.3;
    transition: opacity 0.2s;

}

.delete-comm-btn img {
    width: 16px;
    height: auto;
    filter: var(--icon-active-filter);
}

.comment-item:hover .delete-comm-btn {
    opacity: 1;
}



@media (max-width: 600px) {
    .comment-meta-main {
        flex-direction: column; 
        align-items: flex-start;
        gap: 0px;
    }

    .reply-separator {
        display: none;
    }

    .reply-target-line {
        font-size: 12px;
        line-height: 1.2;
        margin-top: 2px;
        font-weight: 500;
    }
}
