/* =========================================================
   FICSVERSE
   COMENTÁRIOS POR TRECHO
   ========================================================= */


/* BLOCO DO TRECHO */

.fv-inline-paragraph {
    position: relative;
    margin-bottom: 1.2em;
}

.fv-inline-content {
    position: relative;
}


/* =========================================================
   BOTÃO "COMENTE!"
   ========================================================= */

.fv-inline-actions {
    margin-top: 5px;
}

.fv-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 3px 0;

    border: 0;
    background: transparent;

    color: inherit;

    font: inherit;
    font-size: 0.76rem;
    font-weight: 500;

    opacity: 0.5;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.fv-inline-trigger:hover {
    opacity: 0.9;
}

.fv-inline-trigger:active {
    transform: scale(0.98);
}

.fv-inline-icon {
    font-size: 0.8rem;
}

.fv-inline-label {
    line-height: 1.2;
}


/* =========================================================
   CAIXA DE COMENTÁRIOS
   ========================================================= */

.fv-inline-box {
    margin-top: 12px;
    padding: 16px;

    border: 1px solid rgba(127, 127, 127, 0.22);
    border-radius: 14px;

    background: rgba(127, 127, 127, 0.06);

    color: inherit;
}


/* CABEÇALHO */

.fv-inline-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 15px;
}

.fv-inline-box-header strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.fv-inline-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: inherit;

    font-size: 1.3rem;
    line-height: 1;

    opacity: 0.55;

    cursor: pointer;
}

.fv-inline-close:hover {
    background: rgba(127, 127, 127, 0.12);
    opacity: 1;
}


/* =========================================================
   LISTA DE COMENTÁRIOS
   ========================================================= */

.fv-inline-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-bottom: 16px;
}

.fv-inline-comment {
    padding-bottom: 12px;

    border-bottom: 1px solid rgba(127, 127, 127, 0.16);
}

.fv-inline-comment:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fv-inline-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 5px;
}

.fv-inline-comment-header strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.fv-inline-comment-header time {
    font-size: 0.7rem;
    opacity: 0.5;
}

.fv-inline-comment-text {
    font-size: 0.86rem;
    line-height: 1.55;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fv-inline-empty,
.fv-inline-loading {
    font-size: 0.8rem;
    opacity: 0.55;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.fv-inline-form {
    display: grid;
    gap: 9px;
}

.fv-inline-name,
.fv-inline-text {
    box-sizing: border-box;

    width: 100%;

    padding: 10px 11px;

    border: 1px solid rgba(127, 127, 127, 0.28);
    border-radius: 9px;

    background: rgba(127, 127, 127, 0.04);

    color: inherit;

    font: inherit;
    font-size: 0.84rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.fv-inline-name:focus,
.fv-inline-text:focus {
    border-color: rgba(127, 127, 127, 0.65);
    background: rgba(127, 127, 127, 0.07);
}

.fv-inline-text {
    min-height: 80px;
    resize: vertical;
}

.fv-inline-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.fv-inline-message {
    font-size: 0.72rem;
    opacity: 0.65;
}


/* BOTÃO ENVIAR */

.fv-inline-submit {
    padding: 8px 16px;

    border: 0;
    border-radius: 999px;

    background: #777777;
    color: #ffffff;

    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.fv-inline-submit:hover {
    opacity: 0.88;
}

.fv-inline-submit:active {
    transform: scale(0.98);
}

.fv-inline-submit:disabled {
    opacity: 0.45;
    cursor: wait;
}


/* =========================================================
   CAMPO INVISÍVEL ANTI-SPAM
   ========================================================= */

.fv-inline-website {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .fv-inline-box {
        padding: 13px;
        border-radius: 12px;
    }

    .fv-inline-comment-header {
        align-items: flex-start;
    }

    .fv-inline-form-footer {
        align-items: flex-end;
    }

    .fv-inline-submit {
        flex-shrink: 0;
    }

}
/* =========================================================
   COMENTÁRIO NA MESMA LINHA DO TRECHO
   ========================================================= */

.fv-inline-paragraph {
    display: block;
}

.fv-inline-content {
    display: inline;
}

.fv-inline-actions {
    display: inline;
    margin-left: 6px;
}

.fv-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    font: inherit;
    font-size: 0.82em;
    line-height: inherit;

    color: inherit;
    cursor: pointer;

    vertical-align: baseline;
}

.fv-inline-trigger:hover {
    text-decoration: underline;
}

.fv-inline-icon {
    font-size: 0.9em;
}
.fv-inline-label {
    display: none;
}
/* Mantém o espaçamento original da fanfic */
.fic-reading > .lead .fv-inline-paragraph {
    display: block;
    margin: 0;
    padding: 0;
}

.fic-reading > .lead .fv-inline-content {
    display: inline;
    margin: 0;
    padding: 0;
}

.fic-reading > .lead .fv-inline-actions {
    display: inline;
    margin-left: 6px;
}