.herramienta-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.herramienta-header {
    text-align: center;
    margin-bottom: 40px;
}

.herramienta-header h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.herramienta-header p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

.panel-herramienta {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 14px;
}

/* Input de Enlace */
.input-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.input-url {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    color: #f1f5f9;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-url:focus {
    border-color: #ef4444; /* Rojo YT */
}

.btn-buscar-yt {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-buscar-yt:hover:not(:disabled) {
    background: #dc2626;
}

/* Contenedor de Resultados del Video */
.resultado-youtube {
    margin-top: 25px;
    border-top: 1px solid #334155;
    padding-top: 25px;
    display: none;
}

.video-info-box {
    display: flex;
    gap: 20px;
    background: #111827;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.video-miniatura {
    width: 180px;
    height: 101px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #334155;
}

.video-detalles h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
}

.video-autor {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tabla de Descargas */
.tabla-descargas {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabla-descargas th {
    text-align: left;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.tabla-descargas td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    font-size: 0.95rem;
}

.btn-descargar-link {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-descargar-link:hover {
    background: #ef4444;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}