/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Contenedor principal */
.container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  /*   min-height: calc(100vh - 40px); Asegura que el contenedor ocupe al menos la altura disponible */
    display: flex;
    flex-direction: column;
}

/* Encabezado */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.youtube-icon {
    color: #ff0000;
    font-size: 2.5rem;
    margin-right: 10px;
}

h1 {
    color: #333;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Pie de página */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: auto;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #cc0000;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.status-message {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.timer {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 8px;
    display: inline-block;
    min-width: 100px;
}

.loading {
    color: #2196F3;
    padding: 15px;
    font-weight: 500;
}

.video-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.video-thumbnail {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.video-info h3 {
    color: #333;
    margin: 15px 0;
    font-size: 1.2em;
    word-break: break-word;
}

.download-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #cc0000;
}

.error {
    color: #d32f2f;
    background-color: #fde7e7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
}
