/* Wrapper to align tabs + content */
.bcd-schedule-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tabs */
#bcd-schedule-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.bcd-tab-button {
    flex: 1 1 auto;
    background-color: #00031b;
    color: #ffffff;
    border: 1px solid #AC8400;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    min-width: 120px;
}

.bcd-tab-button small {
    display: block;
    font-size: 0.8em;
    color: #AC8400;
    margin-top: 2px;
    transition: color 0.2s;
}

.bcd-tab-button:hover {
    background-color: #00031b;
    border-color: #ffffff;
    color: #ffffff;
}

.bcd-tab-button:hover small {
    color: #ffffff;
}

.bcd-tab-button.active {
    background-color: #AC8400;
    border-color: #ffffff;
    color: #ffffff;
}

.bcd-tab-button.active small {
    color: #ffffff;
}

/* Schedule container */
#bcd-schedule-content {
    padding: 10px;
    border: 1px solid #AC8400;
    border-radius: 5px;
    background: #00031b;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #FFFFFF #00031b;
}

#bcd-schedule-content::-webkit-scrollbar {
    width: 10px;
}

#bcd-schedule-content::-webkit-scrollbar-track {
    background: #00031b;
}

#bcd-schedule-content::-webkit-scrollbar-thumb {
    background-color: #FFFFFF;
    border-radius: 5px;
    border: 2px solid #00031b;
}

#bcd-schedule-content::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-color: #AC8400;
    height: 10px;
}

#bcd-schedule-content::-webkit-scrollbar-button:single-button:vertical:increment {
    background-color: #AC8400;
    height: 10px;
}

/* Each item */
.bcd-schedule-item {
    border-bottom: 1px solid #AC8400;
    padding: 10px 0;
}

/* Header row */
.bcd-schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bcd-schedule-time {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcd-schedule-title {
    flex: 1;
    font-size: 1.05rem;
    color: #AC8400;
}

/* Chevron toggle */
.bcd-toggle-details {
    font-size: 1.2em;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.bcd-toggle-details:hover {
    color: #ffffff;
}

.bcd-toggle-details i {
    pointer-events: none;
    color: #ffffff;
}

/* Expanded section */
.bcd-schedule-details {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 3px solid #AC8400;
    animation: fadeIn 0.2s ease-in-out;
    display: none;
}

.bcd-schedule-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Thumbnail */
.bcd-schedule-thumb-wrap {
    flex: 1 1 200px;
    max-width: 200px;
}

.bcd-schedule-thumb {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Description */
.bcd-schedule-description {
    flex: 2 1 300px;
    color: #ffffff;
    font-size: 0.95em;
}

/* No results */
.bcd-no-schedule {
    color: #AC8400;
    font-style: italic;
    padding: 10px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .bcd-schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bcd-schedule-grid {
        flex-direction: column;
    }

    .bcd-schedule-thumb-wrap {
        flex: 0 0 80px;
        max-width: 80px;
    }

    .bcd-schedule-thumb {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .bcd-schedule-description {
        flex: 1 1 auto;
        max-width: 100%;
        font-size: 0.9em;
        line-height: 1.4;
    }

    .bcd-schedule-time,
    .bcd-schedule-title {
        font-size: 0.95rem;
    }

    .bcd-tab-button {
        font-size: 0.9rem;
        padding: 8px 10px;
        min-width: 90px;
    }

    .bcd-tab-button small {
        font-size: 0.75em;
    }
}

.bcd-schedule-item.now-playing {
    border: 2px solid #AC8400;
    background-color: #00031b;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #ac840080;
}

.bcd-schedule-item.now-playing .bcd-schedule-title {
    color: #AC8400;
    font-weight: bold;
    font-size: 1.2em;
}

.bcd-schedule-item.now-playing .bcd-schedule-time {
    color: #ffffff;
}

.bcd-schedule-item.now-playing .bcd-schedule-header {
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 5px;
}

.bcd-schedule-item.now-playing:hover {
    box-shadow: 0 0 20px #ac8400;
    transition: box-shadow 0.3s ease;
}
