/* Style v0.13 - Cyberpunk Streaming Balanced */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;700&display=swap');

:root {
    --main: #00f0ff;
    --secondary: #ff00cc;
    --bg: #0b0014;

    --dark-green: #0a3a40;
    --light-green: #00f0ff;

    --white: #ffffff;
    --black: #050505;
    --grey: #9be7ff;

    --dark-red: #9c005f;
    --light-red: #ff4dcf;

    --font: 'Poppins', sans-serif, Arial;
    --border-radius: 15px;
}

/* Base */

body {
    margin: 0;
    color: var(--main);
    background: radial-gradient(circle at top, #140021, #000000);
    font-family: var(--font);
}

a {
    color: var(--grey);
    border-bottom: 2px var(--grey) solid;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--white);
    border-bottom: 2px var(--secondary) solid;
}

/* Utilidades */

.sombra {
    box-shadow:
        0 0 8px #00000055,
        0 0 20px #00000044;
}

.d-none { display: none !important; }
.h-100 { height: 100% !important; }
.hide { pointer-events: none; opacity: 0; }

.wrapper-all {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    gap: 0.8rem;
}

/* Header */

.header-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem 1rem 0 1rem;
}

.img-teles {
    padding: 0;
    margin: 0;
}

/* GRID PRINCIPAL — MÁS DOMINANTE PARA EL VIDEO */

.main-grid {
    display: grid;
    grid-template-columns: minmax(360px, 9fr) minmax(220px, 1fr);
    width: 100%;
    height: 100%;
    gap: 1rem;
    padding: .4rem 1rem 0 1rem;
}

/* VIDEO */

.container-video {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary);
    box-shadow:
        0 0 12px #ff00cc66,
        0 0 25px #00f0ff33;
    overflow: hidden;
}

/* Mantenemos tu sistema absoluto ORIGINAL */

.container-overlay,
.container-transmision,
.container-video iframe,
.container-video video,
.m3u8-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container-transmision {
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.container-overlay {
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
}

/* ASIDE */

.container-botones-canales {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    border: 1px solid var(--main);
    border-radius: var(--border-radius);
    height: 100%;
    width: 100%;
    box-shadow:
        0 0 10px #00f0ff55,
        0 0 20px #ff00cc22;
    overflow-y: auto;
}

/* Lista botones */

.lista-botones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .8rem;
    width: 100%;
}

/* Botones */

.boton {
    padding: .6em;
    font-weight: bold;
    border-radius: var(--border-radius);
    border: 1px solid var(--main);
    background: #0a0a0a;
    color: var(--main);
    transition: 0.3s;
    cursor: pointer;
}

.boton:hover {
    background: var(--main);
    color: #000;
    box-shadow:
        0 0 8px var(--main),
        0 0 18px #00f0ff66;
}

.boton-canal {
    font-weight: 400;
    text-align: left;
}

.boton-activo {
    background-color: var(--light-green);
    color: #000;
}

/* Overlay nombre canal */

.overlay {
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

.overlay #nombre-overlay {
    color: var(--grey);
    background: linear-gradient(180deg, #0b0014 30%, transparent 100%);
    padding: 6px 10px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Footer */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: .2rem 1rem;
    background: var(--black);
    border-top: 1px solid var(--secondary);
    width: 100%;
}

/* Responsive */

@media only screen and (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr;
        height: auto;
    }

    .container-botones-canales {
        height: 300px;
    }
}