/* one legible interface family; caption previews retain their chosen fonts. */
@font-face {
  font-family: Rip UI;
  src: url('/ui-fonts/MonaSans-VF.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
body,
body.landing-page #home {
  font-family:
    Rip UI,
    Segoe UI,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea,
body.landing-page #home button,
body.landing-page #home input,
body.landing-page #home select {
  font-family:
    Rip UI,
    Segoe UI,
    sans-serif;
}
.home-tabs a {
  font-size: 13px;
}
.page-sub,
.lib-sub,
.lib-card .preview {
  font-size: 13px;
  line-height: 1.7;
  color: #b9bec8;
}
.lib-card .meta {
  font-size: 11px;
  color: #a0a8b5;
  line-height: 1.6;
}
.lib-card .title {
  font-size: 14px;
  font-weight: 600;
}
.lib-card .actions a,
.lib-card .actions button {
  font-size: 12px;
  min-height: 38px;
}
.section-title,
.field,
.hint {
  letter-spacing: 0.1px;
}
.hint {
  font-size: 12px;
  line-height: 1.65;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.8px;
}
#libGrid {
  grid-template-columns: repeat(auto-fill, minmax(195px, 210px));
  gap: 20px;
  justify-content: start;
}
.lib-card {
  border-radius: 18px;
  padding: 7px;
}
.lib-card .thumb {
  height: 290px;
  aspect-ratio: auto;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.lib-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-card .body {
  padding: 13px 7px 8px;
}
.lib-card .preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-card .actions {
  padding: 0 6px 6px;
  gap: 8px;
}
.library-play {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
  border: 1px solid #ffffff65;
  background: #101218cd;
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 30px;
  padding: 11px 14px;
  font-size: 12px;
  box-shadow: 0 5px 25px #0005;
}
.library-play:hover {
  background: #20232deb;
}
.lib-card .fav {
  z-index: 3;
}
.landing-nav {
  gap: 20px;
}
.landing-nav > [data-start='nav'] {
  flex-shrink: 0;
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 12px;
}
.landing-links {
  flex: 1;
  justify-content: center;
  gap: 16px;
}
.landing-nav-actions {
  margin-left: auto;
}
.landing-nav .account-trigger {
  max-width: 150px;
  border: 1px solid #ffffff26;
  background: #ffffff07;
  border-radius: 24px;
  padding: 11px 16px;
  color: #f1f3f7;
  font-size: 12px;
}
.account-trigger::after {
  content: '⌄';
  margin-left: 9px;
}
.account-dropdown {
  position: fixed;
  right: 26px;
  top: 91px;
  z-index: 100;
  width: 250px;
  background: #191c24;
  border: 1px solid #ffffff20;
  border-radius: 19px;
  box-shadow: 0 18px 60px #0009;
  padding: 9px;
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown a,
.account-dropdown button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  border-radius: 10px;
  color: #e3e7ef;
  text-decoration: none;
  font-size: 13px;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  background: #ffffff0b;
}
.account-dropdown small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #a6b2c8;
  font-size: 11px;
}
.account-dropdown #accountSignOut {
  border-top: 1px solid #ffffff15;
  border-radius: 0;
  margin-top: 5px;
  color: #f1b4b4;
}
.settings-dialog,
.library-player {
  background: #14171e;
  color: #edf0f6;
  border: 1px solid #ffffff28;
  border-radius: 24px;
  padding: 25px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
}
.settings-dialog {
  width: 450px;
}
.settings-dialog h2,
.library-player h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.settings-dialog label {
  display: block;
  margin: 19px 0;
  font-size: 13px;
}
.settings-dialog input,
.settings-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  background: #0c1017;
  border: 1px solid #ffffff2b;
  border-radius: 11px;
  padding: 12px;
  color: white;
  font-size: 14px;
}
.settings-dialog textarea {
  font-family: inherit;
  resize: vertical;
}
.settings-dialog p,
.settings-dialog small {
  font-size: 12px;
  line-height: 1.7;
  color: #b6bfce;
  overflow-wrap: anywhere;
}
.dialog-close {
  float: right;
  background: none;
  border: 0;
  font-size: 25px;
}
.settings-dialog .primary {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
}
.settings-dialog::backdrop,
.library-player::backdrop {
  background: #000c;
  backdrop-filter: blur(7px);
}
.library-player {
  width: 470px;
  overflow: auto;
}
.library-player > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.library-player h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.library-player button {
  font-size: 24px;
  border: 0;
  background: transparent;
}
.library-player video {
  display: block;
  margin: auto;
  max-height: 70dvh;
  width: 100%;
  border-radius: 14px;
  background: #000;
}
.library-player p {
  font-size: 12px;
  color: #bcc5d3;
}
.username-dialog .username-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.username-dialog .username-suggest button {
  background: #1c2130;
  border: 1px solid #ffffff22;
  color: #dfe6f2;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.username-dialog .username-suggest button:hover {
  border-color: #53fc18;
  color: #53fc18;
}
.username-dialog #usernameStatus {
  min-height: 18px;
  font-weight: 600;
}
.username-dialog #usernameStatus.ok {
  color: #53fc18;
}
.username-dialog #usernameStatus.bad {
  color: #ff7a7a;
}
.username-dialog small a {
  color: #d9d9dc;
}
.username-dialog .primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
} /* session 26 username onboarding */
.public-profile {
  margin: 0;
  padding: 35px;
  background: #0e1117;
  color: #eef2f7;
}
.public-profile a {
  color: #d9d9dc;
  text-decoration: none;
}
.public-profile main {
  display: block;
  height: auto;
  min-height: 0;
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 45px;
  border: 1px solid #ffffff22;
  border-radius: 28px;
  background: #191e28;
}
.public-profile h1 {
  font-size: 32px;
  overflow-wrap: anywhere;
}
.public-profile p {
  color: #b0bacb;
}
.profile-avatar {
  border-radius: 50%;
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  margin: auto;
  background: #dddde0;
  color: #1c1c1e;
  font-size: 30px;
}
.lib-card .thumb video {
  object-fit: contain;
  background: #090b0f;
}
#landingAccount.account-trigger {
  max-width: 210px;
}
@media (max-width: 1150px) {
  .landing-links {
    gap: 10px;
  }
  .landing-links a {
    font-size: 11px;
  }
  .landing-links a[data-page] {
    display: none;
  }
  .landing-nav {
    gap: 12px;
  }
  .landing-nav > [data-start='nav'] {
    display: block;
  }
}
@media (max-width: 820px) {
  .landing-nav > [data-start='nav'] {
    font-size: 11px;
    padding: 10px;
  }
  .landing-nav .account-trigger {
    max-width: 110px;
  }
  .account-dropdown {
    top: 86px;
    right: 18px;
  }
}
@media (max-width: 520px) {
  .landing-nav {
    flex-wrap: wrap;
  }
  .landing-nav .landing-brand {
    order: 0;
  }
  .landing-nav-actions {
    order: 1;
  }
  .landing-nav > [data-start='nav'] {
    order: 2;
    flex-basis: 100%;
  }
  .landing-nav .account-trigger {
    max-width: 105px;
    padding: 9px 11px;
  }
  .account-dropdown {
    top: 140px;
  }
  .lib-card .thumb {
    height: 280px;
  }
  #libGrid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 210px));
  }
  .library-player {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  #landingAccount.account-trigger {
    max-width: 110px;
  }
  .landing-nav .landing-brand {
    font-size: 18px;
  }
  .landing-nav-actions {
    gap: 6px;
  }
}

/* CLAUDE 10-04: the clips-ready prompt (notify.js), asked once when a clip job starts. Top right, under the header:
   the bottom belongs to the cookie banner and the toast. */
.ready-ping {
  position: fixed;
  right: 24px;
  top: 80px;
  z-index: 60; /* over #home (fixed, 50) */
  width: min(372px, calc(100vw - 32px));
  padding: 16px;
  background: #111113;
  border: 1px solid #262626;
  border-radius: 12px;
  box-shadow: 0 18px 50px #000a;
  color: #f3f3f3;
  animation: ready-ping-in 180ms ease-out;
}
.ready-ping p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.ready-ping div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ready-ping button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}
@keyframes ready-ping-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ready-ping {
    animation: none;
  }
}
@media (max-width: 520px) {
  .ready-ping {
    right: 16px;
  }
}
