/* TikTok Downloader Pro - Estilos Solicitados */
.tt-downloader-wrapper {
    background-color: #f0f0f1;
    padding: 30px 15px;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #6b6b6b;
}

.tt-downloader-container {
    max-width: 680px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e2e5;
}

.tt-downloader-header {
    text-align: center;
    margin-bottom: 25px;
}

.tt-downloader-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    color: #4a4a4a;
    font-weight: 600;
}

.tt-downloader-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b6b6b;
    line-height: 1.4;
}

/* Formulario e Input con Botón Pegar incorporado */
.tt-downloader-form {
    margin-bottom: 20px;
}

.tt-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tt-input-field-wrapper {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
}

.tt-input-field-wrapper input[type="url"] {
    width: 100%;
    padding: 12px 90px 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #6b6b6b;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.tt-input-field-wrapper input[type="url"]:focus {
    border-color: #888888;
    box-shadow: 0 0 0 3px rgba(107, 107, 107, 0.12);
}

.tt-paste-btn {
    position: absolute;
    right: 6px;
    background-color: #f0f0f1;
    color: #6b6b6b;
    border: 1px solid #d8d8dc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tt-paste-btn:hover {
    background-color: #e4e4e7;
    color: #4a4a4a;
}

#tt-submit-btn {
    background-color: #555555;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#tt-submit-btn:hover {
    background-color: #333333;
}

#tt-submit-btn:disabled {
    background-color: #aaaaaa;
    cursor: not-allowed;
}

/* Alertas */
.tt-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tt-alert-error {
    background-color: #fdf2f2;
    color: #9b2c2c;
    border: 1px solid #f8b4b4;
}

/* Caja de Temporizador / Conteo Regresivo */
.tt-timer-box {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f1;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #e0e0e3;
}

.tt-timer-text {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #6b6b6b;
}

.tt-timer-text strong {
    color: #333333;
    font-size: 1.1rem;
}

.tt-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #d4d4d8;
    border-top: 3px solid #6b6b6b;
    border-radius: 50%;
    margin: 0 auto;
    animation: tt-spin 0.9s linear infinite;
}

@keyframes tt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tt-progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #e2e2e5;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.tt-progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #6b6b6b;
    transition: width 0.1s linear;
}

/* Resultados: Video o Diapositivas */
.tt-result-card {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ebebeb;
}

.tt-single-video-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 580px) {
    .tt-single-video-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.tt-video-preview img {
    width: 140px;
    height: 185px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.tt-video-details {
    flex: 1;
    width: 100%;
}

.tt-video-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.4;
    word-break: break-word;
}

.tt-author {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.tt-download-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.tt-btn-hd {
    background-color: #4a4a4a;
    color: #ffffff !important;
}

.tt-btn-hd:hover {
    background-color: #2e2e2e;
}

.tt-btn-normal {
    background-color: #6b6b6b;
    color: #ffffff !important;
}

.tt-btn-normal:hover {
    background-color: #525252;
}

.tt-btn-mp3 {
    background-color: #71717a;
    color: #ffffff !important;
}

.tt-btn-mp3:hover {
    background-color: #52525b;
}

.tt-btn-cover {
    background-color: #f0f0f1;
    color: #6b6b6b !important;
    border: 1px solid #dcdcdc;
}

.tt-btn-cover:hover {
    background-color: #e4e4e7;
    color: #4a4a4a !important;
}

/* Estilos de Carrusel de Fotos (Slideshow) */
.tt-slideshow-header {
    margin-bottom: 20px;
    text-align: center;
}

.tt-slides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tt-slide-item {
    background-color: #f0f0f1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e2e5;
}

.tt-slide-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tt-btn-slide {
    background-color: #6b6b6b;
    color: #ffffff !important;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none !important;
}

.tt-btn-slide:hover {
    background-color: #4a4a4a;
}
