/* ================================================
   Radio Schedule Pro – Carousel CSS v1.2
   ================================================ */

:root {
    --rsp-cyan:        #00bcd4;
    --rsp-dark-blue:   #1a3a6b;
    --rsp-card-bg:     #1a1a2e;
    --rsp-text-light:  #ffffff;
    --rsp-text-muted:  #aaaacc;
    --rsp-radius:      10px;
    --rsp-gap:         20px;
}

/* ── SECTION wrapper (sin título propio) ── */
.rsp-section {
    width: 100%;
    padding: 4px 0 32px;
    background: transparent;
    font-family: inherit;
}

/* ── CAROUSEL ── */
.rsp-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── TRACK ── */
.rsp-track {
    display: flex;
    gap: var(--rsp-gap);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    align-items: stretch;
}

/* ── BASE CARD ── */
.rsp-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    box-sizing: border-box;
    border-radius: var(--rsp-radius);
    overflow: hidden;
    background: var(--rsp-card-bg);
    transition: opacity .2s;
    position: relative;
}

.rsp-card--anterior,
.rsp-card--next {
    opacity: .80;
}

/* EN VIVO: cyan border + glow */
.rsp-card--live {
    border: 3px solid var(--rsp-cyan);
    opacity: 1;
    box-shadow: 0 0 24px rgba(0,188,212,.22);
}

.rsp-card--empty {
    visibility: hidden;
    pointer-events: none;
}

/* ── CARD INNER ── */
.rsp-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── IMAGE ── */
.rsp-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rsp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.rsp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a3e;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
}
.rsp-card-placeholder span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--rsp-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: inherit;
}

/* ── BADGE BAR ── */
.rsp-badge {
    width: 100%;
    padding: 9px 14px;
    /* font-size overridden by rsp_inject_typography_css */
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    flex-shrink: 0;
}

.rsp-badge--live {
    background: #2b2b3b;
    animation: rsp-text-blink 1.1s ease-in-out infinite;
}

.rsp-badge--next {
    background: var(--rsp-dark-blue);
}

/* ── BLINKING DOT ── */
.rsp-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rsp-cyan);
    flex-shrink: 0;
    animation: rsp-dot-blink 1.1s ease-in-out infinite;
}

@keyframes rsp-dot-blink {
    0%,100% { background: #fff;            box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%      { background: var(--rsp-cyan); box-shadow: 0 0 6px 2px rgba(0,188,212,.7); }
}

@keyframes rsp-text-blink {
    0%,100% { color: #fff; }
    50%      { color: var(--rsp-cyan); }
}

/* ── CARD INFO ── */
.rsp-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 14px;
    gap: 4px;
    background: var(--rsp-card-bg);
    flex: 1;
}

/* font-size / weight / transform applied via rsp_inject_typography_css */
.rsp-card-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--rsp-text-light);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
    font-family: inherit;
}

.rsp-card-time {
    font-size: .72rem;
    color: var(--rsp-text-muted);
    letter-spacing: .04em;
    font-family: inherit;
}

/* ── NO SHOWS ── */
.rsp-no-shows {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* Tablet: solo EN VIVO + A CONTINUACIÓN */
@media (max-width: 900px) {
    .rsp-card {
        flex: 0 0 calc(50% - 10px);
    }
    .rsp-card--anterior {
        display: none;
    }
}

/* Mobile: 1 card, swipe */
@media (max-width: 560px) {
    .rsp-carousel {
        padding: 0 10px;
    }
    .rsp-card {
        flex: 0 0 82vw;
    }
    .rsp-card--anterior {
        display: block;
    }
    .rsp-track {
        cursor: grab;
    }
    .rsp-track:active {
        cursor: grabbing;
    }
}
