/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 20px;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px dashed #007bff;
    outline-offset: 2px;
}

/* Video Card Styling */
.video-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.5s ease;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-card a {
    text-decoration: none;
}

.video-title {
    color: #007bff;
    margin-top: 10px;
}

.video-title:hover {
    text-decoration: underline;
}

.text-muted {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.text-muted i {
    margin-right: 5px;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Loading Spinner Styling */
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin: 20px auto;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* Responsive Styling */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .video-card {
        flex-direction: column;
    }

    .video-thumbnail {
        border-radius: 0;
    }
}
