:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff007a;
    --gradient-bg: linear-gradient(135deg, #00d4ff, #ff007a);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styling */
.page-header {
    margin: 20px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(255, 0, 122, 0.6);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 30px rgba(255, 0, 122, 0.8);
    }
}

/* Player Container */
#player-container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    background: #1a1a1a;
    padding: 10px;
    position: relative;
}

video {
    width: 100%;
    border-radius: 10px;
    background: #000;
}

/* Channel Categories */
.channel-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.channel-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
}

/* Channel Grid */
.channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 10px;
    background: #151515;
    border-radius: 10px;
}

.channel {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 120px;
}

.channel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.channel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.channel:active {
    transform: scale(0.95);
}

.channel::after {
    content: attr(data-alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel:hover::after {
    opacity: 1;
}

/* Footer */
footer.main {
    margin-top: 40px;
    padding: 20px;
    background: #111;
    color: #ccc;
    text-align: center;
    font-size: 0.9rem;
}

footer.main a {
    color: var(--primary-color);
    text-decoration: none;
}

footer.main a:hover {
    text-decoration: underline;
}

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

    .channel-section h2 {
        font-size: 1.5rem;
    }

    .channels {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .channel {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .channel-section h2 {
        font-size: 1.2rem;
    }

    .channels {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .channel {
        height: 80px;
    }
}