/* The content page (views/media.templ, media.js) on Daybook's tokens: video streaming on a gym's own website, short
   clips and full classes. Every section is one centred column: its heading over its words, then its pictures. The
   videos page to try sits in a black-framed laptop window or a phone under one bar of tools; then short and long, the
   owner's library, and the page kit's cards. The heading and the business-name field are the feature pages' kit
   (feature.css). The gym's colour is a Daybook field (vermilion, as on the website page). Inter Tight only; type in the
   frames keeps a 15px floor; every word sits on a ground, a card or a chip, none on a photograph; no drawing moves. */

.ct-page p {
  margin: 0;
}
.ct-icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}
/* every picture fills its box */
:is(.ct-tile__pic, .ct-feat__pic, .ct-lock__blur, .ct-stage__back, .ct-next__pic, .ct-lib__mosaic > span, .ct-up__pic, .ct-mini__tile,
  .ct-ig__img, .ct-tv__pic, .ct-tv__vpic) > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- the sections' heads: centred, the heading over its
   words; the page kit's cards follow suit */
.ct-head,
.ct-page .pg-cards > h2 {
  display: grid;
  justify-items: center;
  gap: var(--spacing-db-card);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.ct-head p {
  max-width: 34em;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- the videos page to try
   One bar of tools as wide as the frame (what the viewer sees, who is watching, on what), so nothing moves under the
   pointer when the frame changes shape under it */
.ct-try {
  padding-bottom: var(--spacing-db-section);
}
.ct-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.ct-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  box-sizing: border-box;
  width: min(1080px, 100%);
}
.ct-say {
  flex: 1 1 18rem;
  min-width: 0;
  color: var(--db-fg-3);
  font: 400 0.9375rem/1.35 var(--font-db);
}
.ct-screens label {
  gap: 6px;
}
.ct-screens .ct-icon {
  width: 18px;
  height: 18px;
}
/* on a phone the gym's site is in a phone already: no screen to pick */
@media (max-width: 767px) {
  .ct-screens {
    display: none;
  }
}

.ct-site {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(1080px, 100%);
  height: min(680px, 82svh);
  overflow: hidden;
  border: 6px solid var(--db-fg);
  border-radius: 18px;
  background: var(--db-bg);
  box-shadow: var(--shadow-db-float);
  color: var(--db-fg);
  container-type: inline-size;
}
.ct-site[data-device="phone"] {
  width: min(360px, 100%);
  height: min(720px, 86svh);
  border-width: 10px;
  border-radius: 50px;
}
/* the phone's status bar and its island; the laptop's window bar and its address */
.ct-status {
  position: relative;
  display: none;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 4px 20px 0 30px;
  background: var(--db-raised);
  font: 600 15px/1 var(--font-db);
}
.ct-status svg {
  width: min(58px, 24%);
  height: 12px;
  fill: currentColor;
}
.ct-status::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: min(80px, 30%);
  height: 24px;
  border-radius: 20px;
  background: var(--db-fg);
  translate: -50% 0;
}
.ct-site[data-device="phone"] .ct-status {
  display: flex;
}
.ct-chrome {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--db-edge);
  background: var(--db-bg-2);
}
.ct-dots {
  display: flex;
  gap: 7px;
}
.ct-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--db-card-3);
}
.ct-url {
  display: flex;
  flex: 0 1 460px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 28px;
  margin: 0 auto;
  padding: 0 12px;
  border-radius: var(--radius-db-full);
  background: var(--db-raised);
  box-shadow: 0 0 0 1px var(--db-edge);
  color: var(--db-fg-2);
  font: 400 15px/1 var(--font-db);
}
.ct-url > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-url .ct-icon {
  width: 14px;
  height: 14px;
}
.ct-site[data-device="phone"] .ct-chrome {
  height: 46px;
  background: var(--db-raised);
}
.ct-site[data-device="phone"] .ct-dots {
  display: none;
}
.ct-site[data-device="phone"] .ct-url {
  flex: 1;
  background: var(--db-card);
  box-shadow: none;
}

/* the gym's site: its bar (its mark and name, its pages, the account) */
.ct-pg {
  flex: 1;
  min-height: 0;
  padding: 0 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.ct-pg::-webkit-scrollbar {
  display: none;
}
.ct-pg__bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 58px;
  margin: 0 -28px 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--db-edge);
  background: var(--db-bg);
}
.ct-pg__logo {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 40%;
  font: 600 16px/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.ct-pg__logo i {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--db-field);
  color: var(--db-field-ink);
  font: 600 14px/1 var(--font-db);
  font-style: normal;
}
.ct-pg__logo span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-pg__nav {
  display: flex;
  flex: 1;
  gap: 18px;
  color: var(--db-fg-3);
  font: 400 15px/1 var(--font-db);
}
.ct-pg__nav [aria-current] {
  color: var(--db-fg);
  font-weight: 500;
  text-decoration: underline 1.5px var(--db-field);
  text-underline-offset: 6px;
}
.ct-pg__acct {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ct-pg__acct > .ct-icon {
  display: none;
  width: 22px;
  height: 22px;
}
.ct-pg__in {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-db-full);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--db-fg);
  color: var(--db-fg);
  cursor: pointer;
  font: 500 15px/1 var(--font-db);
}
.ct-pg__me {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--db-field);
  color: var(--db-field-ink);
  cursor: pointer;
  font: 600 15px/1 var(--font-db);
}
.ct-site.is-member .ct-pg__in {
  display: none;
}
.ct-site.is-member .ct-pg__me {
  display: grid;
}
:is(.ct-pg__in, .ct-pg__me, .ct-feat__go, .ct-feat__pic, .ct-tile, .ct-next__v):focus-visible {
  outline: 2px solid var(--db-focus);
  outline-offset: 2px;
}

/* the featured class: its photo wide, and its words on a card beside it */
.ct-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.ct-feat__pic {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--db-card-2);
  cursor: pointer;
}
.ct-feat__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--db-field);
  box-shadow: var(--shadow-db-float);
  color: var(--db-field-ink);
}
.ct-feat__play .ct-icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}
.ct-feat__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  background: var(--db-card);
}
.ct-feat__k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--db-fg-3);
  font: 400 15px/1.2 var(--font-db);
}
.ct-feat__t {
  font: 500 30px/1.05 var(--font-db);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ct-feat__m {
  color: var(--db-fg-3);
  font: 400 15px/1.35 var(--font-db);
}
.ct-feat__go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  height: 44px;
  margin-top: 6px;
  padding: 0 20px 0 14px;
  border: 0;
  border-radius: var(--radius-db-full);
  background: var(--db-field);
  color: var(--db-field-ink);
  cursor: pointer;
  font: 500 15px/1 var(--font-db);
}
.ct-new {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-db-full);
  background: var(--db-field);
  color: var(--db-field-ink);
  font: 500 15px/1 var(--font-db);
}

/* a row: its title, then its videos side by side, scrolling sideways; clips upright, classes wide */
.ct-row {
  margin-bottom: 26px;
}
.ct-row__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font: 400 15px/1.2 var(--font-db);
}
.ct-row__h b {
  font: 500 20px/1.2 var(--font-db);
  letter-spacing: -0.025em;
}
.ct-row__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--db-fg-3);
}
.ct-row__note .ct-icon {
  width: 15px;
  height: 15px;
}
.ct-row__list {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 12px) / 3.4);
  grid-auto-flow: column;
  gap: 12px;
  margin-inline: -28px;
  padding: 0 28px 4px;
  overflow-x: auto;
  scroll-padding-inline: 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ct-row__list::-webkit-scrollbar {
  display: none;
}
.ct-row--short .ct-row__list {
  grid-auto-columns: calc((100% - 5 * 12px) / 5.6);
}
.ct-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
}
.ct-tile__pic {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--db-card-2);
}
.ct-tile--short .ct-tile__pic {
  aspect-ratio: 9 / 16;
}
.ct-tile__pic > img {
  transition: transform 0.6s var(--ease-db), filter 0.5s var(--ease-db);
}
.ct-tile:hover .ct-tile__pic > img {
  transform: scale(1.04);
}
.ct-tile.is-locked .ct-tile__pic > img {
  filter: blur(10px) saturate(0.85);
  transform: scale(1.15);
}
.ct-tile__t {
  overflow: hidden;
  font: 500 15px/1.25 var(--font-db);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-tile__m {
  color: var(--db-fg-3);
  font: 400 15px/1.25 var(--font-db);
}
.ct-tile__pic .ct-new {
  position: absolute;
  top: 8px;
  left: 8px;
}
.ct-len {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: var(--radius-db-full);
  background: color-mix(in srgb, var(--color-black) 86%, transparent);
  color: var(--color-white);
  font: 500 15px/1 var(--font-db);
  font-variant-numeric: tabular-nums;
}
.ct-len .ct-icon {
  width: 13px;
  height: 13px;
}
.ct-tile__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: var(--db-raised);
  box-shadow: var(--shadow-db-float);
  color: var(--db-fg);
}
/* how far Maya got, a bar along the foot of the picture */
.ct-got {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: color-mix(in srgb, var(--color-white) 45%, transparent);
}
.ct-got i {
  display: block;
  width: calc(var(--f) * 100%);
  height: 100%;
  background: var(--db-field);
}
.ct-row--resume .ct-len {
  bottom: 12px;
}
.ct-empty {
  padding: 60px 0;
  color: var(--db-fg-3);
  font: 400 15px/1.4 var(--font-db);
  text-align: center;
}

/* ---------------------------------------------------------------- the player
   on black over the site: a full class wide with Up next beside it, a clip upright with arrows for the next; the
   video over a blurred copy of itself; its bar and its time in the gym's colour; a members' one asks to sign in */
.ct-player {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 20px;
  padding: 56px 28px 24px;
  background: color-mix(in srgb, var(--color-black) 95%, transparent);
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-db) var(--ease-db), visibility 0s var(--duration-db);
}
.ct-player.is-on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
/* a clip: centred, upright, the previous and next arrows on either side of it, level with its middle */
.ct-player--short {
  grid-template-columns: auto auto auto;
  justify-content: center;
  --clip-h: min(440px, 58svh);
  align-items: start;
  align-content: center;
  gap: 20px;
}
.ct-player--short .ct-player__main {
  grid-row: 1;
  grid-column: 2;
  width: calc(var(--clip-h) * 9 / 16);
}
.ct-player--short .ct-steps {
  display: contents;
}
.ct-player--short .ct-step {
  grid-row: 1;
  margin-top: calc(var(--clip-h) / 2 - 22px);
}
.ct-player--short .ct-step[data-go="-1"] {
  grid-column: 1;
}
.ct-player--short .ct-step[data-go="1"] {
  grid-column: 3;
}
.ct-player__x {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-white) 14%, transparent);
  color: var(--color-white);
  cursor: pointer;
}
.ct-player__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
}
.ct-stage-v {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100% - 90px);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-black);
}
.ct-player--short .ct-stage-v {
  width: auto;
  height: var(--clip-h);
  aspect-ratio: 9 / 16;
}
.ct-stage__back {
  position: absolute;
  inset: 0;
}
.ct-stage__back > img {
  filter: blur(24px) brightness(0.6);
  transform: scale(1.2);
}
.ct-stage-v > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ct-player--short .ct-stage-v > video {
  object-fit: cover;
}
.ct-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.ct-player--short .ct-ctrl {
  width: 100%;
}
.ct-pp {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  cursor: pointer;
}
.ct-pp .ct-icon {
  width: 18px;
  height: 18px;
}
.ct-bar {
  position: relative;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-white) 28%, transparent);
}
.ct-bar i {
  position: absolute;
  inset: 0;
  background: var(--db-field);
  transform: scaleX(var(--f, 0));
  transform-origin: 0 50%;
  transition: transform 1s linear;
}
.ct-time {
  flex: none;
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
  font: 400 15px/1 var(--font-db);
  font-variant-numeric: tabular-nums;
}
.ct-player__cap {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 3px;
  font: 400 15px/1.3 var(--font-db);
}
.ct-player--short .ct-player__cap {
  align-self: center;
  text-align: center;
}
.ct-player__cap b {
  font: 500 17px/1.25 var(--font-db);
}
.ct-player__cap span {
  color: color-mix(in srgb, var(--color-white) 74%, transparent);
}
.ct-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
}
.ct-next__k {
  color: color-mix(in srgb, var(--color-white) 74%, transparent);
  font: 400 15px/1.3 var(--font-db);
}
.ct-next__v {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-white) 8%, transparent);
  color: var(--color-white);
  cursor: pointer;
  font: 400 15px/1.3 var(--font-db);
  text-align: left;
}
.ct-next__v:hover {
  background: color-mix(in srgb, var(--color-white) 14%, transparent);
}
.ct-next__pic {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.ct-next__pic .ct-tile__lock {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
}
.ct-next__pic .ct-tile__lock .ct-icon {
  width: 14px;
  height: 14px;
}
.ct-next__v > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ct-next__v b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-next__v b + span {
  color: color-mix(in srgb, var(--color-white) 70%, transparent);
}
.ct-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-white) 14%, transparent);
  color: var(--color-white);
  cursor: pointer;
}
:is(.ct-player__x, .ct-pp, .ct-step, .ct-next__v, .ct-lock__in):focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
.ct-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ct-lock__blur {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ct-lock__blur > img {
  filter: blur(14px) saturate(0.85);
  transform: scale(1.2);
}
.ct-lock__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: min(280px, 84%);
  padding: 16px;
  border-radius: 14px;
  background: var(--db-raised);
  color: var(--db-fg);
  font: 400 15px/1.4 var(--font-db);
  text-align: left;
}
.ct-lock__card b {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 17px/1.2 var(--font-db);
}
.ct-lock__card b .ct-icon {
  width: 18px;
  height: 18px;
  color: var(--db-field-text);
}
.ct-lock__card span {
  color: var(--db-fg-2);
}
.ct-lock__in {
  height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-db-full);
  background: var(--db-field);
  color: var(--db-field-ink);
  cursor: pointer;
  font: 600 15px/1 var(--font-db);
}

/* a narrow frame (a phone, a narrow screen): the phone's bar, the featured class stacked, rows of fewer and larger
   videos, the player stacked with Up next under it */
@container (max-width: 600px) {
  .ct-pg {
    padding: 0 14px 20px;
  }
  .ct-pg__bar {
    gap: 10px;
    height: 52px;
    margin: 0 -14px 16px;
    padding: 0 14px;
  }
  .ct-pg__logo {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .ct-pg__nav {
    display: none;
  }
  .ct-pg__acct > .ct-icon {
    display: block;
  }
  .ct-feat {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .ct-feat__pic {
    border-radius: 14px 14px 0 0;
  }
  .ct-feat__card {
    gap: 6px;
    padding: 16px;
    border-radius: 0 0 14px 14px;
  }
  .ct-feat__t {
    font-size: 24px;
  }
  .ct-row__list {
    grid-auto-columns: 72%;
    margin-inline: -14px;
    padding-inline: 14px;
    scroll-padding-inline: 14px;
  }
  .ct-row--short .ct-row__list {
    grid-auto-columns: 40%;
  }
  .ct-row__note {
    display: none;
  }
  .ct-player {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    padding: 56px 14px 14px;
    overflow-y: auto;
  }
  .ct-player--short {
    grid-template-columns: auto auto auto;
    gap: 8px;
    padding-inline: 8px;
    --clip-h: 340px;
  }
  .ct-player--short .ct-step {
    width: 38px;
    height: 38px;
    margin-top: calc(var(--clip-h) / 2 - 19px);
  }
  .ct-stage-v {
    max-height: none;
  }
}

/* ---------------------------------------------------------------- short or long: one heading, then two pictures, one
   over the other, each captioned along its foot (its name, then a sentence) */
.ct-kinds__pair {
  display: grid;
  justify-items: center;
  gap: 24px;
  margin-top: 48px;
}
.ct-kind {
  box-sizing: border-box;
  width: min(960px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-db-card);
  background: var(--db-card);
}
.ct-kind__art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  box-sizing: border-box;
  padding: 40px 24px;
}
.ct-kind__cap {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 20px 32px 24px;
  border-top: 1px solid var(--db-edge);
}
.ct-kind__cap span {
  max-width: 40em;
  color: var(--db-fg-2);
}
/* short: a follower's feed in a black-framed phone, and the same reel in the site's clips */
.ct-ig {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 270px;
  height: 420px;
  overflow: hidden;
  border: 8px solid var(--db-fg);
  border-radius: 36px;
  background: var(--db-raised);
  box-shadow: var(--shadow-db-float);
  color: var(--db-fg);
}
.ct-ig__top {
  flex: none;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--db-edge);
  font: 600 17px/1 var(--font-db);
}
.ct-ig__feed {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ct-ig__col {
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}
.ct-kinds.is-in .ct-ig__col {
  animation: ct-feed 9s var(--ease-db-in-out) infinite;
}
@keyframes ct-feed {
  0%,
  18% {
    transform: translateY(-50%);
  }
  40%,
  58% {
    transform: translateY(-25%);
  }
  80%,
  100% {
    transform: none;
  }
}
.ct-ig__post {
  display: flex;
  flex: none;
  flex-direction: column;
}
.ct-ig__who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font: 500 15px/1 var(--font-db);
}
.ct-ig__who b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-ig__av {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--db-card-2);
  color: var(--db-fg);
  font: 600 15px/1 var(--font-db);
}
.ct-ig__post.is-ours .ct-ig__av {
  background: var(--db-field);
  color: var(--db-field-ink);
}
.ct-ig__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--db-card-2);
}
.ct-ig__reel {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-black) 86%, transparent);
  color: var(--color-white);
}
.ct-ig__reel .ct-icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}
.ct-ig__acts {
  display: flex;
  gap: 14px;
  padding: 10px 12px 4px;
}
.ct-ig__likes {
  padding: 0 12px 12px;
  font: 500 15px/1.2 var(--font-db);
}
.ct-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: min(340px, 100%);
  padding: 14px;
  border-radius: 18px;
  background: var(--db-bg);
  box-shadow: var(--shadow-db-float);
  color: var(--db-fg);
}
.ct-mini__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--db-edge);
  font: 600 15px/1.2 var(--font-db);
}
.ct-mini__bar b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-mini__bar span {
  color: var(--db-fg-3);
  font-weight: 400;
}
.ct-mini__h {
  font: 500 17px/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.ct-mini__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ct-mini__tile {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: var(--db-card-2);
}
.ct-mini__tile .ct-new {
  position: absolute;
  top: 6px;
  left: 6px;
}
.ct-mini__tile .ct-len {
  right: 6px;
  bottom: 6px;
}
.ct-mini__tile.is-ours {
  box-shadow: 0 0 0 3px var(--db-bg), 0 0 0 5px var(--db-field);
}
.ct-mini__cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 400 15px/1.3 var(--font-db);
}
.ct-mini__cap b {
  font-weight: 500;
}
.ct-mini__cap span {
  color: var(--db-fg-3);
}
/* long: a full class on a dark screen, picked up where it was left, and the next ones from the gym */
.ct-tv {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: min(720px, 100%);
  padding: 16px;
  border: 6px solid var(--db-fg);
  border-radius: 18px;
  background: var(--color-black);
  box-shadow: var(--shadow-db-float);
  color: var(--color-white);
}
.ct-tv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}
.ct-tv__pic {
  position: absolute;
  inset: 0;
}
.ct-tv__resume {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--radius-db-full);
  background: var(--color-white);
  color: var(--color-black);
  font: 500 15px/1 var(--font-db);
}
.ct-tv__ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-tv__cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 400 15px/1.3 var(--font-db);
}
.ct-tv__cap b {
  font: 500 17px/1.25 var(--font-db);
}
.ct-tv__cap span,
.ct-tv__k {
  color: color-mix(in srgb, var(--color-white) 74%, transparent);
}
.ct-tv__k {
  margin-top: 4px;
  font: 400 15px/1.3 var(--font-db);
}
.ct-tv__next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ct-tv__v {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font: 500 15px/1.25 var(--font-db);
}
.ct-tv__v b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-tv__vpic {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.ct-tv__vpic .ct-len {
  right: 6px;
  bottom: 6px;
}
@media (max-width: 767px) {
  .ct-kind__art {
    padding: 24px 12px;
  }
  .ct-kind__cap {
    grid-template-columns: none;
    gap: 6px;
    padding: 16px 20px 20px;
  }
  .ct-tv {
    padding: 10px;
    border-width: 4px;
  }
  .ct-tv__next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ct-tv__v:last-child {
    display: none;
  }
}

/* ---------------------------------------------------------------- the owner's library
   unamotion's own screen, centred: the upload finishing, each collection's mosaic, name, count and length, its two
   Daybook switches; under it, what visitors see */
.ct-lib__grid {
  display: grid;
  gap: 16px;
  width: min(820px, 100%);
  margin: 48px auto 0;
}
.ct-lib__app {
  overflow: hidden;
  border-radius: var(--radius-db-card);
  background: var(--db-raised);
  box-shadow: 0 0 0 1px var(--db-edge), var(--shadow-db-float);
}
.ct-lib__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--db-edge);
  font: 400 15px/1.2 var(--font-db);
}
.ct-lib__top b {
  font: 600 17px/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.ct-lib__top > span:not(.ct-lib__up) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--db-fg-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-lib__up {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-db-full);
  background: var(--db-fg);
  color: var(--db-bg);
  font: 500 15px/1 var(--font-db);
}
.ct-lib__up .ct-icon {
  width: 18px;
  height: 18px;
}
/* the upload: its picture, its name and what it is at, its bar in the gym's colour, then a check */
.ct-up {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(80px, 160px) 44px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--db-edge);
  background: var(--db-bg-2);
}
.ct-up__pic {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}
.ct-up__t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font: 400 15px/1.3 var(--font-db);
}
.ct-up__t b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ct-up__t span {
  color: var(--db-fg-3);
}
.ct-up__bar {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--db-card-2);
}
.ct-up__bar i {
  display: block;
  width: calc(var(--f) * 100%);
  height: 100%;
  background: var(--db-field);
}
.ct-up__n {
  justify-self: end;
  font: 500 15px/1 var(--font-db);
  font-variant-numeric: tabular-nums;
}
.ct-up.is-done .ct-up__n {
  color: var(--db-field-text);
}
.ct-lib__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-lib__list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--db-edge);
}
.ct-lib__list li:first-child {
  border-top: 0;
}
.ct-lib__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--db-card);
}
.ct-lib__mosaic > span {
  position: relative;
  overflow: hidden;
}
.ct-lib__n {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font: 400 15px/1.3 var(--font-db);
}
.ct-lib__n b {
  font: 500 16px/1.25 var(--font-db);
  letter-spacing: -0.015em;
}
.ct-lib__n span {
  color: var(--db-fg-3);
}
.ct-lib__sws {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ct-sw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 7px 0 12px;
  border-radius: var(--radius-db-full);
  background: var(--db-card);
  color: var(--db-fg);
  cursor: pointer;
  font: 400 15px/1 var(--font-db);
  white-space: nowrap;
}
.ct-sw:has(.db-switch:focus-visible) {
  outline: 2px solid var(--db-focus);
  outline-offset: 2px;
}
.ct-lib__pv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  border-radius: var(--radius-db-card);
  background: var(--db-card);
}
.ct-lib__k {
  font: 500 15px/1.2 var(--font-db);
}
.ct-lib__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ct-lib__row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-db-full);
  background: var(--db-raised);
  box-shadow: inset 0 0 0 1px var(--db-edge-2);
  font: 500 15px/1 var(--font-db);
}
.ct-lib__row .ct-icon {
  width: 15px;
  height: 15px;
}
.ct-lib__note {
  flex-basis: 100%;
  color: var(--db-fg-3);
  font: 400 15px/1.4 var(--font-db);
}
@media (max-width: 767px) {
  .ct-lib__list li {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .ct-lib__mosaic {
    width: 56px;
    height: 56px;
  }
  .ct-lib__sws {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .ct-lib__top {
    flex-wrap: wrap;
  }
  .ct-up {
    grid-template-columns: 56px minmax(0, 1fr) 40px;
  }
  .ct-up__bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-tile__pic > img,
  .ct-player,
  .ct-bar i {
    transition: none !important;
  }
  .ct-kinds.is-in .ct-ig__col {
    animation: none !important;
    transform: none;
  }
}
