* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0099ff;
    color: white;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}



.overlay-gradient {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 120px;
    height: auto;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.channel-card {
    background: linear-gradient(to bottom, #ffffff, #cccccc);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px;
    position: relative;
}

.channel-card:hover, .channel-card:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    outline: 3px solid #04006C;
}

.channel-logo {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-name {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    color: white;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Optimizaciones para TV */
@media (min-width: 1280px) {
    body {
        font-size: 18px;
    }
    
    .channel-card:focus {
        transform: scale(1.1);
        outline: 5px solid #04006C;
    }
}

/* Navegación con teclado para TV */
.channel-card:focus-visible {
    outline: 5px solid #04006C;
    transform: scale(1.1);
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-card {
        height: 180px;
    }
}