/* Schedule Styles - Based on Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#schedule-block {
    margin-bottom: 40px;
    font-family: 'Poppins', Arial, sans-serif;
}

.block_area-schedule {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 24px;
    font-family: 'Poppins', Arial, sans-serif;
}

.block_area-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bah-heading {
    margin-bottom: 0;
}

.cat-heading {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 19px;
    font-weight: 200;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.bah-time {
    color: #999;
    font-size: 12px;
    font-weight: 200;
}

.bah-time .current-time {
    display: inline;
    color: #666;
}

.table_schedule {
    background: transparent;
    padding: 0;
}

.table_schedule-date {
    position: relative;
    margin-bottom: 20px;
    padding: 0 50px;
}

.days-scroll-container {
    overflow: hidden;
    width: 100%;
}

.days-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}

.days-wrapper::-webkit-scrollbar {
    display: none;
}

.day-item {
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.tsd-item {
    background: #262626;
    text-align: center;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 105px;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', Arial, sans-serif;
}

.tsd-item:hover {
    background: #262626;
    border-color: var(--accent);
}

.tsd-item.active {
    background: var(--accent);
    border-color: var(--accent);
}

.tsd-item span {
    display: block !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 3px;
    color: #999;
    visibility: visible !important;
    opacity: 1 !important;
}

.tsd-item.active span {
    color: #fff;
}

.tsd-item .date {
    font-size: 12px;
    color: #666;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tsd-item.active .date {
    color: #fff;
}

.ts-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 2;
    pointer-events: none;
    left: 0;
}

.ts-navigation .btn {
    pointer-events: auto;
    position: absolute;
    width: 40px !important;
    height: 40px !important;
    padding: 0;
    line-height: 40px !important;
    text-align: center;
    background: #2a2a2a !important;
    border-radius: 6px !important;
    color: #999 !important;
    border: none !important;
    font-size: 16px !important;
    outline: 0;
    box-shadow: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ts-navigation .btn:hover {
    background: #333 !important;
    color: #fff !important;
}

.ts-navigation .tsn-next {
    right: 0;
}

.ts-navigation .tsn-prev {
    left: 0;
}

.schedule-list {
    margin: 0 -24px;
    padding: 0;
}

.schedule-item {
    margin-bottom: 0;
}

.schedule-item:nth-child(odd) .tsl-link {
    background: #1c1c1c;
}

.schedule-item:nth-child(even) .tsl-link {
    background: #191919;
}

.tsl-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-radius: 0;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: none;
}

.schedule-item:last-child .tsl-link {
    border-bottom: none;
}

.tsl-link:hover {
    background: #232323 !important;
    color: #fff;
}

.tsl-link:hover .show-title {
    color: var(--accent);
}

.tsl-link:hover .episode-badge {
    background: var(--accent);
    color: #fff;
}

.tsl-link:hover .episode-badge .play-icon {
    border-left-color: #fff;
}

.schedule-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tsl-link .time {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #b8b8b8;
    min-width: 55px;
    margin-right: 18px;
    flex-shrink: 0;
}

.tsl-link .show-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #b8b8b8;
    margin: 0;
    flex: 1;
    transition: color 0.2s ease;
}

.tsl-link:hover .show-title {
    color: var(--accent);
}

.episode-badge {
    font-family: 'Poppins', Arial, sans-serif;
    background: #2a2a2a;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    outline: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.episode-badge:hover {
    background: var(--accent);
    color: #fff;
}

.episode-badge:hover .play-icon {
    border-left-color: #fff;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 5px solid #b8b8b8;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.show-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
}

.show-more-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #b8b8b8;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
}

.show-more-btn:hover {
    color: #fff;
}

.show-more-btn:after {
    content: 'Show More';
}

.show-more-btn.active:after {
    content: 'Show Less';
}

.schedule-list {
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.schedule-list.show-all {
    max-height: none !important;
    overflow: visible;
}

.no-schedule {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .table_schedule-date {
        padding: 0 40px;
    }
}

@media (max-width: 991px) {
    .block_area-schedule {
        padding: 20px;
    }
    
    .schedule-list {
        margin: 0 -20px;
    }
    
    .tsl-link {
        padding: 16px 20px;
    }
    
    .table_schedule-date {
        padding: 0 35px;
    }
    
    .tsd-item {
        min-width: 95px;
        padding: 10px 16px;
    }
    
    .tsd-item span {
        font-size: 14px;
    }
    
    .tsd-item .date {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .block_area-schedule {
        padding: 16px;
        border-radius: 6px;
    }
    
    .schedule-list {
        margin: 0 -16px;
    }
    
    .block_area-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .cat-heading {
        font-size: 17px;
        font-weight: 200;
    }
    
    .bah-time {
        font-size: 11px;
        font-weight: 200;
    }
    
    .table_schedule-date {
        padding: 0 40px;
        margin-bottom: 20px;
    }
    
    .days-wrapper {
        gap: 8px;
    }
    
    .tsd-item {
        min-width: 75px;
        padding: 10px 12px;
    }
    
    .tsd-item span {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .tsd-item .date {
        font-size: 11px;
    }
    
    .ts-navigation .btn {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 15px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
    }
    
    .ts-navigation .tsn-prev {
        left: 0;
    }
    
    .ts-navigation .tsn-next {
        right: 0;
    }
    
    /* Mobile schedule items - keep horizontal layout like desktop */
    .tsl-link {
        padding: 12px 16px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .schedule-left {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
    }
    
    .tsl-link .time {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        margin-right: 0;
        min-width: 45px;
        flex-shrink: 0;
    }
    
    .tsl-link .show-title {
        font-size: 13px;
        line-height: 1.4;
        color: #999;
        flex: 1;
    }
    
    .episode-badge {
        padding: 4px 10px;
        font-size: 11px;
        gap: 4px;
        background: #2a2a2a;
        color: #c084fc;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .play-icon {
        border-left: 4px solid #c084fc;
        border-top: 2.5px solid transparent;
        border-bottom: 2.5px solid transparent;
    }
}

@media (max-width: 576px) {
    .block_area-schedule {
        padding: 12px;
    }
    
    .schedule-list {
        margin: 0 -12px;
    }
    
    .cat-heading {
        font-size: 16px;
        font-weight: 200;
    }
    
    .bah-time {
        font-size: 11px;
        font-weight: 200;
    }
    
    .table_schedule-date {
        padding: 0 38px;
    }
    
    .days-wrapper {
        gap: 6px;
    }
    
    .tsd-item {
        min-width: 70px;
        padding: 9px 10px;
        border-radius: 6px;
    }
    
    .tsd-item span {
        font-size: 12px;
    }
    
    .tsd-item .date {
        font-size: 10px;
    }
    
    .ts-navigation .btn {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .tsl-link {
        padding: 11px 12px;
    }
    
    .schedule-left {
        gap: 10px;
    }
    
    .tsl-link .time {
        font-size: 13px;
        min-width: 42px;
    }
    
    .tsl-link .show-title {
        font-size: 12px;
    }
    
    .episode-badge {
        padding: 3px 9px;
        font-size: 10px;
    }
    
    .schedule-list {
        max-height: 420px;
    }
    
    .show-more {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .show-more-btn {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .block_area-schedule {
        padding: 10px;
    }
    
    .schedule-list {
        margin: 0 -10px;
    }
    
    .tsl-link {
        padding: 11px 10px;
    }
    
    .table_schedule-date {
        padding: 0 20px;
    }
    
    .tsd-item {
        min-width: 65px;
        padding: 7px 8px;
    }
    
    .tsd-item span {
        font-size: 11px;
    }
    
    .tsd-item .date {
        font-size: 9px;
    }
    
    .ts-navigation .btn {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 13px;
    }
    
    .tsl-link .time {
        font-size: 12px;
    }
    
    .tsl-link .show-title {
        font-size: 12px;
    }
    
    .episode-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .schedule-list {
        max-height: 250px;
    }
    
    .tsl-link {
        padding: 10px 0;
    }
}
