/* =====================================================================
   Training videos: click-to-play YouTube cards (thumbnail first, the
   real player loads only when someone presses play)
   ===================================================================== */
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 820px) { .yt-grid { grid-template-columns: minmax(0, 1fr); } }

.yt-card {
    border-radius: 24px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.75);
}
.yt-box { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade {
    position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
    background: #000; display: block;
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.yt-facade:hover img { transform: scale(1.03); filter: brightness(1.06); }
.yt-play {
    position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(220, 20, 30, 0.92); box-shadow: 0 12px 34px rgba(0,0,0,0.55), 0 0 0 0 rgba(255,40,50,0.6);
    transition: transform .25s; animation: yt-ring 2.4s ease-out infinite;
}
.yt-play svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: scale(1.1); }
.yt-facade:focus-visible { outline: 3px solid #F0CC78; outline-offset: -3px; }
@keyframes yt-ring { 0% { box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 0 rgba(255,40,50,.55); } 70%, 100% { box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 22px rgba(255,40,50,0); } }
.yt-lang {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(0,0,0,0.72); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
}
.yt-lang [lang="bo"] { font-family: 'Noto Serif Tibetan', serif; font-size: 1.2em; line-height: 1.3; color: #FFD98A; }
.yt-dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.8); color: #fff; font: 700 13px/1.2 system-ui, sans-serif; pointer-events: none; }

.yt-body { padding: 18px 22px 22px; }
.yt-title { font: 800 19px/1.3 'Plus Jakarta Sans', 'Hanken Grotesk', sans-serif; color: #fff; }
.yt-tib { display: block; font-family: 'Noto Serif Tibetan', serif; font-size: 19px; line-height: 1.75; color: #F0CC78; font-weight: 600; margin-top: 2px; }
.yt-desc { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(230,236,255,0.78); }
.yt-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.yt-topics span { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #E8EDF8; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; font-size: 14px; color: #FFD98A; }
.yt-link:hover { text-decoration: underline; }

html:not(.dark) .yt-card { background: #fff; border: 1.5px solid rgba(11,18,48,0.18); box-shadow: 0 24px 50px -30px rgba(11,18,48,0.5); }
html:not(.dark) .yt-title { color: #0B1230; }
html:not(.dark) .yt-tib { color: #8A5A00; }
html:not(.dark) .yt-desc { color: #38425E; }
html:not(.dark) .yt-topics span { background: #EEF2FB; border-color: rgba(11,18,48,0.2); color: #0B1230; }
html:not(.dark) .yt-link { color: #0A45D6; }

/* the /software details panel gains a fifth tab */
.dk-tabs.dk-tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 720px) {
    .dk-tabs.dk-tabs-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dk-tabs.dk-tabs-5 .dk-tab:last-child { grid-column: 1 / -1; }
}
.dk .yt-grid { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { .yt-play { animation: none; } .yt-facade img { transition: none; } }

/* hide the label + duration while the player is showing */
.yt-box.is-playing .yt-lang, .yt-box.is-playing .yt-dur { display: none; }

/* equal-height cards, "Watch on YouTube" lined up at the bottom */
.yt-grid { align-items: stretch; }
.yt-card { display: flex; flex-direction: column; }
.yt-body { flex: 1; display: flex; flex-direction: column; }
.yt-link { margin-top: auto; padding-top: 14px; align-self: flex-start; }


/* ---------- training video at the top of the Screen Recorder page ---------- */
.hero-video { width: 100%; max-width: 660px; }
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hv-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: #E0242E; color: #fff; font-weight: 800; font-size: 14.5px; letter-spacing: .01em;
    box-shadow: 0 12px 26px -12px rgba(224,36,46,.9);
}
.hv-badge svg { width: 16px; height: 16px; fill: #fff; }
.hv-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.hv-switch button { padding: 8px 15px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: rgba(255,255,255,.85); font-weight: 800; font-size: 14px; }
.hv-switch button[aria-pressed="true"] { background: #fff; color: #111; }
.hv-switch button:focus-visible { outline: 3px solid #F0CC78; outline-offset: 2px; }
.hv-switch [lang="bo"] { font-family: 'Noto Serif Tibetan', serif; font-size: 1.15em; line-height: 1.2; }
.hero-video .yt-card { border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.hero-video .yt-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.hero-video .yt-play svg { width: 40px; height: 40px; }
.hv-note { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(230,236,255,.78); text-align: left; }
.hv-note a { color: #FFD98A; font-weight: 700; text-decoration: underline; }
@media (max-width: 1023px) { .hero-video { margin: 8px auto 0; } .hv-head { justify-content: center; } .hv-note { text-align: center; } }
html:not(.dark) .hv-switch { background: #EEF2FB; border-color: rgba(11,18,48,.22); }
html:not(.dark) .hv-switch button { color: #0B1230; }
html:not(.dark) .hv-switch button[aria-pressed="true"] { background: #0B1230; color: #fff; }
html:not(.dark) .hv-note { color: #38425E; }
html:not(.dark) .hv-note a { color: #0A45D6; }

/* red "Watch training video" button on the /software card */
.dk-btn-video { background: #E0242E !important; border-color: #E0242E !important; color: #fff !important; }
.dk-btn-video:hover { background: #C21822 !important; }

/* numbered "red Accessibility message" fix for the Mac install steps */
.mac-fix { margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: rgba(240,204,120,.1); border: 1.5px solid rgba(240,204,120,.45); text-align: left; }
.mac-fix h4 { font-family: inherit; font-size: 18px; line-height: 1.3; font-weight: 800; color: #FFD98A; }
.mac-fix p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: rgba(230,236,255,.85); }
.mac-fix ol, .mac-fix-list { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: fix; }
.mac-fix li, .mac-fix-list li { position: relative; counter-increment: fix; padding: 5px 0 5px 38px; font-size: 15.5px; line-height: 1.55; color: inherit; }
.mac-fix li { color: #EEF2FB; }
.mac-fix li:before, .mac-fix-list li:before { content: counter(fix); position: absolute; left: 0; top: 4px; width: 27px; height: 27px; border-radius: 50%; background: #F0CC78; color: #0B1230; font-weight: 800; font-size: 14px; line-height: 27px; text-align: center; }
html:not(.dark) .mac-fix { background: #FFF8E6; border-color: #8A5A00; }
html:not(.dark) .mac-fix h4 { color: #6B4600; }
html:not(.dark) .mac-fix p { color: #38425E; }
html:not(.dark) .mac-fix li { color: #10172E; }

/* "No install? Use the portable version" block on the Screen Recorder page and /software */
.portable-box { margin: 32px auto 0; max-width: 64rem; padding: 26px; border-radius: 22px; text-align: left; background: rgba(255,255,255,.04); border: 1.5px solid rgba(240,204,120,.35); color: rgba(230,236,255,.88); }
.portable-box h3 { font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 800; color: #fff; }
.portable-box h4 { margin-top: 16px; font-family: inherit; font-size: 17px; line-height: 1.3; font-weight: 800; color: #FFD98A; }
.portable-box p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; }
.portable-box .portable-good { margin-top: 10px; }
.portable-box .portable-note { margin-top: 10px; font-size: 14.5px; opacity: .85; }
.portable-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 6px; }
.portable-dl { margin-top: 12px; }
.portable-box .mac-fix-list { margin-top: 14px; }
.portable-box .mac-fix-list li { color: inherit; }
.dk .portable-box { margin-top: 24px; }
.portable-grid.portable-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .portable-grid { grid-template-columns: minmax(0, 1fr); } .portable-box { padding: 20px 16px; } }
html:not(.dark) .portable-box { background: #fff; border-color: rgba(11,18,48,.25); color: #38425E; }
html:not(.dark) .portable-box h3 { color: #0B1230; }
html:not(.dark) .portable-box h4 { color: #6B4600; }
html:not(.dark) .portable-box b { color: #10172E; }
