.single-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

/* LEFT PANEL */
.single-left {
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 12px 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.single-thumb {
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 12px;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.single-author-block img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.single-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-author-row1 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.single-author-row2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.8;
}

.single-author-name {
    font-weight: 700;
    font-size: 14px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.75;
}

.single-meta-sep { opacity: 0.5; }

.single-cat {
    color: #f0a500;
    font-weight: 600;
}

/* RIGHT PANEL */
.single-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 16px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.single-post-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    flex-shrink: 0;
}

.single-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
    background: transparent !important;
}

/* COMMENTS PAGE */
.single-comments-page {
    height: 100%;
    overflow-y: auto;
    padding: 16px 20px;
    box-sizing: border-box;
}

.single-comments-page img.avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
}

/* COMMENTS LAYOUT */
.scdev-comments-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.scdev-comment-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 0;
}

.scdev-comments-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px 0;
    opacity: 0.7;
}

.scdev-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scdev-comment-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.scdev-comment-row img.avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.scdev-comment-body {
    flex: 1;
}

.scdev-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-bottom: 2px;
}

.scdev-comment-author {
    font-weight: 700;
}

.scdev-comment-date {
    opacity: 0.6;
}

.scdev-comment-header a {
    font-size: 11px;
    opacity: 0.6;
    text-decoration: none;
}

.scdev-comment-header a:hover { opacity: 1; }

.scdev-comment-text {
    font-size: 12px;
    line-height: 1.4;
}

.scdev-comment-text p { margin: 0; }

/* COMMENT FORM - pinned at bottom */
.scdev-comment-form-wrap {
    flex-shrink: 0;
    padding: 8px 16px;
    border-top: 1px solid var(--dm-form-border, rgba(0,0,0,0.1));
}

.scdev-comment-form-wrap .comment-reply-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: block;
}

.scdev-comment-form-wrap .comment-form-comment,
.scdev-comment-form-wrap .comment-form-author,
.scdev-comment-form-wrap .comment-form-email {
    margin: 0 0 4px 0;
}

.scdev-comment-form-wrap input,
.scdev-comment-form-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--dm-input-border, rgba(0,0,0,0.2));
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
 /*   background: var(--dm-input-bg, rgba(255,255,255,0.6)); */
    color: var(--dm-text, #111);
    resize: none;
}

.scdev-comment-form-wrap textarea { height: 50px; }

.scdev-comment-form-wrap .form-submit {
    margin: 4px 0 0 0;
}

.scdev-comment-form-wrap .submit {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.scdev-comment-form-wrap p.comment-notes { display: none; }

.scdev-comment-form-wrap .logged-in-as,
.scdev-comment-form-wrap .comment-notes { display: none; }

.scdev-comment-edit-btn,
.scdev-comment-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    opacity: 0.6;
}

.scdev-comment-edit-btn { color: #667eea; }
.scdev-comment-delete-btn { color: #e74c3c; }
.scdev-comment-edit-btn:hover,
.scdev-comment-delete-btn:hover { opacity: 1; }

.scdev-cancel-edit {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
}

@media (max-width: 768px) {
    .single-layout {
        flex-direction: column;
        overflow-y: auto;
        height: 100%;
    }

    .single-left {
        width: 100%;
        padding: 10px 16px;
    }

    .single-thumb {
        height: 200px;
    }

    .single-right {
        flex: 1;
        min-height: 0;
        padding: 0 16px 16px;
    }
}

.single-comment-badge {
    font-size: 13px;
    color: #aaaaaa;
}

.single-reactions-page {
    width: 100%;
    overflow: hidden;
}

.single-reactions-box {
    width: 100%;
    height: 440px;
    box-sizing: border-box;
    padding: 0 12px;
    overflow: visible;
}

.single-reactions-box .scdev-reactions {
    margin: 0;
}

.single-reactions-box .scdev-reactions-bar {
    flex-wrap: nowrap;
    height: 40px;
    align-items: center;
    padding: 0 8px;
    margin-top:18px;
}

.single-reactions-box .scdev-reaction-btn,
.single-reactions-box .scdev-share-btn,
.single-reactions-box .scdev-views-display {
    font-size: 13px !important;
    padding: 4px 10px !important;
    min-height: unset !important;
    min-width: unset !important;
    height: auto !important;
    line-height: 1.2 !important;
}
