/* Farida site, tutorial videos: the "watch" button, the row of videos on the main page, and the player that
   opens over the page (videos.js). Uses the colours each page defines in :root. */

/* a button next to the steps */
.watch { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 0; padding-block: 7px; padding-inline: 7px 20px; border-radius: 999px;
  background: var(--panel-2); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.watch:hover { background: var(--line); }
.watch .pl { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #10172A; }
.watch .pl svg { width: 18px; height: 18px; transform: translateX(1px); }
.watch small { display: block; color: var(--mist); font-weight: 400; font-size: .84rem; }
.watches { display: flex; flex-wrap: wrap; gap: 0 10px; }

/* the row of videos on the main page */
.vids { padding: 76px 0 0; }
.vids h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; line-height: 1.3; }
.vids p.lead { margin: 0 0 26px; color: var(--mist); max-width: 60ch; }
.reel { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.vcard { display: block; color: var(--ink); text-decoration: none; }
.vcard .th { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.vcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard .pl { position: absolute; bottom: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #10172A; }
.vcard .pl svg { width: 14px; height: 14px; transform: translateX(1px); }
.vcard .dur { position: absolute; bottom: 11px; inset-inline-end: 8px; padding: 0 6px; border-radius: 6px; background: rgba(3, 6, 14, .78); font-size: .76rem; line-height: 1.6; direction: ltr; }
.vcard b { display: block; margin: 8px 2px 0; font-size: .9rem; font-weight: 500; line-height: 1.45; }
.vcard:hover .th { border-color: var(--mist); }
@media (max-width: 900px) {
  .reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel li { flex: none; width: 148px; scroll-snap-align: start; }
}

/* the player over the page */
.vplayer { width: min-content; max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #000; color: var(--ink); }
.vplayer::backdrop { background: rgba(3, 6, 14, .86); }
.vplayer .vp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; padding-inline: 16px 8px; background: var(--panel); }
.vplayer .vp-head b { font-weight: 500; font-size: .96rem; line-height: 1.4; }
.vplayer .vp-close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.vplayer .vp-close svg { width: 18px; height: 18px; }
.vplayer video { display: block; height: min(82vh, 820px, calc((100vw - 20px) * 16 / 9)); width: auto; aspect-ratio: 9 / 16; background: #000; }
