/* ===============================
   ESTILO GENERAL
================================ */
body {
    background: #0d0d0d;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* ===============================
   HEADER
================================ */
header {
    text-align: center;
    padding: 30px 15px;
    background: #101820;
    border-bottom: 3px solid #00AEEF;
}

.logo {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 5px;
    display: inline-block;
}

.vivo {
    color: #00AEEF;
}

.sports {
    color: #00FF88;
}

.subtitulo {
    margin: 0;
    font-size: 16px;
    color: #ccc;
}

header p {
    font-size: 15px;
    color: #ccc;
}

/* ===============================
   GRID GENERAL
================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* FIX REAL */
    gap: 16px;
    padding: 15px;
}

/* ===============================
   TARJETAS EVENTOS
================================ */
.card {
    background: #1b1b1b;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px #0007;
    transition: 0.25s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #00AEEF;
}

.card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
}

.titulo {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.detalles {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 12px;
}

.btn {
    display: block;
    background: #00AEEF;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s;
}

.btn:hover {
    background: #008FC4;
}

/* ===============================
   PLAYER IFRAME
================================ */
.player-box {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: #111;
    padding: 10px;
    border-radius: 10px;
}

iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}

/* ===============================
   TARJETAS DE CANALES 
   (icono - texto - play)
================================ */
.canal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #181818;
    padding: 12px 15px;
    width: 95%;
    max-width: 800px;
    margin: 10px auto;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.canal-card:hover {
    background: #222;
}

.canal-izq {
    display: flex;
    align-items: center;
    gap: 14px;
}

.canal-icono {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.canal-nombre {
    font-size: 17px;
    color: #fff;
    font-weight: bold;
}

.canal-play {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ===============================
   RESPONSIVE PARA MÓVIL
================================ */
/* ======== MOBILE ULTRA COMPACTO ======== */
@media (max-width: 768px) {

    .card {
        padding: 10px;
        border-radius: 10px;
    }

    .card img {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .titulo {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 4px;

        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;   /* MAX 2 LÍNEAS */
        -webkit-box-orient: vertical;
    }

    .detalles {
        font-size: 12px;
        margin-bottom: 10px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn {
        padding: 8px;
        font-size: 13px;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {

    /* Encabezado más pequeño en móvil */
    .logo {
        font-size: 26px !important;
        letter-spacing: 1px !important;
    }

    .subtitulo {
        font-size: 13px !important;
    }

    header {
        padding: 15px 5px !important;
    }
}
