/* round 16: media player in a save */
.md16 { margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #000; }
.md16.none { background: var(--soft, rgba(0,0,0,.05)); padding: 14px; }
.md16.none .md16-i { max-height: 220px; border-radius: 12px; margin-bottom: 10px; }
.md16-v, .md16-i { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.md16.none .md16-i { background: none; }
.md16-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: var(--card, #fff); }
.md16.none .md16-row { padding: 10px 0 0; background: none; }
.md16-bad { display: none; padding: 10px; background: var(--card, #fff); color: var(--muted, #666); margin: 0; }
.md16.bad .md16-bad { display: block; }
.md16.bad .md16-v, .md16.bad .md16-i { display: none; }
/* play mark on covers */
.pl16 { z-index: 3; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(0,0,0,.55); pointer-events: none; }
.pl16::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
/* round 16: page titles on phones, title, then the line under it, then the buttons in their own row */
@media (max-width: 600px) {
  .phead { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
  .phead > .grow { flex: 1 1 100%; min-width: 0; }
  .phead h1 { font-size: 26px; line-height: 1.15; }
  .phead p { font-size: 14px; line-height: 1.4; }
  .phead > :not(.grow) { flex: 1 1 0; min-width: 0; justify-content: center; }
}
/* round 17: tool names over the folders were clipped under "Browse by folder" */
.fd9-row { padding-top: 70px; margin-top: -26px; }
@media (min-width: 700px) { .fd9-row { padding-top: 104px; margin-top: -40px; } }
.fd9-l::after { z-index: 6; }
/* green and grey pills under a folder: never half cut, at most two */
.fd9-tags { max-height: none !important; overflow: visible !important; }
.fd9-tag:nth-child(n+3) { display: none; }
/* logo on white: hide the letter once the real logo has loaded */
.lg9.ok i { visibility: hidden; }
/* flashcards: cards behind sit evenly, same amount left and right */
.dk9:not(.fan) .dk9-c:not(.top):not(.out-l):not(.out-r) {
  --s: calc((var(--k) + mod(var(--k), 2)) / 2);
  --d: calc(1 - 2 * mod(var(--k), 2));
  transform: translateX(calc(var(--s) * 16px * var(--d))) translateY(calc(var(--k) * 5px)) scale(calc(1 - var(--k) * .04)) rotate(calc(var(--s) * 3deg * var(--d)));
}
.dk9:not(.fan) .dk9-c[style*="--k:3"]:not(.top), .dk9:not(.fan) .dk9-c[style*="--k:4"]:not(.top), .dk9:not(.fan) .dk9-c[style*="--k:5"]:not(.top) { opacity: 0; }
