/* UpTrajectory Video Player */

.ut-video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ut-video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Transcript section */
.ut-video-transcript {
    max-width: 900px;
    margin: 1rem auto 2.5rem;
    padding: 1rem 1.25rem;
    background: #f8f8f6;
    border-left: 3px solid #2E7D32;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ut-video-transcript summary {
    cursor: pointer;
    padding: 0.25rem 0;
    list-style: none;
    color: #1a1a1a;
    font-family: 'Futura', 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    letter-spacing: 0.02em;
}

.ut-video-transcript summary::-webkit-details-marker {
    display: none;
}

.ut-video-transcript summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s ease;
    color: #2E7D32;
    font-weight: bold;
}

.ut-video-transcript[open] summary::before {
    transform: rotate(90deg);
}

.ut-video-transcript__note {
    color: #6b6b6b;
    font-weight: normal;
    font-size: 0.85em;
}

.ut-video-transcript__body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d8d6d0;
    color: #222;
}

.ut-video-transcript__body p {
    margin: 0 0 0.9rem;
}

/* Captions styling - works with both native <track> and HLS.js rendered captions */
.ut-video::cue {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.25em 0.5em;
    font-family: 'Futura', 'Gill Sans', sans-serif;
}

/* Mobile */
@media (max-width: 768px) {
    .ut-video-container {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .ut-video-transcript {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}
