* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 20px;
}

.video-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#player {
    width: 100%;
    height: auto;
    min-height: 400px;
    background: #000;
}

.current-channel {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
}

.channel-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.channel-list h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    color: #ffd700;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.channel-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.channel-item.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.channel-item.active .channel-logo {
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.channel-number {
    width: 30px;
    height: 30px;
    background: #ffd700;
    color: #1e3c72;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9rem;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1rem;
}

.channel-description {
    font-size: 0.85rem;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
    color: #ffd700;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-2px);
}

.credits {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.credits h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.credits p {
    opacity: 0.9;
    margin-bottom: 5px;
}

.credits .social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.credits .social-link {
    color: #ffd700;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.credits .social-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .channel-list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .video-section,
    .channel-list {
        padding: 15px;
    }

    #player {
        min-height: 250px;
    }

    .channel-logo {
        width: 40px;
        height: 40px;
    }

    .channel-name {
        font-size: 0.9rem;
    }

    .channel-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .credits .social-links {
        flex-direction: column;
        align-items: center;
    }

    .credits .social-link {
        width: 150px;
        text-align: center;
    }
}

/* Custom Scrollbar */
.channel-list::-webkit-scrollbar {
    width: 8px;
}

.channel-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.channel-list::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

.channel-list::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}