/* Estilos para el reproductor de TV */
.tv-player-container {
    padding: 30px;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tv-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}


.tv-player-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    margin: 0 auto;
    z-index: 2;
}

/* Contenedor del video con relación de aspecto 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (height/width = 9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

.video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.title-tv {
    background-color: #8d0972;
    color: white;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}
.tv-player-info {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.tv-player-info h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.phone-number {
    background-color: #8d0972;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.description-marquee {
    background-color: #8d0972;
    color: white;
    padding: 10px 0;
    border-radius: 5px;
    overflow: hidden;
    font-size: 1.1em;
    font-weight: 500;
}

.description-marquee marquee {
    padding: 0 10px;
}

/* Estilos para el número de canal */
.title-tv {
    position: relative;
    padding-left: 40px; /* Espacio para el número */
}

.channel-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #8d0972;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Estilos generales para eliminar el scroll */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    -webkit-overflow-scrolling: touch;
}

/* Asegurar que el contenido principal no cause scroll */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Estilos para el contenedor principal del reproductor de TV */
.tv-player-container {
    width: 100%;
    min-height: 100vh;
    background: #000 url('../img/fondo.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.tv-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.tv-player-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    margin: 0 auto;
    z-index: 2;
}

/* Contenedor del video con relación de aspecto 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (height/width = 9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

/* Asegurarse de que el video ocupe todo el espacio del contenedor */
#tv-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilos para el título del reproductor */
.title-tv {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección de información */
.tv-player-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-player-info h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tv-player-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    color: #e0e0e0;
}

/* Efecto hover para la sección de información */
.tv-player-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
/* Media queries para ajustes responsivos */
@media (max-width: 1280px) {
    .tv-player-wrapper {
        max-width: 90%;
    }
}


@media (max-width: 1000px) {
    .tv-player-container {
        padding: 10px;
        height: auto;
        min-height: -webkit-fill-available; /* Para Safari en iOS */
    }

}


.video-js .vjs-tech{
    border: solid #ffffff 4px;
}


@media (max-width: 768px) {
    .tv-player-wrapper {
        max-width: 95%;
        height: auto;
        display: block;
        padding: 1rem 0;
    }
    
    .title-tv {
        font-size: 1.8rem;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .tv-player-info {
        padding: 1rem;
        margin-top: 1.2rem;
    }
    
    .tv-player-info h2 {
        font-size: 1.5rem;
    }
    
    .tv-player-info p {
        font-size: 0.9rem;
    }
    
    .tv-player-container {
        padding: 10px;
        height: auto;
        min-height: -webkit-fill-available; /* Para Safari en iOS */
    }
    
    .video-container {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
    }
    
    /* Asegurar que el video no se salga de la pantalla en móviles */
    @supports (-webkit-touch-callout: none) {
        .tv-player-container {
            min-height: -webkit-fill-available;
        }
    }
}

@media (max-width: 480px) {
    .tv-player-wrapper {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .title-tv {
        font-size: 1.5rem;
        padding: 0.6rem;
        margin: 0.5rem 0 1rem 0;
    }
    
    .tv-player-info {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .tv-player-info h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .tv-player-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
