/* Cluster Scheduler — Public Schedule Styles */

:root {
    --cs-bg:         #ffffff;
    --cs-surface:    #f8f9fa;
    --cs-border:     #e9ecef;
    --cs-text:       #1a1a2e;
    --cs-muted:      #6c757d;
    --cs-accent:     #e63946;
    --cs-tab-active: #1a1a2e;
    --cs-radius:     8px;
}

/* ---- Schedule Grid ---- */
.cs-schedule {
    color: var(--cs-text);
    max-width: 100%;
}

/* Day tabs */
.cs-day-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--cs-border);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cs-day-tabs::-webkit-scrollbar { display: none; }

.cs-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 12px;
}
.cs-tab:hover { color: var(--cs-text); }
.cs-tab--active {
    color: var(--cs-tab-active);
    border-bottom-color: var(--cs-accent);
}

.cs-tab-short { display: none; }
@media (max-width: 600px) {
    .cs-tab-full  { display: none; }
    .cs-tab-short { display: inline; }
}

/* Panels */
.cs-panel { display: none; }
.cs-panel--active { display: block; }

.cs-empty {
    color: var(--cs-muted);
    font-style: italic;
    padding: 20px 0;
}

/* Show list */
.cs-show-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Show card */
.cs-show-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-left: 4px solid var(--show-color, #1a73e8);
    border-radius: var(--cs-radius);
    padding: 12px 16px;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.cs-show-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.cs-show--on-air {
    background: #fffef0;
    border-left-width: 5px;
    box-shadow: 0 2px 12px rgba(230,57,70,.12);
}

/* Thumbnail */
.cs-show-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.cs-show-thumb--placeholder {
    background: var(--show-color, #1a73e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

/* Show info */
.cs-show-info { flex: 1; min-width: 0; }

.cs-show-time {
    font-size: 12px;
    color: var(--cs-muted);
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.cs-show-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.cs-show-title:hover { color: var(--show-color, #1a73e8); }

.cs-show-host {
    font-size: 13px;
    color: var(--cs-muted);
}

.cs-show-genre {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--show-color, #1a73e8);
    margin-top: 3px;
}

/* On-air badge on card */
.cs-on-air-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--cs-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 3px 8px;
    border-radius: 20px;
    animation: cs-badge-pulse 2s ease-in-out infinite;
}

@keyframes cs-badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .65; }
}

/* ---- On-Air Widget ---- */
.cs-on-air-widget {
}

.cs-on-air-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-left: 4px solid var(--show-color, #e63946);
    border-radius: var(--cs-radius);
    padding: 12px 14px;
}

.cs-on-air-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cs-on-air-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cs-on-air-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--cs-accent);
    text-transform: uppercase;
}

.cs-on-air-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cs-on-air-title:hover { color: var(--show-color); }

.cs-on-air-host {
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-on-air-times {
    font-size: 11px;
    color: var(--cs-muted);
}

.cs-on-air-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cs-muted);
    font-size: 13px;
    padding: 10px 0;
}

/* Live dot indicator */
.cs-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cs-dot--live {
    background: var(--cs-accent);
    animation: cs-dot-live 1.5s ease-in-out infinite;
}
.cs-dot--idle { background: var(--cs-muted); }

@keyframes cs-dot-live {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.3); opacity: .6; }
}
