/* General Body Styling */
body {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    animation: fadeIn 2s ease-in-out;
}

/* Fade-in Effect for Page Load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scrollable Grid Styling */
.scrollable-grid {
    max-height: 265px;
    overflow-y: auto;
    background: #1e293b;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 #1e293b;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.scrollable-grid::-webkit-scrollbar {
    width: 8px;
}

.scrollable-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #06b6d4, #1e3a8a);
    border-radius: 8px;
}

.scrollable-grid::-webkit-scrollbar-track {
    background: #1e293b;
}

/* Channel Item Styling */
.channel-item {
    background: linear-gradient(135deg, #374151, #1e293b);
    border: 2px solid transparent;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
    animation: fadeInScale 0.8s ease-in-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.channel-item:hover {
    transform: scale(1.1);
    border: 2px solid #06b6d4;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.7);
    background: linear-gradient(135deg, #06b6d4, #1e3a8a);
    color: white;
}

.channel-item:focus {
    outline: none;
    border: 2px solid #06b6d4;
}

/* Video Player Styling */
#player {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: zoomIn 1s ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#player:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.8);
}

/* Loading Indicator Styling */
#loadingIndicator {
    font-size: 1.25rem;
    font-weight: bold;
    color: #06b6d4;
    animation: blink 1.5s infinite alternate, bounce 2s infinite ease-in-out;
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Error Message */
#errorMessage {
    color: #f87171;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 5px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Header Styling */
header {
    background: linear-gradient(90deg, #06b6d4, #1e3a8a);
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Styling */
footer {
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 10px;
    font-size: 0.875rem;
    border-top: 1px solid #374151;
    animation: fadeIn 1.5s ease-in-out;
}

/* Button Styling */
button {
    background: linear-gradient(135deg, #06b6d4, #1e3a8a);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #1e3a8a, #06b6d4);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.7);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
        }
