@charset "UTF-8";
/* Page-only additions, built from the kit's variables */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 80px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.grid-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts li b { color: var(--text); font-weight: 500; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }
.download { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; padding: 40px; }
@media (max-width: 560px) { .download { padding: 24px; } }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nav { align-items: center; }
.nav a.nav-dl { padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent); }
.nav a.nav-dl:hover, .nav a.nav-dl[aria-current="page"] { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
@media (max-width: 720px) { .nav a.nav-dl { padding: 6px 12px; order: -1; } }
/* Phones: a menu button (app.js adds .has-toggle); the nav opens as a list under the header. */
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .site-header.has-toggle .container { flex-wrap: wrap; row-gap: 0; }
  .site-header.has-toggle .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; margin-block: 12px;
  }
  .site-header.has-toggle .nav-toggle:hover, .site-header.nav-open .nav-toggle { border-color: var(--accent); }
  .nav-bars, .nav-bars::before, .nav-bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
  .nav-bars { position: relative; }
  .nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
  .nav-bars::before { top: -6px; }
  .nav-bars::after { top: 6px; }
  .nav-open .nav-bars { background: transparent; }
  .nav-open .nav-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header.has-toggle .nav { display: none; }
  .site-header.has-toggle.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%;
    gap: 0; margin: 0; overflow: visible; padding: 4px 0 16px;
  }
  .site-header.nav-open .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-header.nav-open .nav a:hover, .site-header.nav-open .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .site-header.nav-open .nav a.nav-dl { order: 1; margin-top: 16px; padding: 14px; text-align: center; border: 1px solid var(--accent); }
}
.btn-os { gap: 14px; padding: 0 32px; }
.btn-os img { width: 24px; height: 24px; flex: none; }
.btn-windows { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.btn-windows:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg-deep); }
.btn-linux { background: var(--ok); border-color: var(--ok); color: var(--bg-deep); }
.btn-linux:hover { background: color-mix(in srgb, var(--ok) 80%, var(--text)); border-color: color-mix(in srgb, var(--ok) 80%, var(--text)); color: var(--bg-deep); }
.dl > span:not(.brackets) { padding: 8px; }
@media (max-width: 480px) { .btn-os { padding: 0 18px; gap: 10px; font-size: 14px; letter-spacing: 0.14em; } }
@media (max-width: 400px) { .dl-word { display: none; } .btn-os { min-width: 200px; justify-content: flex-start; } }
/* ---- shared pages ---- */
[hidden] { display: none !important; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-footer .container { align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-links nav { display: flex; flex-direction: column; gap: 10px; }
.footer-links .label { margin-bottom: 4px; }
.company { font-style: normal; line-height: 1.6; color: var(--text-3); }
.footer-base { margin-top: 40px; font-size: 13px; }
.footer-base > span { display: block; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.page { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.auth { max-width: 440px; margin: 0 auto; }
.auth .panel { display: flex; flex-direction: column; gap: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check input[aria-invalid="true"] { outline: 1px solid var(--danger); outline-offset: 2px; }
.auth-foot { text-align: center; font-size: 15px; }
.legal { max-width: 62ch; }
.legal h2 { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 48px 0 14px; line-height: 1.4; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--text); font-weight: 500; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc a { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.draft { margin-bottom: 32px; }
a.card h3 { color: var(--text); }
a.card:hover h3 { color: var(--accent); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li { color: var(--text-2); }
.steps li::marker { color: var(--accent); font-weight: 600; }
code.cmd { font-family: var(--mono); font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; padding: 1px 5px; border: 1px solid var(--line); overflow-wrap: anywhere; }

/* ---------- Clips: the profile's grid, the clip page and the player window ----------
   (app/Clips.php, templates/clips-panel.php, templates/clip.php, app.js › clipPlayer) */
.clip-filters { display: flex; flex-direction: column; gap: 0; }
.clip-tabs { margin-bottom: 20px; }
.clip-pick .field { min-width: 180px; }
.clip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.clip-card { min-width: 0; }
.clip-link { display: flex; flex-direction: column; height: 100%; background: var(--bg-raised); border: 1px solid var(--line); border-top: 2px solid transparent; color: inherit; text-decoration: none; }
.clip-link:hover, .clip-link:focus-visible { border-color: var(--line-strong); border-top-color: var(--accent); color: inherit; }
.clip-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.clip-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0B1013; border-bottom: 1px solid var(--line); overflow: hidden; }
.clip-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg-deep) 78%, transparent); border: 1px solid var(--accent); color: var(--accent); }
.clip-link:hover .clip-play { background: var(--accent); color: var(--bg-deep); }
.clip-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: color-mix(in srgb, var(--bg-deep) 85%, transparent); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; color: var(--text); }
.clip-card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.clip-title { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.3; }
.clip-by { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-small); color: var(--text-2); }
.clip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-av { width: 24px; height: 24px; flex: none; }
.clip-av-none { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-raised); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--accent); }
.clip-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.clip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
.clip-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.clip-video { background: #000; border: 1px solid var(--line); }
.clip-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.clip-gone { margin: 0; padding: 48px 24px; text-align: center; color: var(--text-3); }
.clip-info { display: flex; flex-direction: column; gap: 16px; }
.clip-h1 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.clip-owner { display: flex; align-items: center; gap: 14px; }
.clip-owner .clip-av { width: 40px; height: 40px; font-size: 16px; }
.clip-owner .stack { gap: 4px; }
.clip-owner-name { font-size: 18px; font-weight: 600; text-decoration: none; }
.clip-match { margin: 0; }
.clip-match li { grid-template-columns: 110px minmax(0, 1fr); padding: 12px 0; }
.clip-share { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.clip-url { flex: 1 1 260px; }
.clip-url .input { font-size: 14px; }
.clip-delete summary { margin-top: 4px; }
.clip-side { display: flex; flex-direction: column; gap: 16px; padding: 20px; min-width: 0; }
.clip-side-head { display: flex; justify-content: space-between; align-items: baseline; }
.clip-side-head h2 { margin: 0; }
.clip-comment-form { gap: 10px; }
.clip-comment-form textarea { min-height: 84px; }
.clip-signin { margin: 0; }
.clip-none { margin: 0; }
.clip-comments { margin: 0 -20px; }
.clip-comments .fb-comment { padding-left: 20px; padding-right: 20px; }
.clip-comments .fb-body { overflow-wrap: anywhere; }
.clip-comment-acts { align-items: flex-start; }
.clip-del { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.clip-del:hover { color: var(--danger); }
.clip-noplay a { color: var(--accent); }
@media (max-width: 960px) {
  .clip-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .clip-grid { grid-template-columns: minmax(0, 1fr); }
  .clip-side, .clip-info.panel { padding: 18px 16px; }
  .clip-comments { margin: 0 -16px; }
  .clip-comments .fb-comment { padding-left: 16px; padding-right: 16px; }
}

/* The player window (from the profile's grid): the clip page's layout over the page. */
.clip-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 32px var(--gutter);
  background: color-mix(in srgb, #000 82%, transparent); overflow-y: auto; overscroll-behavior: contain; }
.clip-modal[hidden] { display: none; }
.clip-dialog { position: relative; width: 100%; max-width: 1240px; background: var(--bg); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); padding: 24px; }
.clip-dialog:focus { outline: none; }
.clip-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0;
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; z-index: 1; }
.clip-close:hover, .clip-close:focus-visible { border-color: var(--accent); color: var(--accent); }
.clip-dialog .clip-layout { margin-top: 28px; }
.clip-dialog .clip-status { margin: 40px 0; text-align: center; color: var(--text-3); }
body.clip-open { overflow: hidden; }
@media (max-width: 560px) {
  .clip-modal { padding: 0; }
  .clip-dialog { min-height: 100%; padding: 16px; border-left: 0; border-right: 0; }
}
.clip-back { display: inline-block; margin-bottom: 20px; }
.clip-comment-acts .clip-del, .clip-comment-acts summary { line-height: 20px; display: block; }
.clip-wrap { padding: 24px; }
.clip-wrap .pager { margin-top: 20px; }
@media (max-width: 560px) { .clip-wrap { padding: 16px; } }
