/* =========================================================
   AGENT STEFAN - LUISTERVERHALEN
   Matches the existing 911 / emergency callcenter styling
   ========================================================= */

/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.video-page-main {
    width: min(1380px, calc(100% - 2rem));
    margin: 0 auto 4rem;
}

.luistervideo-dashboard {
    width: 100%;
    margin: 1.2rem auto 1.8rem;
}

/* =========================================================
   INTRO HEADER
   ========================================================= */

.luistervideo-dashboard .home-dashboard-header {
    margin: -2rem 0 1rem;
    padding: 0.9rem 1rem;

    text-align: center;

    border: 1px solid rgba(78, 161, 255, 0.2);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(5, 15, 32, 0.88);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.luistervideo-dashboard .home-dashboard-label {
    display: inline-block;

    margin-bottom: 0.25rem;

    color: var(--cyan);

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.luistervideo-dashboard .home-dashboard-header h2 {
    margin: 0 0 0.3rem;

    color: var(--white);

    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.1;

    text-shadow:
        0 0 16px rgba(31, 111, 235, 0.18);
}

.luistervideo-dashboard .home-dashboard-header p {
    max-width: 760px;
    margin: 0 auto;

    color: var(--muted);

    font-size: 0.8rem;
    line-height: 1.5;
}

/* =========================================================
   SHARED CARDS
   ========================================================= */

.luistervideo-dashboard .home-dashboard-card {
    position: relative;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(78, 161, 255, 0.24);
    border-radius: 13px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(5, 15, 32, 0.94);

    box-shadow:
        0 12px 27px rgba(0, 0, 0, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);

    transition:
        transform 0.17s ease,
        border-color 0.17s ease,
        box-shadow 0.17s ease,
        filter 0.17s ease;
}

.luistervideo-dashboard .home-dashboard-card::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    z-index: 2;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            var(--yellow),
            var(--blue)
        );

    pointer-events: none;
}

.luistervideo-dashboard .home-dashboard-card:hover {
    transform: translateY(-3px);

    filter: brightness(1.03);

    border-color: rgba(78, 161, 255, 0.5);

    box-shadow:
        0 17px 34px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(31, 111, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* =========================================================
   CARD HEADERS
   ========================================================= */

.luistervideo-dashboard .home-dashboard-card-header {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.55rem 0.7rem;

    border-bottom:
        1px solid rgba(78, 161, 255, 0.15);

    background:
        rgba(2, 10, 24, 0.4);
}

.luistervideo-dashboard .home-dashboard-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;

    background:
        rgba(31, 111, 235, 0.13);

    color: var(--cyan);

    font-size: 0.78rem;
}

.luistervideo-dashboard .home-dashboard-card-label {
    color: var(--white);

    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =========================================================
   CARD BODY
   ========================================================= */

.luistervideo-dashboard .home-dashboard-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 0.7rem 0.8rem 0.8rem;
}

.luistervideo-dashboard .home-dashboard-card-body h3 {
    margin: 0 0 0.4rem;

    color: var(--white);

    font-size: 0.94rem;
    line-height: 1.3;
}

.luistervideo-dashboard .home-dashboard-card-body p {
    margin: 0 0 0.65rem;

    color: var(--text);

    font-size: 0.72rem;
    line-height: 1.5;
}

/* Stop the homepage line clamp affecting errors/text */
.luistervideo-dashboard
.home-dashboard-card-body p {
    display: block;

    overflow: visible;

    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

/* =========================================================
   MAIN VIDEO PLAYER CARD
   ========================================================= */

.luistervideo-player-card {
    margin-bottom: 1.4rem;
}

.luistervideo-player-card:hover {
    /*
     * Main player should remain stable while watching.
     */
    transform: none;
}

.luistervideo-player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border:
        1px solid rgba(78, 161, 255, 0.24);
    border-radius: 10px;

    background:
        rgba(2, 7, 17, 0.95);

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.25);
}

.luistervideo-player::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    border:
        1px solid rgba(255, 255, 255, 0.04);
    border-radius: inherit;

    pointer-events: none;
}

.luistervideo-player iframe {
    position: absolute;
    inset: 0;

    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

#luistervideoCurrentTitle {
    margin: 0.8rem 0 0;

    color: var(--white);

    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.35;
}

/* =========================================================
   OVERVIEW HEADING
   ========================================================= */

.luistervideo-overview {
    margin-top: 1rem;
}

.luistervideo-overview-heading {
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.9rem;

    border:
        1px solid rgba(78, 161, 255, 0.2);
    border-left:
        3px solid var(--cyan);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.01)
        ),
        rgba(5, 15, 32, 0.86);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.luistervideo-overview-heading h2 {
    margin: 0 0 0.2rem;

    color: var(--white);

    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.luistervideo-overview-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 0.75rem;
    line-height: 1.45;
}

/* =========================================================
   VIDEO GRID
   ========================================================= */

.luistervideo-dashboard .luistervideo-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 0.65rem;
}

.luistervideo-dashboard .luistervideo-card {
    min-width: 0;
    min-height: 0;

    height: 100%;
}

/* =========================================================
   VIDEO BUTTON
   ========================================================= */

.luistervideo-select {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    font: inherit;
    text-align: left;

    cursor: pointer;
}

.luistervideo-select:focus-visible {
    outline:
        2px solid var(--cyan);
    outline-offset: -3px;

    border-radius: 12px;
}

.luistervideo-select
.home-dashboard-card-body {
    width: 100%;
}

.luistervideo-select
.home-dashboard-card-body h3 {
    flex: 1;

    margin-bottom: 0.6rem;
}

/* =========================================================
   VIDEO THUMBNAILS
   ========================================================= */

.luistervideo-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom:
        1px solid rgba(78, 161, 255, 0.15);

    background:
        rgba(2, 10, 24, 0.67);
}

.luistervideo-thumbnail::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(2, 7, 17, 0.55) 100%
        );

    pointer-events: none;
}

.luistervideo-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.22s ease,
        filter 0.22s ease;
}

.luistervideo-select:hover
.luistervideo-thumbnail img {
    transform: scale(1.035);

    filter:
        brightness(1.04)
        saturate(1.05);
}

/* =========================================================
   PLAY ICON
   ========================================================= */

.luistervideo-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;

    z-index: 2;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    padding-left: 3px;

    border:
        1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 59, 59, 0.95),
            rgba(165, 22, 34, 0.95)
        );

    color: var(--white);

    font-size: 1rem;

    transform:
        translate(-50%, -50%);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(255, 59, 59, 0.2);

    transition:
        transform 0.17s ease,
        box-shadow 0.17s ease,
        filter 0.17s ease;
}

.luistervideo-select:hover
.luistervideo-play-icon {
    transform:
        translate(-50%, -50%)
        scale(1.08);

    filter: brightness(1.08);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(255, 59, 59, 0.32);
}

/* =========================================================
   CARD LINK TEXT
   ========================================================= */

.luistervideo-dashboard .home-dashboard-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;

    color: var(--cyan);

    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        color 0.15s ease;
}

.luistervideo-select:hover
.home-dashboard-link {
    color: var(--white);

    transform:
        translateX(3px);
}

/* =========================================================
   ERROR / EMPTY STATE
   ========================================================= */

.luistervideo-dashboard
> .home-dashboard-card:not(.luistervideo-player-card) {
    max-width: 760px;
    margin: 1rem auto;
}

.luistervideo-dashboard
> .home-dashboard-card:not(.luistervideo-player-card)
.home-dashboard-card-body {
    padding: 1rem;
    text-align: center;
}

.luistervideo-dashboard
code {
    padding: 0.1rem 0.35rem;

    border:
        1px solid rgba(78, 161, 255, 0.2);
    border-radius: 5px;

    background:
        rgba(2, 10, 24, 0.7);

    color: var(--cyan);

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 0.8em;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {
    .luistervideo-dashboard .luistervideo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {
    .video-page-main {
        width: min(100% - 1rem, 1380px);
    }

    .luistervideo-dashboard {
        margin-top: 0.8rem;
    }

    .luistervideo-dashboard
    .home-dashboard-header {
        margin-top: -1rem;
        padding: 0.8rem;
    }

    .luistervideo-dashboard
    .home-dashboard-header h2 {
        font-size: 1.35rem;
    }

    .luistervideo-dashboard
    .home-dashboard-header p {
        font-size: 0.75rem;
    }

    .luistervideo-dashboard
    .luistervideo-grid {
        grid-template-columns: 1fr;
    }

    .luistervideo-player-card {
        margin-bottom: 1rem;
    }

    .luistervideo-overview-heading {
        padding: 0.7rem 0.8rem;
    }

    .luistervideo-play-icon {
        width: 44px;
        height: 44px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .luistervideo-dashboard *,
    .luistervideo-dashboard *::before,
    .luistervideo-dashboard *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}