.ytd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ytd-container h2 {
    color: #ff0000;
    text-align: center;
    margin-bottom: 20px;
}

.ytd-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#ytd-video-url {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ytd-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.ytd-button:hover {
    background: #cc0000;
}

.ytd-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ytd-result {
    display: none;
    margin-top: 20px;
}

.ytd-loading {
    text-align: center;
    padding: 20px;
}

.ytd-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}

.ytd-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ytd-thumbnail-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.ytd-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.ytd-thumbnail-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ytd-download-btn {
    background: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.ytd-download-btn:hover {
    background: #388E3C;
}

@media (max-width: 600px) {
    .ytd-form {
        flex-direction: column;
    }
    
    .ytd-thumbnail-grid {
        grid-template-columns: 1fr;
    }
}
.ytd-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ytd-error i {
    font-size: 20px;
}

.ytd-error-message {
    flex: 1;
}