/* General styling */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #333;
}

header h1 {
    margin: 0;
    color: #fff;
}

#channel-container {
    padding: 20px;
    text-align: center;
}

/* Channel grid styling */
#channel-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    justify-content: center;
}

#channel-list li {
    padding: 10px;
    background-color: #222;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

#channel-list li:hover {
    background-color: #444;
    transform: scale(1.05);
}

#channel-list img {
    height: 60px;
    width: 80px;
    display: block;
    margin: 0 auto 5px;
    border-radius: 5px;
}

#channel-list a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: block;
}

#channel-list a:hover {
    color: #007bff;
}
.streaming-player-container {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the player */
    background-color: #000;
    z-index: 1000;
    border: 2px solid #fff;
    padding: 10px;
    width: 80%;  /* Set width relative to the screen */
    max-width: 600px; /* Limit maximum width */
    height: auto;
    max-height: 80vh; /* Prevent excessive height */
}

/* Close button (top-right) */
#close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 2px 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 1px;
    z-index: 1001;
}

#close-btn:hover {
    background-color: darkred;
}


/* Ensure the iframe is properly sized */
#streaming-video {
    width: 100%;
    height: 90%;
    border: none;
}
