/* Basic styling for the series schedule */
.tr-series-schedule-wrapper {
    margin-bottom: 20px;
    color: #f0f0f0; /* Color de texto general para armonizar con el fondo oscuro */
}

.tr-series-schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333; /* Borde más oscuro */
}

.tr-schedule-tab {
    padding: 10px 15px;
    text-decoration: none;
    color: #bbb; /* Color de texto para pestañas inactivas */
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    flex-grow: 1;
    text-align: center;
    background-color: #1a1a1a; /* Fondo muy oscuro para las pestañas */
}

.tr-schedule-tab:hover {
    color: #fff; /* Color de texto al pasar el ratón */
    border-color: #e50914; /* Color de acento tipo Netflix */
}

.tr-schedule-tab.active {
    color: #fff; /* Color de texto para pestaña activa */
    border-color: #e50914; /* Color de acento tipo Netflix */
    background-color: #0d0d0d; /* Fondo aún más oscuro para la pestaña activa */
}

.tr-series-schedule-content {
    background-color: #0d0d0d; /* Fondo muy oscuro para el contenido */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Sombra más pronunciada */
}

.tr-series-schedule-day {
    /* Eliminamos flex y el ancho fijo para que el contenedor ocupe el 100% y se adapte al diseño general */
    border: 1px solid #333; /* Borde más oscuro */
    padding: 15px;
    border-radius: 5px;
    background-color: #1a1a1a; /* Fondo oscuro para el día, para que destaque un poco del fondo general de la página */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.tr-series-schedule-day h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #fff; /* Título del día en blanco */
}

.tr-series-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tr-series-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Texto blanco por defecto */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    padding: 15px;
    /* Eliminamos el borde inferior blanco y el background-color directo */
    border: 1px solid #333; /* Borde sutil para separar items */
}

.tr-series-item:last-child {
    margin-bottom: 0;
    border-bottom: none; /* Asegura que el último item no tenga este borde extra */
    padding-bottom: 0;
}

/* Optional: Add a subtle overlay for better text readability */
.tr-series-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7); /* Overlay más oscuro para asegurar legibilidad */
    z-index: 1;
}

.tr-series-item > * {
    position: relative;
    z-index: 2;
}

.tr-series-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    width: 100%;
}

.tr-series-image {
    display: none;
}

.tr-series-title {
    margin-left: 0;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
}

.tr-last-episode {
    font-size: 0.95em;
    color: #ddd;
    margin-left: 0;
    text-align: center;
    width: 100%;
}

.tr-last-episode a {
    color: #b80d19;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tr-series-schedule-tabs {
        flex-direction: column;
    }
    .tr-schedule-tab {
        border-bottom: 1px solid #333;
    }
}

@media (max-width: 480px) {
    .tr-series-schedule-day {
        flex: 1 1 100%;
    }
    .tr-series-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 120px;
    }
}