/* ─────────────────────────────────────────
   videos.css  –  Videos & Lerntools pages
   Reuses CSS variables from main.css
───────────────────────────────────────── */

/* ── Shared ── */

.vl-page,
.vp-page {
    flex: 1;
    width: 100%;
}

.vl-hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 16px auto;
    width: 60%;
}

.vl-hr--narrow {
    width: 90%;
    margin-top: 32px;
}

/* ─────────────────────────────────────────
   VIDEOS LIST PAGE
───────────────────────────────────────── */

/* ── Intro block ── */

.vl-intro {
    max-width: 680px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--font-text);
    padding: 0 16px;
}

.vl-intro-lead {
    margin: 0 0 8px;
}

.vl-intro-list {
    display: inline-block;
    text-align: left;
    list-style: disc inside;
    margin: 0;
    padding: 0;
}

.vl-intro-list li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.vl-intro-list a {
    color: var(--color-signal);
    text-decoration: underline;
}

/* ── Video thumbnail grid ── */

.vl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1160px;
    margin: 24px auto;
    padding: 0 24px;
    justify-content: center;
}

/* ── Video card ── */

.vl-card {
    width: 360px;
    background: var(--background-dark);
    border-radius: 10px;
    overflow: hidden;
    filter: drop-shadow(rgba(250, 130, 11, 0.25) 0px 0px 6px);
    cursor: pointer;
    position: relative;
    transition: filter var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.vl-card:hover {
    filter: drop-shadow(rgba(250, 130, 11, 0.55) 0px 0px 10px);
    transform: translateY(-2px);
}

/* Thumbnail */
.vl-thumb {
    width: 100%;
    height: 230px;
    position: relative;
    overflow: hidden;
}

.vl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vl-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.2s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.vl-card:hover .vl-thumb-overlay {
    opacity: 1;
}

.vl-thumb-overlay p {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-align: left;
    margin: 0;
    line-height: 1.5;
}

.vl-play-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--color-signal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition-fast);
}

.vl-card:hover .vl-play-badge {
    transform: scale(1.15);
}

/* Card body */
.vl-card-body {
    padding: 12px 14px 16px;
}

.vl-card-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--font-headline);
    margin: 0 0 6px;
    line-height: 1.3;
}

.vl-focus-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--font-light-text);
    margin: 0 0 4px;
}

.vl-focus-list {
    margin: 0;
    padding-left: 16px;
}

.vl-focus-list li {
    font-size: 15px;
    font-weight: 500;
    color: var(--font-text);
    line-height: 1.4;
    margin-bottom: 2px;
}

/* ── Disclaimer ── */

.vl-disclaimer {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.vl-disclaimer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: var(--background-light);
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--font-headline);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.vl-disclaimer-toggle:hover {
    border-color: var(--color-signal);
    background: rgba(250, 131, 11, 0.04);
}

.vl-toggle-icon {
    font-size: 12px;
    color: var(--color-signal);
}

.vl-disclaimer-body {
    padding: 20px 24px 8px;
    background: var(--background-light);
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.vl-disclaimer-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--font-headline);
    margin: 16px 0 8px;
}

.vl-disclaimer-body h3:first-child {
    margin-top: 0;
}

.vl-disclaimer-body p {
    font-size: 15px;
    font-weight: 500;
    color: var(--font-text);
    line-height: 1.7;
    margin: 0 0 12px;
}

.vl-disclaimer-body a {
    color: var(--color-signal);
    text-decoration: underline;
}

/* ─────────────────────────────────────────
   VIDEO PLAYER PAGE
───────────────────────────────────────── */

/* ── Variant selector ── */

.vp-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.vp-variant-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 24px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: var(--background-light);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    min-width: 140px;
}

.vp-variant-btn:hover {
    border-color: var(--color-signal);
}

.vp-variant-btn--active {
    border-color: var(--color-signal);
    background: var(--color-signal-dim);
}

.vp-variant-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--font-text);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--transition-fast);
}

.vp-variant-btn--active .vp-variant-title {
    color: var(--color-signal);
    text-decoration-color: var(--color-signal);
}

.vp-variant-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--font-light-text);
}

/* ── Player card ── */

.vp-player-card {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0;
    background: var(--background-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 20px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Media area */
.vp-media {
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.vp-media img {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.vp-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    transition: background var(--transition-fast);
}

.vp-media:hover .vp-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.vp-play-icon {
    width: 72px;
    height: 72px;
    background: var(--color-signal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(250, 131, 11, 0.5);
    transition: transform var(--transition-fast);
    padding-left: 4px; /* optical center for triangle */
}

.vp-media:hover .vp-play-icon {
    transform: scale(1.1);
}

.vp-video {
    width: 100%;
    display: block;
    max-height: 500px;
    background: #000;
}

/* Info row */
.vp-info {
    padding: 18px 24px 4px;
    text-align: center;
}

.vp-info-tag {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.vp-info-hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 10px 0;
}

.vp-description {
    font-size: 16px;
    font-weight: 500;
    color: var(--font-text);
    line-height: 1.6;
    margin: 0;
}

/* Meta row — two equal halves, each centering its own content */
.vp-meta {
    display: flex;
    align-items: flex-start;
    padding: 24px 0 36px;
    gap: 0;
}

.vp-meta-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.vp-meta-col + .vp-meta-col {
    border-left: 1px solid rgba(0, 0, 0, 0.10);
}

/* Keep list left-aligned within its centered block */
.vp-meta-col .vp-meta-list {
    text-align: left;
}

.vp-meta-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--font-light-text);
    margin: 0 0 8px;
}

.vp-meta-list {
    margin: 0;
    padding-left: 18px;
}

.vp-meta-list li {
    font-size: 15px;
    font-weight: 500;
    color: var(--font-text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.vp-material-link {
    color: var(--font-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.vp-material-link:hover {
    color: var(--color-signal);
}


/* ─────────────────────────────────────────
   MOBILE  (< 1050px)
───────────────────────────────────────── */

@media only screen and (max-width: 1049px) {

    .vl-hr { width: 90%; }

    .vl-intro {
        text-align: left;
        padding: 0 16px;
    }

    .vl-intro-list {
        text-align: left;
    }

    .vl-grid {
        gap: 16px;
        padding: 0 12px;
        justify-content: center;
    }

    .vl-card {
        width: min(100%, 400px);
    }

    .vl-thumb {
        height: 180px;
    }

    .vl-disclaimer {
        padding: 0 12px;
        margin-bottom: 32px;
    }

    /* Player page */
    .vp-variants {
        padding: 0 12px;
        gap: 6px;
    }

    .vp-variant-btn {
        min-width: 100px;
        padding: 8px 14px;
    }

    .vp-variant-title {
        font-size: 13px;
    }

    .vp-player-card {
        margin: 16px auto 32px;
        padding: 0 0 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .vp-media {
        border-radius: 0;
    }

    .vp-media img,
    .vp-video {
        max-height: 260px;
    }

    .vp-play-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .vp-info {
        padding: 14px 16px 4px;
    }

    .vp-meta {
        padding: 12px 16px 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .vp-meta-col {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 0;
        border-left: none !important;
    }

    /* Keep the list items left-aligned within the centred block */
    .vp-meta-col .vp-meta-list {
        display: inline-block;
        text-align: left;
    }
}
