/* =====================================================
   VIDEO LIBRARY
====================================================== */

.video-library {
    width: 100%;
    margin-top: 60px;
}

.video-library-header {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: end;
    margin-bottom: 32px;
}

.video-library-header .panel-label {
    display: block;
    margin-bottom: 10px;
}

.video-library-header h2 {
    margin: 0;
    color: #23004C;
    font-family: "Sanofi Serif", Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.05;
}

.video-library-header h2 em {
    color: #7A00E6;
    font-style: italic;
}

.video-library-header p {
    margin: 0;
    color: #555;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}


/* =====================================================
   VIDEO GRID
====================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =====================================================
   VIDEO CARD
====================================================== */

.video-card {
    background: #ffffff;
    border: 1px solid rgba(35, 0, 76, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(122, 0, 230, 0.22);
    box-shadow: 0 18px 45px rgba(35, 0, 76, 0.10);
}


/* =====================================================
   VIDEO THUMBNAIL
====================================================== */

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #23004C;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* =====================================================
   PURPLE OVERLAY
====================================================== */

.video-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(35, 0, 76, 0.55),
        rgba(122, 0, 230, 0.15)
    );
    pointer-events: none;
}


/* =====================================================
   PLAY BUTTON
====================================================== */

.video-play-button {
    position: absolute;
    z-index: 3;

    top: 50%;
    left: 50%;

    width: 64px;
    height: 64px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);
    color: #7A00E6;

    font-size: 17px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.video-play-button i {
    margin-left: 3px;
}

.video-card:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.08);
    background: #7A00E6;
    color: #ffffff;
}


/* =====================================================
   VIDEO LABEL
====================================================== */

.video-duration {
    position: absolute;
    z-index: 3;

    left: 16px;
    bottom: 14px;

    padding: 6px 10px;

    border-radius: 5px;

    background: rgba(35, 0, 76, 0.85);
    color: #ffffff;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


/* =====================================================
   VIDEO CARD CONTENT
====================================================== */

.video-card-content {
    padding: 22px 22px 25px;
}

.video-number {
    display: block;
    margin-bottom: 8px;

    color: #7A00E6;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.video-card-content h3 {
    margin: 0 0 9px;

    color: #23004C;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.video-card-content p {
    margin: 0;

    color: #666;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}


/* =====================================================
   VIDEO MODAL
====================================================== */

.video-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 999999 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =====================================================
   MODAL OVERLAY
====================================================== */

.video-modal-overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw;
    height: 100vh;

    background: rgba(20, 0, 40, 0.94);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 1;
}


/* =====================================================
   MODAL CONTENT
====================================================== */

.video-modal-content {
    position: relative !important;
    z-index: 2;

    width: min(1200px, 94vw);
    max-width: 1200px;

    max-height: 94vh;

    margin: 0;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.45);

    transform: translateY(25px) scale(0.97);

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

.video-modal.active .video-modal-content {
    transform: translateY(0) scale(1);
}


/* =====================================================
   MODAL HEADER
====================================================== */

.video-modal-header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 24px;

    background: #ffffff;

    border-bottom: 1px solid rgba(35, 0, 76, 0.08);
}

.video-modal-label {
    display: block;

    margin-bottom: 4px;

    color: #7A00E6;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.video-modal-header h2 {
    margin: 0;

    color: #23004C;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
}

/* =====================================================
   CLOSE
====================================================== */


.video-modal-close {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(35, 0, 76, 0.10);
    border-radius: 50%;

    background: #F7F7F7;
    color: #23004C;

    font-size: 16px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.video-modal-close:hover {
    background: #7A00E6;
    color: #ffffff;

    transform: rotate(90deg);
}

/* =====================================================
   VIDEO PLAYER
====================================================== */

.video-modal-player {
    width: 100%;

    background: #000;

    line-height: 0;
}

.video-modal-player video {
    display: block;

    width: 100%;
    height: auto;

    max-height: calc(94vh - 76px);

    object-fit: contain;

    background: #000;
}

/* =====================================================
   RESPONSIVE
====================================================== */
@media (max-width: 700px) {

    .video-modal-content {
        width: 96vw;
        max-height: 92vh;
        border-radius: 12px;
    }

    .video-modal-header {
        min-height: 64px;
        padding: 12px 15px;
    }

    .video-modal-header h2 {
        font-size: 15px;
    }

    .video-modal-player video {
        max-height: calc(92vh - 64px);
    }

}


body.video-modal-open {
    overflow: hidden !important;
}