/* ── COMENTARIOS DE RRSS ──────────────────────────────────────────────────── */

.comentarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.comment-card {
    background: #FFFFFF0D;
    border: 1px solid #FFFFFF15;
    border-radius: 12px;
    padding: 12px 14px;
    transition: background 0.2s ease;
    animation: commentFadeIn 0.3s ease-out both;
}

.comment-card:hover {
    background: #FFFFFF18;
}

@keyframes commentFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #FFFFFF22;
}

.comment-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #FFFFFF88;
    flex-shrink: 0;
    font-family: englebert, sans-serif;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.comment-author {
    font-size: 0.8rem;
    font-weight: bold;
    color: #FFFFFFcc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-platform {
    font-size: 0.68rem;
    color: #FFFFFF55;
    display: flex;
    align-items: center;
    gap: 4px;
}

.platform-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.platform-dot.youtube   { background: #FF0000; }
.platform-dot.instagram { background: #E1306C; }
.platform-dot.tiktok    { background: #69C9D0; }
.platform-dot.twitch    { background: #9146FF; }

.comment-text {
    font-size: 0.78rem;
    color: #FFFFFFaa;
    line-height: 1.45;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #FFFFFF44;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-link:hover {
    color: #ff6a00;
}

/* Estado de carga y error */
.comments-loading,
.comments-empty,
.comments-error {
    text-align: center;
    padding: 24px 0;
    color: #FFFFFF44;
    font-size: 0.8rem;
    font-family: englebert, sans-serif;
}

.comments-loading::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #FFFFFF22;
    border-top-color: #ff6a00;
    border-radius: 50%;
    margin: 10px auto 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Filtros de plataforma */
.comments-filters {
    margin-top: 10px;
    border: 1px solid #ff6a0055 !important;
    background-color: #3335 !important;
    color: #fff !important;
}

.comments-filters:hover {
    border: 1px solid #ff6a00 !important;
}

.comments-filters:active {
    outline: 1px #ff6a00;
    border: 1px #ff6a00;
}

.filter-opt {
    background: #333;
    border: 0;
    transition: all 0.2s;
    font-family: englebert, sans-serif;
    border-radius: 10px;
}

.filter-opt:hover {
    color: #FFFFFFaa;
    background: #ff6a00 !important;
}

.filter-opt.active {
    background: #ff6a0022;
    border-color: #ff6a0088;
    color: #ff6a00;
}
