/* TOMO video library (/library/). Site colours only: #111 ground, #F5A623 gold,
   #161616 surfaces, #2a2a2a rules. Weight 500 and up, nothing under 12px.
   Written phone first. Classes are prefixed vl-. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #111111;
  color: #d8d8d8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}
a { color: #F5A623; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #F5A623; outline-offset: 3px;
}
[hidden] { display: none !important; }

.vl-main { max-width: 1120px; margin: 0 auto; padding: 0 16px 72px; }

/* ---- hero ---- */
.vl-crumbs { padding-top: 20px; font-size: 14px; color: #888; }
.vl-crumbs a { color: #bbb; text-decoration: none; }
.vl-crumbs a:hover { color: #F5A623; }
.vl-hero { padding: 48px 0 32px; max-width: 760px; }
.vl-hero-sm { padding: 24px 0 24px; }
.vl-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #F5A623; margin-bottom: 12px;
}
.vl-hero h1 {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-weight: 800; color: #fff;
  font-size: clamp(30px, 7vw, 52px); line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.vl-hero-sm h1 { font-size: clamp(28px, 6vw, 44px); }
.vl-lede { font-size: 18px; color: #d0d0d0; margin-bottom: 14px; }
.vl-lede-quiet { color: #9a9a9a; font-size: 16px; }
.vl-meta { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: #888; }

/* ---- section headings ---- */
.vl-main h2 {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-weight: 700; color: #fff; font-size: 22px; line-height: 1.25; margin-bottom: 18px;
}
.vl-count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; font-weight: 600; color: #F5A623; margin-left: 6px; }

/* ---- buttons ---- */
.vl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: #F5A623; color: #111; border: 0; border-radius: 6px;
  font: 700 16px 'Inter', sans-serif; text-decoration: none; cursor: pointer;
}
.vl-btn:hover { background: #ffb83d; }
.vl-btn-quiet { background: transparent; color: #F5A623; border: 1px solid rgba(245,166,35,.5); min-height: 44px; }
.vl-btn-quiet:hover { background: rgba(245,166,35,.1); }
.vl-link { color: #F5A623; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---- video grid and cards ---- */
.vl-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .vl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .vl-grid { grid-template-columns: repeat(3, 1fr); } }
.vl-card {
  background: #161616; border: 1px solid #2a2a2a; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.vl-thumb, .vl-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; background: #000; cursor: pointer; padding: 0;
}
.vl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.vl-thumb:hover img { opacity: 1; }
.vl-play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(17,17,17,.78); border: 2px solid #F5A623;
}
.vl-play::after {
  content: ""; position: absolute; left: 22px; top: 16px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #F5A623;
}
.vl-dur {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,.8); color: #fff; font: 600 12px 'JetBrains Mono', ui-monospace, monospace;
}
.vl-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vl-why {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: #F5A623;
}
.vl-title { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.35; color: #fff; }
.vl-by { font-size: 14px; color: #aaa; }
.vl-by a { color: #ccc; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; }
.vl-by a:hover { color: #F5A623; }
.vl-tags { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #8a8a8a; }
.vl-tags span { color: #444; margin: 0 2px; }
.vl-note { font-size: 14px; color: #b8b8b8; line-height: 1.5; }
.vl-yt {
  margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: #bbb;
  min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start;
}
.vl-yt:hover { color: #F5A623; }

/* ---- position pages ---- */
.vl-filters {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  padding: 14px 0; margin-bottom: 8px; border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.vl-filters label { font-size: 14px; color: #aaa; display: flex; align-items: center; gap: 8px; }
select, input[type="search"] {
  min-height: 44px; padding: 0 12px; border-radius: 6px;
  background: #1a1a1a; color: #eee; border: 1px solid #333;
  font: 500 16px 'Inter', sans-serif;
}
.vl-shown { font-size: 14px; color: #999; }
.vl-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.vl-toc a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid #2a2a2a; border-radius: 999px; color: #ccc; text-decoration: none; font-size: 14px;
}
.vl-toc a:hover { border-color: #F5A623; color: #fff; }
.vl-toc span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #F5A623; }
.vl-group { padding-top: 40px; scroll-margin-top: 72px; }
.vl-more { margin-top: 64px; padding-top: 32px; border-top: 1px solid #222; }
.vl-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.vl-more a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid #2a2a2a; border-radius: 6px; color: #ccc; text-decoration: none; font-size: 14px;
}
.vl-more a:hover { border-color: #F5A623; color: #fff; }

/* ---- the pitch ---- */
.vl-pitch {
  margin: 48px 0 8px; padding: 28px 22px; border-radius: 12px;
  background: #161616; border: 1px solid #2a2a2a; border-left: 3px solid #F5A623;
}
.vl-pitch h2 { font-size: 22px; max-width: 720px; }
.vl-pitch p:not(.vl-eyebrow) { color: #c8c8c8; max-width: 680px; margin-bottom: 20px; }
.vl-pitch-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* ---- hub: demo ---- */
.vl-demo { padding: 32px 22px; border-radius: 12px; background: #161616; border: 1px solid #2a2a2a; }
.vl-demo fieldset { border: 0; margin-bottom: 20px; }
.vl-demo legend { font-size: 15px; font-weight: 600; color: #ddd; margin-bottom: 10px; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-chip { position: relative; }
.vl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vl-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid #333; border-radius: 999px; background: #111; color: #ccc;
  font-size: 15px; cursor: pointer; user-select: none;
}
.vl-chip input:checked + span { background: rgba(245,166,35,.14); border-color: #F5A623; color: #fff; }
.vl-chip input:focus-visible + span { outline: 2px solid #F5A623; outline-offset: 3px; }
.vl-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.vl-demo-out:not(:empty) { margin-top: 28px; }
.vl-demo-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.vl-demo-foot p { color: #bbb; max-width: 680px; }

/* ---- hub: browse tiles ---- */
.vl-browse, .vl-search, .vl-credits { margin-top: 56px; }
.vl-tiles { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .vl-tiles { grid-template-columns: repeat(4, 1fr); } }
.vl-tiles a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 92px; padding: 16px; border-radius: 10px; text-decoration: none;
  background: #161616; border: 1px solid #2a2a2a;
}
.vl-tiles a:hover { border-color: #F5A623; }
.vl-tile-name { color: #fff; font-weight: 600; font-size: 16px; line-height: 1.3; }
.vl-tile-count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #F5A623; }

/* ---- hub: search ---- */
.vl-search-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.vl-search-form > * { min-width: 0; width: 100%; }
.vl-search-form input { grid-column: 1 / -1; }
@media (min-width: 820px) { .vl-search-form { grid-template-columns: 2fr 1fr 1fr 1fr; } .vl-search-form input { grid-column: auto; } }
.vl-search .vl-shown { margin-bottom: 14px; }
.vl-search [data-search-more] { margin-top: 20px; }

/* ---- credits ---- */
.vl-credits p { color: #bbb; max-width: 720px; }
.vl-creators { list-style: none; columns: 1; column-gap: 32px; margin-top: 8px; }
@media (min-width: 620px) { .vl-creators { columns: 2; } }
@media (min-width: 960px) { .vl-creators { columns: 3; } }
.vl-creators li {
  break-inside: avoid; display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #222; font-size: 15px;
}
.vl-creators a { color: #ddd; text-decoration: none; }
.vl-creators a:hover { color: #F5A623; }
.vl-creators span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: #F5A623; }
.vl-back { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
