/* FLR Schedule — Front-end styles */

/* =========================================================================
   Variables
   ========================================================================= */

.flr-schedule {
    --flr-bg:        #111316;
    --flr-surface:   #1c1f24;
    --flr-border:    rgba(255,255,255,.08);
    --flr-text:      #e8eaed;
    --flr-muted:     #8a8f98;
    --flr-accent:    #e84040;
    --flr-radius:    10px;
    --flr-gap:       20px;
    font-family: inherit;
    color: var(--flr-text);
}

/* =========================================================================
   Now-Playing Hero
   ========================================================================= */

.flr-now-hero {
    position: relative;
    min-height: 260px;
    border-radius: var(--flr-radius);
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}

.flr-now-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
    filter: blur(1px);
}

.flr-now-hero:hover .flr-now-hero__bg {
    transform: scale(1);
}

.flr-now-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.55) 50%,
        rgba(0,0,0,.2)  100%
    );
}

.flr-now-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    width: 100%;
}

/* On-air badge */

.flr-on-air {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--flr-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.flr-on-air__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: flr-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes flr-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.flr-now-hero__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.15;
    color: #fff;
}

.flr-now-hero__title a {
    color: inherit;
    text-decoration: none;
}

.flr-now-hero__title a:hover {
    text-decoration: underline;
}

.flr-now-hero__host {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin: 0 0 4px;
}

.flr-now-hero__time {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin: 0 0 14px;
}

/* Progress bar */

.flr-progress-bar {
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    max-width: 320px;
    overflow: hidden;
}

.flr-progress-bar__fill {
    height: 100%;
    background: var(--hero-color, var(--flr-accent));
    border-radius: 2px;
    width: 0%;
    transition: width .6s ease;
}

/* =========================================================================
   Day tabs
   ========================================================================= */

.flr-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    margin-bottom: 28px;
    scrollbar-width: none;
}

.flr-tabs::-webkit-scrollbar { display: none; }

.flr-tab {
    flex-shrink: 0;
    background: var(--flr-surface);
    color: var(--flr-muted);
    border: 1px solid var(--flr-border);
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    white-space: nowrap;
}

.flr-tab:hover {
    color: var(--flr-text);
    border-color: rgba(255,255,255,.2);
}

.flr-tab[aria-selected="true"] {
    background: var(--flr-accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232,64,64,.4);
}

.flr-tab.is-today {
    border-color: var(--flr-accent);
    color: var(--flr-text);
}

.flr-tab.is-today[aria-selected="true"] {
    color: #fff;
}

/* =========================================================================
   Panel
   ========================================================================= */

.flr-panel {
    animation: flr-fade-in .25s ease;
}

.flr-panel[hidden] { display: none; }

@keyframes flr-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Show grid
   ========================================================================= */

.flr-show-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
    gap: var(--flr-gap);
}

/* =========================================================================
   Show card
   ========================================================================= */

.flr-show-card {
    background: var(--flr-surface);
    border: 1px solid var(--flr-border);
    border-radius: var(--flr-radius);
    overflow: hidden;
    position: relative;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}

.flr-show-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    border-color: var(--show-color, var(--flr-accent));
}

.flr-show-card.is-now-playing {
    border-color: var(--show-color, var(--flr-accent));
    box-shadow: 0 0 0 2px var(--show-color, var(--flr-accent)),
                0 8px 24px rgba(0,0,0,.4);
}

/* Invisible full-card link for click area */
.flr-card-link {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Image */

.flr-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0f12;
    flex-shrink: 0;
}

.flr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.flr-show-card:hover .flr-card-image img {
    transform: scale(1.06);
}

.flr-card-image__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e2128 0%, #0d0f12 100%);
}

.flr-card-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
    pointer-events: none;
}

/* Badges on image */

.flr-badge {
    position: absolute;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 4px;
}

.flr-badge--time {
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    backdrop-filter: blur(4px);
}

.flr-badge--now {
    bottom: 8px;
    left: 8px;
    background: var(--show-color, var(--flr-accent));
    color: #fff;
    display: none; /* hidden until JS marks the card as active */
    align-items: center;
    gap: 5px;
}

.flr-show-card.is-now-playing .flr-badge--now {
    display: inline-flex;
}

/* Card body */

.flr-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.flr-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    color: var(--flr-text);
}

.flr-card-title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.flr-card-title a:hover {
    color: var(--show-color, var(--flr-accent));
}

.flr-card-meta {
    font-size: 12px;
    color: var(--flr-muted);
    margin: 0 0 12px;
}

.flr-card-host {
    color: var(--flr-muted);
}

.flr-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--show-color, var(--flr-accent));
    background: transparent;
    border: 1px solid var(--show-color, var(--flr-accent));
    padding: 5px 12px;
    border-radius: 5px;
    align-self: flex-start;
    cursor: pointer;
    transition: background .15s, color .15s;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.flr-more-btn:hover,
.flr-more-btn[aria-expanded="true"] {
    background: var(--show-color, var(--flr-accent));
    color: #fff;
}

.flr-more-btn__arrow {
    display: inline-block;
    transition: transform .25s ease;
    font-style: normal;
    line-height: 1;
}

.flr-more-btn[aria-expanded="true"] .flr-more-btn__arrow {
    transform: rotate(180deg);
}

/* Slide-up drawer --------------------------------------------------------- */

.flr-card-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    border-top: 0px solid var(--flr-border);
}

.flr-card-drawer.is-open {
    max-height: 300px;
    border-top-width: 1px;
}

.flr-card-drawer__inner {
    padding: 14px 16px 16px;
}

.flr-drawer-desc {
    font-size: 13px;
    color: var(--flr-muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

.flr-drawer-host {
    font-size: 13px;
    color: var(--flr-text);
    margin: 0 0 12px;
}

.flr-drawer-host-text {
    font-size: 13px;
    color: var(--flr-text);
    margin: 0 0 12px;
}

.flr-drawer-hosts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.flr-drawer-host-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--flr-border);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    text-decoration: none;
    color: var(--flr-text);
    font-size: 12px;
    font-weight: 600;
    transition: background .15s, border-color .15s;
}

.flr-drawer-host-chip:hover {
    background: rgba(255,255,255,.13);
    border-color: var(--show-color, var(--flr-accent));
}

.flr-drawer-host-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.flr-drawer-host-chip__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--show-color, var(--flr-accent));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.flr-drawer-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--show-color, var(--flr-accent));
    text-decoration: none;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media ( max-width: 700px ) {
    .flr-now-hero {
        min-height: 200px;
    }

    .flr-now-hero__content {
        padding: 20px 18px;
    }

    .flr-show-grid {
        grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
        gap: 14px;
    }

    .flr-tab {
        padding: 8px 13px;
        font-size: 12px;
    }
}

@media ( max-width: 480px ) {
    .flr-show-grid {
        grid-template-columns: 1fr 1fr;
    }
}
