* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #052F4A 0%, #084868 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-bottom: 20px;
}

/* Video Section */
.video-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    display: block;
}

#iframePlayer {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 10px;
    pointer-events: none;
}

.loading-message.hidden {
    display: none;
}

.current-channel {
    margin-top: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    text-align: center;
}

#currentChannelName {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

/* Channels Section */
.channels-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.channels-section h2 {
    color: #052F4A;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid #052F4A;
    padding-bottom: 10px;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    padding: 15px;
    background: #052F4A;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.channel-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(5, 47, 74, 0.5);
}

.channel-item.active {
    background: #084868;
    border-color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(5, 47, 74, 0.5);
}

.channel-name {
    font-size: 1.1em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.channel-quality {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 20px;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.disclaimer p {
    margin: 8px 0;
    line-height: 1.5;
}

.disclaimer-text {
    font-size: 0.8em;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.7);
}

.removal-notice {
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: 500;
    color: white;
    margin-top: 12px !important;
}

.disclaimer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.disclaimer a:hover {
    border-bottom: 1px solid white;
}

.copyright {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75em !important;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .channels-section {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .video-section,
    .channels-section {
        padding: 15px;
    }
}

/* Custom Scrollbar */
.channels-section::-webkit-scrollbar {
    width: 8px;
}

.channels-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.channels-section::-webkit-scrollbar-thumb {
    background: #052F4A;
    border-radius: 10px;
}

.channels-section::-webkit-scrollbar-thumb:hover {
    background: #084868;
}
