body {
    display: flex;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Estilo del reproductor */
#player {
    width: 75%;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 10px;
}

#videoPlayer {
    width: 100%;
    height: 90vh;
}

/* Estilo del listado de canales */
#channelList {
    width: 25%;
    background: rgba(50, 50, 50, 0.9);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 10px;
    overflow-y: auto;
}

/* Estilos de la lista de canales */
ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

li {
    padding: 10px;
    margin: 5px 0;
    background: #333;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
    font-size: 16px;
}

li:hover {
    background: #555;
    transform: scale(1.05);
}

li.active {
    background: #ff9800;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
}

/* Controles del reproductor */
.controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Añadir sombreado */
}

.controls button:hover {
    background: #e68900;
    transform: scale(1.05);
}

/* Animación de selección del canal */
@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 1); }
    100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
}

li.active {
    animation: pulse 1s infinite;
}

/* Estilos para el botón de soporte y el buscador */
#channelList button, #searchBox {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border: none;
    outline: none;
    background: #222;
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Estilos para móviles */
.mobile-menu-icon {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Ocultar en pantallas grandes */
    z-index: 1000;
}

@media (max-width: 768px) {
    #player {
        width: 100%;
        height: 40vh; /* Reducir la altura del reproductor */
        top: 0; /* Asegurar que el reproductor esté en la parte superior */
    }

    #videoPlayer {
        height: 100%; /* El video ocupa toda la altura del reproductor */
    }

    .controls {
        position: fixed;
        bottom: auto; /* Cambiar a auto para ajustar la posición */
        top: 40vh; /* Colocar justo debajo del reproductor */
        width: 100%;
        left: 0;
        justify-content: center;
        background: rgba(0, 0, 0, 0.8); /* Fondo para los botones */
        padding: 10px; /* Añadir relleno para separar los botones del borde */
        box-sizing: border-box; /* Asegurar que el relleno no afecte el ancho total */
    }

    .controls button {
        margin: 5px; /* Añadir margen entre los botones */
        padding: 8px 12px; /* Reducir el relleno para hacer los botones más pequeños */
        border-radius: 20px; /* Hacer los bordes más redondeados */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Añadir un ligero sombreado */
        font-size: 12px; /* Reducir el tamaño de la fuente */
    }

    .controls button:hover {
        transform: scale(1.05); /* Añadir un efecto hover sutil */
    }

    #channelList {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        transform: translateX(100%); /* Ocultar fuera de la pantalla */
        transition: transform 0.3s ease-in-out;
    }

    #channelList.show-menu {
        transform: translateX(0); /* Mostrar el menú */
    }

    .desktop-list {
        display: none;
    }

    .mobile-menu-icon {
        display: block; /* Mostrar en móviles */
    }
}