:root {
    --flaeijel-live-yellow: #f0ca0e;
    --flaeijel-live-black: #050505;
    --flaeijel-live-white: #ffffff;
    --flaeijel-live-max: 980px;
    --flaeijel-live-nav-offset: 120px;
}

.live-programma-clean {
    margin: 0;
    background: #000;
}

.flaeijel-live-view,
.flaeijel-live-view * {
    box-sizing: border-box;
}

.flaeijel-live-view {
    min-height: 100vh;
    background: radial-gradient(circle at top, #2b2400 0, #050505 38%, #000 100%);
    color: #fff;
    padding: clamp(16px, 4vw, 44px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   HERO
========================================================= */

.flaeijel-live-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--flaeijel-live-max);
    margin: 0 auto 18px;
}

.flaeijel-live-hero__kicker {
    margin: 0 0 6px;
    color: var(--flaeijel-live-yellow);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.flaeijel-live-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 10vw, 5.2rem);
    line-height: .9;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(240, 202, 14, .35);
}

.flaeijel-live-hero__intro {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
}

.flaeijel-live-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.flaeijel-live-now-button,
.flaeijel-live-install-button {
    border: 0;
    border-radius: 999px;
    background: var(--flaeijel-live-yellow);
    color: #000;
    font-weight: 950;
    padding: 13px 18px;
    box-shadow: 0 0 24px rgba(240, 202, 14, .4);
    cursor: pointer;
    white-space: nowrap;
}

.flaeijel-live-install-button {
    display: none;
    background: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .18);
}

.flaeijel-live-install-button:not([hidden]) {
    display: none;
}

/* =========================================================
   NAVIGATIE
========================================================= */

.flaeijel-live-jumpnav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    overflow: auto;
    max-width: var(--flaeijel-live-max);
    margin: 0 auto 18px;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .72));
    backdrop-filter: blur(10px);
}

.flaeijel-live-jumpnav__link {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .07);
    font-weight: 800;
}

.flaeijel-live-jumpnav__link--avond {
    border-color: rgba(240, 202, 14, .32);
}

/* Statusbalk uit */

.flaeijel-live-status,
.flaeijel-live-status.is-visible {
    display: none !important;
}

/* =========================================================
   TIMELINE / SECTIES
========================================================= */

.flaeijel-live-timeline {
    max-width: var(--flaeijel-live-max);
    margin: 0 auto;
    display: grid;
    gap: 28px;
    padding-bottom: 60vh;
}

.flaeijel-live-section {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    scroll-margin-top: calc(var(--flaeijel-live-nav-offset) + env(safe-area-inset-top, 0px));
}

.flaeijel-live-section--overdag {
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
}

.flaeijel-live-section--avond {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, .22), transparent 42%),
        rgba(0, 0, 0, .28);
    border-color: rgba(240, 202, 14, .24);
}

.flaeijel-live-section.has-now {
    border-color: var(--flaeijel-live-yellow);
    box-shadow: 0 0 34px rgba(240, 202, 14, .18);
}

.flaeijel-live-section__head {
    padding: 10px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    margin-bottom: 14px;
}

.flaeijel-live-section__label {
    margin: 0 0 5px;
    color: var(--flaeijel-live-yellow);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.flaeijel-live-section__label:empty {
    display: none;
}

.flaeijel-live-section__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 6vw, 3.6rem);
    line-height: .95;
    text-transform: uppercase;
}

.flaeijel-live-section__items {
    display: grid;
    gap: 14px;
}

/* =========================================================
   KAARTEN
========================================================= */

.flaeijel-live-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 190px 1fr;
    gap: 16px;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    overflow: hidden;
    scroll-margin-top: calc(var(--flaeijel-live-nav-offset) + 30px + env(safe-area-inset-top, 0px));
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.flaeijel-live-card--avond {
    background: linear-gradient(90deg, rgba(240, 202, 14, .10), rgba(255, 255, 255, .065));
}

.flaeijel-live-card--overdag {
    background: rgba(255, 255, 255, .09);
}

.flaeijel-live-card.is-past {
    opacity: .48;
}

.flaeijel-live-card.is-now {
    opacity: 1;
    border-color: var(--flaeijel-live-yellow);
    box-shadow:
        0 0 0 2px rgba(240, 202, 14, .34),
        0 0 45px rgba(240, 202, 14, .34),
        0 18px 50px rgba(0, 0, 0, .38);
    transform: scale(1.012);
}

.flaeijel-live-card.is-next {
    border-color: rgba(240, 202, 14, .45);
}

/* Tijd */

.flaeijel-live-card__time {
    padding: 18px 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
}

.flaeijel-live-card__time strong {
    font-size: 1.5rem;
    color: var(--flaeijel-live-yellow);
    line-height: 1;
}

.flaeijel-live-card__time span,
.flaeijel-live-card__meta {
    font-size: .78rem;
    color: rgba(255, 255, 255, .62);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Afbeelding desktop */

.flaeijel-live-card__media {
    min-height: 142px;
    background: #141414;
}

.flaeijel-live-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */

.flaeijel-live-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #000;
    background: linear-gradient(135deg, var(--flaeijel-live-yellow), #fff2a0);
    font-weight: 950;
    text-transform: uppercase;
}

/* Content */

.flaeijel-live-card__content {
    position: relative;
    padding: 18px 18px 20px 0;
}

.flaeijel-live-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.flaeijel-live-card__meta span {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, .22);
}

.flaeijel-live-card__title {
    margin: 0 0 7px;
    font-size: clamp(1.35rem, 3.8vw, 2.2rem);
    line-height: 1;
    color: #fff;
}

.flaeijel-live-card__excerpt {
    margin: 0 0 11px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.45;
}

.flaeijel-live-card__link {
    color: var(--flaeijel-live-yellow);
    font-weight: 900;
    text-decoration: none;
}

/* Badge */

.flaeijel-live-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--flaeijel-live-yellow);
    color: #000;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(240, 202, 14, .5);
}

.flaeijel-live-badge[hidden] {
    display: none !important;
}

/* Toggle standaard uit op desktop */

.flaeijel-live-card__toggle {
    display: none;
}

/* Leeg */

.flaeijel-live-empty {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, .06);
}

/* =========================================================
   MOBIEL
========================================================= */

@media (max-width: 768px) {
    :root {
        --flaeijel-live-nav-offset: 135px;
    }

    .flaeijel-live-view {
        padding: 14px;
    }

    .flaeijel-live-hero {
        display: block;
    }

    .flaeijel-live-hero__actions {
        display: grid;
        gap: 10px;
        margin-top: 14px;
        align-items: stretch;
    }

    .flaeijel-live-now-button,
    .flaeijel-live-install-button {
        width: 100%;
    }

    .flaeijel-live-install-button:not([hidden]) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .flaeijel-live-section {
        padding: 10px;
        border-radius: 22px;
    }

    .flaeijel-live-card {
        grid-template-columns: 74px 1fr;
        gap: 0;
    }

    .flaeijel-live-card__time {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding: 14px 10px 14px 14px;
        background: rgba(0, 0, 0, .25);
    }

    .flaeijel-live-card__time strong {
        font-size: 1.2rem;
    }

    .flaeijel-live-card__media {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: unset;
        overflow: hidden;
        background: #141414;
    }

    .flaeijel-live-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        display: block;
    }

    .flaeijel-live-card__placeholder {
        width: 100%;
        height: 100%;
        min-height: 150px;
    }

    .flaeijel-live-card__content {
        grid-column: 2;
        grid-row: 2;
        padding: 12px 14px 16px;
    }

    .flaeijel-live-card__type {
        display: none !important;
    }

    .flaeijel-live-card__meta {
        margin-bottom: 8px;
    }

    .flaeijel-live-card__title {
        margin: 0;
        font-size: 1.35rem;
        line-height: 1.05;
    }

    .flaeijel-live-card__excerpt,
    .flaeijel-live-card__link {
        display: none;
    }

    .flaeijel-live-card__toggle {
        position: absolute;
        left: 10px;
        bottom: 10px;
        z-index: 3;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 36px;
        height: 36px;
        margin: 0;

        border-radius: 999px;
        border: 1px solid rgba(240, 202, 14, .75);
        background: rgba(0, 0, 0, .62);
        color: var(--flaeijel-live-yellow);
        box-shadow: 0 0 18px rgba(0, 0, 0, .45);

        font-size: 1.45rem;
        line-height: 1;
        font-weight: 950;
        cursor: pointer;
    }

    .flaeijel-live-card.is-open .flaeijel-live-card__excerpt {
        display: block;
        margin-top: .65rem;
    }

    .flaeijel-live-card.is-open .flaeijel-live-card__link {
        display: none;
    }

    .flaeijel-live-badge {
        position: static;
        margin-top: 8px;
        display: inline-flex;
    }

    .flaeijel-live-badge[hidden] {
        display: none !important;
    }
}

/* =========================================================
   MOBIELE PWA INSTALL POPUP
   Verschijnt pas na 30 sec + interactie via JS
========================================================= */

.flaeijel-live-install-button {
    display: none !important;
}

@media (max-width: 768px) {
    .flaeijel-live-install-button.is-visible:not([hidden]) {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        z-index: 9999;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 54px;
        padding: 14px 18px;

        border: 1px solid rgba(240, 202, 14, .75);
        border-radius: 999px;
        background: var(--flaeijel-live-yellow);
        color: #000;
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, .32),
            0 14px 40px rgba(0, 0, 0, .55),
            0 0 28px rgba(240, 202, 14, .45);

        font-size: 1rem;
        font-weight: 950;
        line-height: 1.1;
        text-align: center;
    }
}
