/* ============================================
   REPETIDORES (GLOBAL)
   ============================================ */

/* Container do repetidor */
.wrapbloco .repeater-group {
    margin-bottom: 28px;
}

.wrapbloco .repeater-group:last-child {
    margin-bottom: 0;
}

/* Itens */
.wrapbloco .repeater-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 12px;
}


.repeater-row-dupla {
    display: flex;
    gap: 10px;
}


/* Cada linha do repetidor */
.wrapbloco .repeater-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: repeaterSlideIn 0.2s ease;
    border: dashed 1px #d4d1ff;
    padding: 20px;
    border-radius: 10px;
}

@keyframes repeaterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Container do input */
.wrapbloco .repeater-item-content {
    flex: 1;
}

/* Layout duplo (nome + link) */
.wrapbloco .repeater-item-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Inputs */
.wrapbloco .repeater-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Source Sans Pro', sans-serif;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    background: #fafafc;
    transition: all 0.25s ease;
    color: #1a1a2e;
    outline: none;
    box-sizing: border-box;
}

.wrapbloco .repeater-input:focus {
    border-color: #6c63ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.wrapbloco .repeater-input::placeholder {
    color: #b8b8cc;
}

/* Botão remover */
.wrapbloco .repeater-remove {
    width: 36px;
    height: 36px;
    border: 2px solid #e8e8f0;
    background: #fafafc;
    border-radius: 10px;
    color: #8e8ea0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.wrapbloco .repeater-remove:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* Botão adicionar */
.wrapbloco .repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: 2px dashed #d4d4e0;
    border-radius: 10px;
    color: #6c63ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.wrapbloco .repeater-add:hover {
    background: #f0edff;
    border-color: #6c63ff;
}

.wrapbloco .repeater-add:active {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
}

/* Primeiro item único não remove */
.wrapbloco .repeater-item:only-child .repeater-remove {
    opacity: 0.3;
    pointer-events: none;
}

/* Responsivo */
@media (max-width: 600px) {
    .wrapbloco .repeater-item-duplo {
        grid-template-columns: 1fr;
    }
}




/* ============================================
   REPETIDOR COM UPLOAD (VÍDEOS E LOCUÇÃO)
   ============================================ */


.wrapbloco .video-item-fields,
.wrapbloco .locucao-item-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrapbloco .video-upload-field,
.wrapbloco .locucao-upload-field {
    padding: 12px;
    background: #fafafc;
    border: 2px dashed #e8e8f0;
    border-radius: 10px;
}

.wrapbloco .video-file-upload-wrapper,
.wrapbloco .locucao-file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrapbloco .video-file-preview,
.wrapbloco .locucao-file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e0e0ea;
    border-radius: 8px;
}

.wrapbloco .video-file-name,
.wrapbloco .locucao-file-name {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    word-break: break-all;
}

.wrapbloco .video-file-upload,
.wrapbloco .video-file-remove,
.wrapbloco .locucao-file-upload,
.wrapbloco .locucao-file-remove {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wrapbloco .video-file-upload,
.wrapbloco .locucao-file-upload {
    background: #6c63ff;
    color: #fff;
}

.wrapbloco .video-file-upload:hover,
.wrapbloco .locucao-file-upload:hover {
    background: #5a52d5;
}

.wrapbloco .video-file-remove,
.wrapbloco .locucao-file-remove {
    background: #ff6b6b;
    color: #fff;
}

.wrapbloco .video-file-remove:hover,
.wrapbloco .locucao-file-remove:hover {
    background: #e05555;
}

.wrapbloco .video-url:disabled,
.wrapbloco .locucao-soundcloud:disabled {
    background: #f0f0f5;
    cursor: not-allowed;
}

.wrapbloco .locucao-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .wrapbloco .locucao-row {
        grid-template-columns: 1fr;
    }
}