/* Video lessons page (1 Nov 2026): builds on ../css/hub.css (colours, buttons, header, footer) */

/* hero */
.vhero { padding: 34px 26px; }
.vhero-in { position: relative; z-index: 1; text-align: center; }
.vhero .brandline .ic { width: 30px; height: 30px; color: #ff4e45; }
.vhero h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 700; }
.vhero .bio { margin-left: auto; margin-right: auto; }
.vhero .chips, .vhero .hero-cta { justify-content: center; }
.vhero .chips li { padding-left: 12px; }
@media (min-width: 820px) { .vhero { padding: 48px 56px; } }

/* search and filters */
.vtools { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 26px 0 8px; padding: 10px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.vsearch { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
.vsearch:focus-within { border-color: var(--teal); }
.vsearch .ic { color: var(--ink-2); width: 20px; height: 20px; }
.vsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; min-height: 44px; }
.vseg { display: flex; flex-wrap: wrap; gap: 6px; }
.vseg button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .92rem; }
.vseg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vseg button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); } }

/* a course */
#lessons { outline: none; }
.vcourse { margin-top: 30px; padding: 22px 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.vcourse::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tc); }
.vc-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vc-head h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); color: color-mix(in srgb, var(--tc) 75%, var(--ink)); }
.vc-head p { margin: 4px 0 0; color: var(--ink-2); }
.vc-head .btn { text-decoration: none; }
.vmod { margin-top: 20px; }
.vmod h3 { font-size: 1.08rem; margin: 0 2px 12px; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.vcard { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; transition: transform .16s, box-shadow .16s, border-color .16s; }
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--tc) 55%, var(--line)); }
.vcard:active { transform: scale(.985); }
.vcard.full { border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #0f2a44, color-mix(in srgb, var(--tc) 70%, #0f2a44)); }
.vthumb img, .sthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb img.broken, .sthumb img.broken { visibility: hidden; }
.vplay { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 53, 43, .92); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .16s; }
.vplay .ic { width: 24px; height: 24px; margin-left: 3px; }
.vcard:hover .vplay, .scard:hover .vplay { transform: scale(1.1); }
.vdur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; font-weight: 600; }
.vmeta { display: grid; gap: 4px; padding: 12px 14px 14px; }
.vcode, .vkind { justify-self: start; font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 15%, var(--card)); color: color-mix(in srgb, var(--tc) 80%, var(--ink)); }
.vkind { background: color-mix(in srgb, var(--gold) 22%, var(--card)); color: color-mix(in srgb, #8a6500 80%, var(--ink)); }
.vtitle { font-weight: 600; line-height: 1.3; }

/* shorts */
.sgrid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 160px), 1fr)); }
.scard { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); text-align: left; transition: transform .16s, box-shadow .16s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.sthumb { position: relative; display: block; aspect-ratio: 9 / 16; background: linear-gradient(160deg, #0f2a44, #6b1f1a); }
.stitle { padding: 10px 12px 12px; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.vnewest { margin-top: 16px; width: 100%; }
.vnote { margin: 22px 4px 0; font-size: .86rem; text-align: center; }

/* the player */
.overlay.vmodal { place-items: center; padding: 12px; background: rgba(4, 10, 18, .84); }
.vplayer { width: min(100%, 960px); background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: rise .22s ease-out; }
.vplayer.short { width: min(100%, 400px); }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; }
.vp-head b { font-size: 1rem; line-height: 1.3; }
.vp-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vplayer.short .vp-frame { aspect-ratio: 9 / 16; max-height: calc(100dvh - 150px); margin: 0 auto; }
.vp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 12px; }
.vp-foot .btn { text-decoration: none; }
.vp-foot .ic, .vc-head .btn .ic { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .vtools { top: 60px; }
  .vcourse { padding: 18px 12px; border-radius: 22px; }
  .vp-foot .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .vcard, .scard, .vplay, .vplayer { transition: none; animation: none; } }
