/* TubePussy — respostas em comentários estilo YouTube (2026-06-11)
 * Classes prefixadas tp-* / acopla na estrutura .item do KVS sem reescrever o tema.
 * Linha conectora, recuo, avatar menor, toggle "Ver respostas", form inline. */

/* =====================================================================
   REPAGINAÇÃO dos comentários (estilo YouTube) — só na página de vídeo.
   Override do tema com seletor .comment-holder (mais específico) pra ganhar
   o cascade independente da ordem de carregamento do black_orange.css.
   Layout: [avatar] | linha1: nome + tempo / linha2: texto / linha3: votos + responder
   ===================================================================== */

/* Item mais compacto */
.comment-holder .list-comments .item {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Avatar 80px → 42px */
.comment-holder .list-comments .image {
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin-right: 12px;
    background: #1c1f26;
}
.comment-holder .list-comments .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Placeholder de quem NÃO tem foto: silhueta de usuário (não círculo vazio nem
   o texto "não há fotos"). Vale pros 2 casos do KVS (no-thumb com texto e com svg). */
.comment-holder .list-comments .image .no-thumb {
    font-size: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2e37;
}
.comment-holder .list-comments .image .no-thumb svg,
.comment-holder .list-comments .image .no-thumb i { display: none; }
.comment-holder .list-comments .image .no-thumb::after {
    content: "";
    width: 64%;
    height: 64%;
    background-color: #7a8088;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.6-9 6v2h18v-2c0-3.4-4-6-9-6z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.6-9 6v2h18v-2c0-3.4-4-6-9-6z'/></svg>") center / contain no-repeat;
}

/* Cabeçalho: nome em destaque + tempo discreto, na 1ª linha */
.comment-holder .list-comments .comment-info {
    order: 1;
    flex: 1 1 100%;
    align-items: baseline;
    gap: 8px;
    color: #8b8f96;
    font-size: 12px;
}
.comment-holder .list-comments .comment-info .username {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    margin-right: 8px;
}
.comment-holder .list-comments .date-holder { font-size: 12px; color: #8b8f96; }
.comment-holder .list-comments .date-holder i { opacity: .7; }

/* Texto na 2ª linha, largura total */
.comment-holder .list-comments .comment-text {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    padding: 3px 0 0 0;
    font-size: 14px;
    line-height: 1.45;
}

/* 3ª linha: barra de ações [votos  responder], leve (sem caixas pesadas) */
.comment-holder .list-comments .comment-options {
    order: 3;
    flex: 0 0 auto;
    margin-top: 4px;
    gap: 2px;
}
/* Número do rating: sem caixa, discreto */
.comment-holder .list-comments .comment-options span.comment-rating {
    background: none !important;
    padding: 0 6px 0 0;
    font-size: 13px;
    color: #b9bcc4;
    letter-spacing: 0;
}
.comment-holder .list-comments .comment-options span.comment-rating.positive { color: #4caf50; background: none !important; }
.comment-holder .list-comments .comment-options span.comment-rating.negative { color: #ef5350; background: none !important; }
/* Setas de voto: botões-ícone redondos leves */
.comment-holder .list-comments .comment-options .comment-like,
.comment-holder .list-comments .comment-options .comment-dislike,
.comment-holder .list-comments .comment-options .comment-edit {
    min-width: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: none;
    margin: 0;
}
.comment-holder .list-comments .comment-options .comment-like:hover,
.comment-holder .list-comments .comment-options .comment-dislike:hover {
    background: rgba(255, 255, 255, 0.08);
}
.comment-holder .list-comments .comment-options .comment-like svg,
.comment-holder .list-comments .comment-options .comment-dislike svg {
    width: 16px;
    height: 16px;
    fill: #b9bcc4;
}

/* "Responder" inline na barra de ações (não mais 100% width) */
.comment-holder .list-comments .text > .tp-reply-btn,
.comment-holder .tp-replies-list .text > .tp-reply-btn {
    order: 4;
    flex: 0 0 auto;
    width: auto;
    margin: 4px 0 0 6px;
    padding: 6px 10px;
    border-radius: 16px;
    align-self: center;
}
.comment-holder .list-comments .text > .tp-reply-btn:hover,
.comment-holder .tp-replies-list .text > .tp-reply-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Botão "Responder" em cada comentário.
   O .text do KVS é flex com ordem (nome=1, votos=2, texto=3) — o botão precisa
   de order:4 + largura total pra cair na própria linha ABAIXO do texto. */
.list-comments .text > .tp-reply-btn,
.tp-replies-list .text > .tp-reply-btn {
    -webkit-box-ordinal-group: 5;
    -ms-flex-order: 4;
    order: 4;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #b9bcc4;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}
.tp-reply-btn:hover { color: #fff; }

/* @menção destacada no texto da resposta */
.tp-reply-mention {
    color: #6ea8fe;
    font-weight: 600;
}

/* Bloco de respostas sob o comentário-raiz */
.tp-replies {
    position: relative;
    margin-left: 52px;          /* alinha com o texto do pai (avatar ~40 + gap) */
    margin-top: 2px;
}

/* Toggle "Ver N respostas / Ocultar respostas" */
.tp-replies-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 0;
    background: none;
    border: none;
    color: #6ea8fe;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 18px;
}
.tp-replies-toggle:hover { color: #9cc3ff; }
.tp-replies-caret {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform .2s ease;
}
.tp-replies.open .tp-replies-caret { transform: rotate(180deg); }

/* Lista de respostas com a LINHA CONECTORA vertical à esquerda */
.tp-replies-list {
    position: relative;
    padding-left: 24px;
}
.tp-replies-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

/* Cada resposta: herda .item do tema, só ajusta tamanho/recuo */
.tp-replies-list .item.tp-reply {
    margin-bottom: 14px;
}
.tp-replies-list .item.tp-reply:last-child { margin-bottom: 2px; }

/* Avatar menor nas respostas */
.tp-replies-list .item.tp-reply .image {
    width: 32px;
    height: 32px;
    min-width: 32px;
}
.tp-replies-list .item.tp-reply .image img,
.tp-replies-list .item.tp-reply .image .no-thumb {
    width: 32px;
    height: 32px;
}

/* Form de resposta inline */
.tp-reply-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tp-reply-input {
    width: 100%;
    min-height: 38px;
    resize: vertical;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
}
.tp-reply-input:focus {
    outline: none;
    border-color: #6ea8fe;
    background: rgba(255, 255, 255, 0.07);
}
.tp-reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.tp-reply-cancel,
.tp-reply-send {
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity .15s ease, background .15s ease;
}
.tp-reply-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #d6d8de;
}
.tp-reply-cancel:hover { background: rgba(255, 255, 255, 0.14); }
.tp-reply-send {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
}
.tp-reply-send:hover { opacity: .9; }
.tp-reply-send:disabled { opacity: .5; cursor: default; }

/* Mobile: recuo menor pra não espremer o texto */
@media (max-width: 600px) {
    .tp-replies { margin-left: 34px; }
    .tp-replies-list { padding-left: 16px; }
}