/* Comments Section - Premium YouTube-style */
.comments-section {
    /* margin-top: 48px; */
    padding: 32px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    text-align: left;
}

.comments-header {
    margin-bottom: 24px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}

.comments-title svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Comment Composer - Premium Input */
.comment-composer {
    margin-bottom: 32px;
}

.comment-form {
    display: flex;
    /* align-items: flex-start; */
    gap: 16px;
}

.composer-avatar {
    flex-shrink: 0;
}

.composer-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.composer-content {
    flex: 1;
    min-width: 0;
}

.composer-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.composer-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-primary, #fff);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.composer-input:focus {
    outline: none;
    border-color: var(--primary, #8b5cf6);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.08));
}

.composer-main {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    padding: 8px 8px 8px 20px;
    transition: all 0.2s;
}

.composer-main:focus-within {
    border-color: var(--primary, #8b5cf6);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.08));
}

.composer-textarea {
    flex: 1;
    min-height: 24px;
    max-height: 200px;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: none;
    padding: 8px 0;
}

.composer-textarea:focus {
    outline: none;
}

.composer-textarea::placeholder {
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.composer-submit {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.composer-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.composer-submit svg {
    width: 18px;
    height: 18px;
}

.composer-user,
.composer-hint {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.composer-user strong {
    color: var(--primary, #8b5cf6);
}

.composer-hint a {
    color: var(--primary, #8b5cf6);
    text-decoration: none;
}

.composer-hint a:hover {
    text-decoration: underline;
}

/* Comment Alert */
.comment-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.comment-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.comment-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary, #fff);
    font-size: 0.875rem;
}

.comment-time {
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.75rem;
}

.comment-text {
    color: var(--text-secondary, rgba(255, 255, 255, 0.85));
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 8px;
    word-wrap: break-word;
}

/* Comment Actions - Like Button */
.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.8125rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.comment-like-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

.comment-like-btn.liked {
    color: #8b5cf6;
}

.comment-like-btn.liked svg {
    fill: #8b5cf6;
}

.comment-like-btn svg {
    width: 18px;
    height: 18px;
}

/* Author Replies */
.author-replies {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-reply {
    display: flex;
    gap: 12px;
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    /* background: #8b5cf6; */
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.author-badge svg {
    width: 18px;
    height: 18px;
    color: #00a2ffff;
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    /* gap: 1px; */
    margin-bottom: 2px;
}

.reply-author {
    font-weight: 600;
    color: var(--primary, #8b5cf6);
    font-size: 0.8125rem;
}

.reply-time {
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.6875rem;
}

.reply-text {
    color: var(--text-secondary, rgba(255, 255, 255, 0.85));
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0 0 8px;
}

.reply-actions {
    margin-top: 4px;
}

.reply-like-btn {
    /* padding: 4px 10px; */
    font-size: 0.75rem;
}

.reply-like-btn svg {
    width: 14px;
    height: 14px;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.no-comments svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-comments p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Mobile */
@media (max-width: 640px) {
    .composer-fields {
        grid-template-columns: 1fr;
    }

    .comment-form {
        gap: 12px;
    }

    .composer-avatar img {
        width: 32px;
        height: 32px;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
}