.container-fluid {
    padding: 20px;
}

.channels-container {
    height: 90vh;
    overflow-y: auto;
    margin-left: 1em 
}

.channel-item {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.channel-item:hover {
    background-color: #f8f9fa;
}

.logo {
    max-width: 100px;
}

.channel-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.player-container {
    height: 90vh;
}

#video {
    width: 100%;
    max-height: 80vh;
}

#initial-message {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

/* Responsive sidebar styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        z-index: 1000;
        background-color: #fff;
        transition: left 0.3s ease-in-out;
        padding: 1rem;
        overflow-y: auto;
    }

    .sidebar.show {
        left: 0;
    }

    .channels-container {
        height: calc(100vh - 150px);
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.show {
        display: block;
    }
}

/* Dark mode styles */
.dark-mode {
    background-color: #121212 !important;
    color: #c6c6c6;
}

.dark-mode .channel-item {
    color: #c6c6c6;
}

.dark-mode .channel-item:hover {
    background-color: #1f1f1f;
}

.dark-mode .accordion-button {
    background-color: #1f1f1f;
    color: #c6c6c6;
}

.dark-mode .accordion-body {
    background-color: #121212;
}


.dark-mode #initial-message {
    background-color: #1f1f1f;
}

.dark-mode .btn {
    background-color: #1f1f1f;
    color: #c6c6c6;
    border-color: #c6c6c6;
}

.dark-mode .selec {
    background-color: #1f1f1f;
    color: #c6c6c6;
    border-color: #c6c6c6;
}

.selec {
    background-color: #fff;
}

.dark-mode .form-control {
    background-color: #1f1f1f;
    color: #c6c6c6;
    border-color: #c6c6c6;
}

.dark-mode .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #c6c6c6;
}

.dark-mode .btn-primary:hover {
    background-color: #b02a37;
    border-color: #b02a37;
}

.dark-mode .dark-text-muted {
    color: #c6c6c6 !important;
}

.dark-mode .sidebar {
    background-color: #121212;
}

.dark-mode .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c6c6c6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.dark-mode .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c6c6c6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.dark-mode .accordion-button:focus {
    border-color: #1f1f1f;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.channel-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.program-info {
    display: flex;
    flex-direction: column;
}

.program-info small {
    color: #666;
    font-size: 0.8em;
    line-height: 1.2;
}

.dark-mode .program-info small {
    color: #aaa;
}

#iframe-container {
    display: none;
    width: 500px;
    height: 360px;
}
iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 5px;
}

input#testInput::placeholder {
    color: rgba(154, 148, 148, 0.75) !important;
  }
textarea#urlInput::placeholder {
    color: rgba(154, 148, 148, 0.75) !important;
  }
textarea#urlInputPelis::placeholder {
    color: rgba(154, 148, 148, 0.75) !important;
  }
input#searchInput::placeholder {
    color: rgba(154, 148, 148, 0.75) !important;
  }
        /* Estilos para la ventana emergente */
        #popup-window {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: none;
            z-index: 1050;
            background-color: rgba(0, 0, 0, 0.8);
            padding: 20px;
            border-radius: 10px;
            width: 80%;
            max-width: 800px;
            min-width: 300px;
            touch-action: none;
            user-select: none;
        }

        #popup-window.dragging {
            transition: none;
            transform: none;
        }

        #popup-window iframe {
            width: 100%;
            height: 400px;
            border: none;
            border-radius: 10px;
        }

        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 1049;
        }

        /* Estilos para el encabezado de la ventana */
        #popup-header {
            cursor: move;
            background-color: #1a1a1a;
            color: white;
            padding: 15px;
            text-align: center;
            border-radius: 10px 10px 0 0;
            font-weight: bold;
            position: relative;
        }

        /* Botón de cerrar mejorado */
        #close-popup {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.3s;
        }

        #close-popup:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* Botón flotante de agenda deportiva */
        #btn_agenda {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1048;
            background-color: #2196F3;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 15px 25px;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #btn_agenda:hover {
            background-color: #1976D2;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }

        #btn_agenda i {
            font-size: 1.2em;
        }

        @media (max-width: 768px) {
            #btn_agenda {
                padding: 12px 20px;
                font-size: 0.9em;
                bottom: 20px;
                right: 20px;
            }

            #popup-window {
                width: 95%;
                padding: 15px;
            }
        }
