body {
    font-family: 'Orbitron', sans-serif;
    background: #0d0d0d;
    color: #fff;
    overflow: hidden;
}

.main-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.player-container {
    width: 70%;
    background: #000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: none;
    box-shadow: 0 0 25px #0ff8;
}

.zapping-btn {
    margin-top: 15px;
    background: #0ff;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 0 10px #0ff7;
}

.panel-derecho {
    width: 30%;
    background: #111;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.grilla-canales {
    /* height: calc(100% - 80px); */
    height: calc(100% - 30px);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    perspective: 1000px;
}

.grilla-canales img{
    filter: drop-shadow(0 0 .5px white);
}

.grilla-canales::-webkit-scrollbar {
    width: 8px;
}

.grilla-canales::-webkit-scrollbar-thumb {
    background-color: #0ff;
    border-radius: 10px;
}

.canal-card {
    background: #222;
    margin: 20px 0;
    border-radius: 15px;
    scroll-snap-align: center;
    transform: rotateX(10deg);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px #0ff3;
    cursor: pointer;
}

.canal-card:hover {
    box-shadow: 0 0 25px #0ff9;
}

.botones-flotantes {
    display: flex;
    flex-direction: row;
    justify-self: end;
    /* margin: 5px; */
    gap: 15px;
    z-index: 10;
}

.botones-flotantes button {
    background: #0ff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 35px;
    font-size: 18px;
    color: #000;
    box-shadow: 0 0 10px #0ff;
    transition: transform 0.2s;
}

.botones-flotantes button:hover {
    transform: scale(1.1);
}

#chatbro-frame {
    display: none;
    height: 90%;
    width: 100%;
    border: none;
    border-radius: 15px;
}

.modo-chat .grilla-canales {
    display: none;
}

.modo-chat #chatbro-frame {
    display: block;
    height: 90%;
}

.modo-oscuro {
    background: #f4f4f4 !important;
    color: #111 !important;
}

#panelOpciones {
    scrollbar-width: thin;
    scrollbar-color: #0ff #111;
}

#panelOpciones {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}


#panelOpciones::-webkit-scrollbar {
    width: 8px;
}

#panelOpciones::-webkit-scrollbar-thumb {
    background-color: #0ff;
    border-radius: 10px;
}

#botonesCategorias::-webkit-scrollbar {
    width: 8px;
}

#botonesCategorias::-webkit-scrollbar-thumb {
    background-color: #0ff;
    border-radius: 10px;
}


#botonesCategorias {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 8px;
    /* espacio para scroll */
}

.categoria-fila:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.categoria-fila img {
    flex-shrink: 0;
}

.categoria-fila div small {
    font-style: italic;
}

#buscador::placeholder {
    color: #fff !important;
    opacity: 1;
}

.form-check-input {
    width: 2.5em;
    height: 1.4em;
    background-color: #222;
    border-color: #00ffe1;
}

.form-check-input:checked {
    background-color: #00ffe1;
    border-color: #00ffe1;
}

.form-check-label {
    margin-left: 0.5em;
    font-size: 1.1rem;
}

.form-check {
    padding-left: 0;
}

/* Notificacion ----------------------------------*/
#notification-container {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 9999;
    width: 350px;
}

.notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    padding: 15px;
    border-radius: 12px;
    color: white;
    width: 100%;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    background-color: black;
}

.notification .message {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.notification .close-btn {
    margin-top: 10px;
    padding: 5px 15px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: white;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Colores de las notificaciones */
.notification.red {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.8), rgba(255, 94, 77, 0.8));
}

.notification.yellow {
    background: linear-gradient(45deg, rgba(255, 191, 0, 0.8), rgba(255, 230, 0, 0.8));
}

.notification.green {
    background: linear-gradient(45deg, rgba(0, 255, 125, 0.8), rgba(0, 255, 85, 0.8));
}

/* Animación para el slide-in */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos del mensaje para la notificación verde */
.notification.green .message {
    font-size: 14px;
    text-align: left;
}

.notification.green .message strong {
    color: #ffcc00;
}


/* ----------------------------------------------- */
/* .main-layout {
    display: flex;
    height: 100vh;
    transition: all 0.3s ease;
}

.player-container {
    flex: 9.5;
    display: flex;
    flex-direction: column;
    transition: flex 0.3s ease;
    overflow: hidden;
    background-color: black;
}

.panel-derecho {
    flex: 0.5;
    transition: flex 0.3s ease;
    overflow-y: auto;
    background-color: #111;
}

.panel-derecho:hover {
    flex: 3 !important;
}

.panel-derecho:hover~.player-container {
    flex: 7 !important;
}

.player-container iframe {
    flex: 1;
    border: none;
    width: 100%;
} */

/* ----------------------------------------------- */



/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #notification-container {
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
    }

    .notification {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Notificacion ----------------------------------*/

@media (max-width: 576px) {
    #panelOpciones p {
        font-size: 0.9em;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .player-container,
    .panel-derecho {
        width: 100%;
        height: 50vh;
    }

    /* .grilla-canales { */
    /* height: calc(50vh - 80px); */
    /* ajustá según altura de botones */
    /* } */

    #chatbro-frame,
    #botonesCategorias,
    .grilla-canales {
        height: 70%;
    }

    #panelOpciones {
        height: 50%;
    }
}