

.parrilla {
  padding: 15px 15px;
  padding-bottom: 30px;
  width: 100%;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 7px 14px, rgba(0, 0, 0, 0.12) 0px 5px 5px;
  border-radius: 25px;
  background-color: #0d1d29;
  margin-bottom: 10px;
}

.bloque-live {
    display: flex;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bloque-live img {
    width: 140px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.live-info {
    padding: 20px;
    flex: 1;
}

.live-badge {
    background: red;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    animation: livepulse 1.5s infinite;
}

@keyframes livepulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.progress-tv {
    height: 6px;
    background: #333;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: red;
    width: 0%;
    transition: width 0.3s;
}

.tabs-dias {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tabs-dias button {
    padding: 6px 12px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tabs-dias button.active {
    background: red;
}
@media (max-width: 600px) {
    .tabs-dias button {
        width: 45px;              /* fuerza que el botón sea estrecho */
        word-break: break-all;    /* rompe las palabras donde sea necesario */
        white-space: normal;      /* permite saltos de línea */
        text-align: center;       /* centra el texto dentro del botón */
    }
}
.timeline-dia {
    display: flex;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;        /* Permite scroll horizontal */
    gap: 8px;
    scrollbar-width: thin;   /* Firefox: scrollbar más delgada */
    scrollbar-color: #444 #111; /* Color del scrollbar */
}

/* Scrollbar para Chrome/Edge/Safari */
.timeline-dia::-webkit-scrollbar {
    height: 8px;             /* Alto del scrollbar */
}
.timeline-dia::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}
.timeline-dia::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
.timeline-dia::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Mantener programas fijos en tamaño para el scroll */
.programa {
    flex: 0 0 140px;  /* No crece ni se encoje, ancho fijo */
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
    height: 200px;
}


/* Agrega un borde rojo a los programas en vivo */
.programa-live {
    border: 2px solid red;
}

/* Pseudoelemento ::before para mostrar el "🔴 LIVE" */
.programa-live::before {
    content: "🔴 LIVE";
    position: absolute;
    top: 5px;
    left: 5px;
    background: red;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 10; /* Asegura que el pseudoelemento se muestre por encima */
}

.programa img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #111;
    padding: 5px;
}

.titulo {
    padding: 5px;
    text-align: center;
}

.titulo strong {
    display: block;
}

.titulo .horas {
    font-size: 11px;
    color: #ccc;
    margin-top: 2px;
}
