/* CSS Updates */
.tv-schedule-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tv-schedule-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Day Filters */
.tv-schedule-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.tv-day-filter {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tv-day-filter:hover {
    background: #f5f5f5;
    border-color: #999;
}

.tv-day-filter.active {
    background: linear-gradient(135deg,rgb(110,179,88) 0%,rgb(110,179,88) 21%,rgb(196,199,85) 100%);
    color: #fff;
    border-color: none;
}

/* Programs Grid */
.tv-schedule-programs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .tv-schedule-programs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tv-schedule-programs {
        grid-template-columns: 1fr;
    }
}

/* Program Card */
.tv-program {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tv-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tv-program.on-air {
    border-color: #46b450;
    box-shadow: 0 0 15px rgba(70, 180, 80, 0.2);
}

/* Program Thumbnail */
.tv-program-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #f5f5f5;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-air-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #46b450;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

/* Program Details */
.tv-program-details {
    padding: 15px;
}

.tv-program-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.tv-program-time {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.tv-program-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* No Programs Message */
.no-programs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tv-schedule-wrapper {
        padding: 10px;
    }

    .tv-schedule-filters {
        justify-content: center;
    }

    .tv-day-filter {
        padding: 6px 12px;
        font-size: 14px;
    }

    .tv-program-details h3 {
        font-size: 16px;
    }
}

/* Loading State */
.tv-schedule-loading {
    position: relative;
    min-height: 200px;
}

.tv-schedule-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Hero Section */
.tv-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.tv-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tv-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}
.tv-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    color: #fff;
    z-index: 2;
}
.tv-hero-badge {
    display: inline-block;
    background-color: #e50914;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}
.tv-hero-title {
    font-size: 36px;
    color: #36b74a;
    font-weight: bold;
    margin: 0 0 16px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.tv-hero-time {
    font-size: 18px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.tv-hero-description {
    font-size: 16px;
    line-height: 1.5;
    max-width: 700px;
    opacity: 0.8;
	color: #fff;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .tv-hero-section {
        height: 400px;
    }
    .tv-hero-content {
        padding: 20px;
    }
    .tv-hero-title {
        font-size: 24px;
    }
    .tv-hero-time {
        font-size: 16px;
    }
    .tv-hero-description {
        font-size: 14px;
    }
}

/* Override WordPress layout constraints */
.is-layout-constrained > * {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Additional override for specific elements if needed */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
