/* ── Video Single Page ─────────────────────────────────── */

.video-hero {
    background: #000000;
    padding: 48px 0;
    text-align: center;
}

.video-hero h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
}

/* YouTube 16:9 Responsive Embed
 *
 * 2026-08-11: global.css was forcing `aspect-ratio: 16/9` onto .video-embed for
 * CLS protection in article bodies. On THIS page .video-embed is a full-width
 * <section>, so that made the section 1080px tall at a 1920px viewport while the
 * player itself caps at 540px -- hundreds of pixels of dead space under the video,
 * growing with the viewport and absent on mobile. global.css is now scoped with
 * :not(section); this belt-and-braces reset means the page is correct even if that
 * scoping is ever loosened again.
 */
.video-embed {
    padding: 40px 0;
    aspect-ratio: auto;
    contain: none;
}

.video-embed .container {
    max-width: 960px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.video-embed__wrapper {
    position: relative;
    /* Modern aspect-ratio with the percentage-padding hack kept as the fallback.
       Browsers that support aspect-ratio ignore the padding pair because height
       is no longer 0; older ones use the hack. Same 16:9 either way. */
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

@supports not (aspect-ratio: 16 / 9) {
    .video-embed__wrapper {
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
    }
}

.video-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Content Card */
.video-content {
    padding: 0 0 48px;
}

.video-content .container {
    max-width: 960px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.video-content__card {
    width: 100%;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.video-content__card p {
    margin: 0 0 16px;
}

.video-content__card p:last-child {
    margin-bottom: 0;
}

.video-content__card a {
    color: #F5A623;
    font-weight: 600;
    text-decoration: none;
}

.video-content__card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .video-hero {
        padding: 32px 0;
    }
    .video-hero h1 {
        font-size: 24px;
    }
    .video-content__card {
        padding: 24px 20px;
    }
}

/* -----------------------------------------------------------------------------
   DEEP LINK NOTICE (2026-08-12)
   Shown only when AI Search sent the visitor to a specific moment via ?t=.
   An embed that opens 20 minutes in looks broken unless you explain it.
   -------------------------------------------------------------------------- */

.video-deeplink {
    padding: 0.85rem 0 0;
}

.video-deeplink__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 8px;
    background: rgba(245, 166, 35, 0.08);
    color: #6B4A08;
    font-size: 0.875rem;
    line-height: 1.5;
}

.video-deeplink__note svg {
    flex: 0 0 auto;
    color: #B37A10;
}

.video-deeplink__note strong {
    color: #111111;
    font-variant-numeric: tabular-nums;
}

.video-deeplink__note a {
    margin-left: auto;
    color: #8A5A0B;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.video-deeplink__note a:hover { color: #111111; }

@media (max-width: 620px) {
    .video-deeplink__note { font-size: 0.8125rem; }
    /* On a phone the "watch from the beginning" link should not be shoved to a
       far edge by auto margin; let it sit under the sentence. */
    .video-deeplink__note a { margin-left: 0; }
}
