/* 4ALL VIDEO1 (docs\video1.md): the Video Hub (/videos/, assets/js/videos.js) and its part of the team page
   (/account/staff, assets/js/account-videos.js). Only the tokens of site.css: no new colours. */

/* ------------------------------------------------------------ the hub */
/* the side gutter of .container (.section sets it to 0) and one column that never grows past the screen */
.container.vh { padding-left: var(--gutter); padding-right: var(--gutter); }
.vh, .vh-lists { grid-template-columns: minmax(0, 1fr); }
.vh { display: grid; gap: 16px; }
.vh > .loading { margin: 0; }

.vh-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vh-tabs .tab { justify-content: center; width: 100%; min-width: 0; padding-inline: 10px; }

.vh-submit { min-height: 46px; white-space: normal; line-height: 1.3; }
.vh-team { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0; padding: 10px 14px; border: 1px dashed var(--gold-line); border-radius: var(--radius); color: var(--text-2); font-size: .9rem; }

.vh-search { flex: none; width: 100%; min-width: 0; }
.vh-search input[type="search"] { width: 100%; }

.vh-lists { display: grid; gap: 16px; }
.vh-panel .section-title svg { width: 22px; height: 22px; }
.vh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 1.1rem; }
.vh-head .section-title { flex: 1 1 12rem; min-width: 0; margin: 0; }
.vh-year { width: auto; min-width: 9rem; min-height: 40px; }

.vh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 16px; }
.vh-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass-row); transition: border-color .15s ease; }
.vh-card:hover, .vh-card:focus-within { border-color: var(--gold-lo); }

.vh-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.vh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vh-card:hover .vh-thumb img { transform: scale(1.03); }
.vh-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.vh-play svg { width: 48px; height: 48px; padding: 6px; border-radius: 50%; background: var(--glass); }
.vh-card:hover .vh-play, .vh-card:focus-within .vh-play { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vh-thumb img, .vh-play, .vh-card { transition: none; } .vh-card:hover .vh-thumb img { transform: none; } }

.vh-body { display: grid; gap: 8px; padding: 12px 14px 14px; min-width: 0; }
.vh-title { margin: 0; font: 600 .98rem/1.35 var(--sans); color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-title a { color: inherit; text-decoration: none; }
.vh-title a:hover { color: var(--gold-hi); text-decoration: underline; }
.vh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--muted); font-size: .82rem; min-width: 0; }
.vh-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.vh-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.vh-av { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-line); background: var(--bg); }
.vh-date { display: inline-flex; align-items: center; gap: 5px; }
.vh-date svg { width: 15px; height: 15px; }
.vh-report { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 600 .78rem var(--sans); cursor: pointer; }
.vh-report svg { width: 15px; height: 15px; }
.vh-report:hover { color: var(--bad); }
.vh-report:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 4px; }

.vh-empty { margin: 0; padding: 22px 12px; text-align: center; color: var(--muted); }
.vh-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.vh-more .vh-empty { padding: 0; }

/* My videos */
.vh-mine { list-style: none; margin: 0; padding: 0; display: grid; }
.vh-mine > li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--gold-line); }
.vh-mine > li:first-child { border-top: 0; padding-top: 0; }
.vh-mine-body { display: grid; gap: 6px; min-width: 0; }
.vh-thumb-sm { border-radius: var(--radius); border: 1px solid var(--gold-line); }
.vh-thumb-sm .vh-play svg { width: 34px; height: 34px; padding: 4px; }
.vh-reason { margin: 0; color: var(--text-2); font-size: .86rem; overflow-wrap: anywhere; }

.vh-state { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid currentColor; border-radius: 999px; font: 700 .7rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.vh-state.is-waiting { color: var(--warn); }
.vh-state.is-hub { color: var(--ok); }
.vh-state.is-rejected { color: var(--bad); }
.vh-state.is-removed { color: var(--muted); }

/* the dialogs (submit, report) */
.vh-dialog { width: min(34rem, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; color: var(--text); background: #0b0f19; border: 1px solid var(--gold-lo); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.vh-dialog::backdrop { background: rgba(3, 5, 9, .72); }
.vh-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.vh-dialog-head, .vh-dialog-foot { flex: none; }
.vh-dialog-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--gold-line); }
.vh-dialog-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--gold-hi); line-height: 1.25; }
.vh-x { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; padding: 0; border: 1px solid var(--gold-line); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.vh-x:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.vh-x svg { width: 16px; height: 16px; }
.vh-dialog-body { display: grid; gap: 14px; min-height: 0; padding: 16px 18px; overflow: auto; }
.vh-dialog-body .notice { margin: 0; }
.vh-dialog-body input, .vh-dialog-body select, .vh-dialog-body textarea { width: 100%; }
.vh-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--gold-line); }
.vh-report-video { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; align-items: center; }
.vh-report-video .vh-title { -webkit-line-clamp: 3; }
.vh-msg { margin: 0; font-size: .88rem; }
.vh-msg:empty { display: none; }
.vh-msg.ok { color: var(--ok); }
.vh-msg.bad { color: var(--bad); }

@media (max-width: 559px) {
  .vh-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vh-mine > li { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
  .vh-report-video { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .vh-dialog-foot .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------ the team page */
.vs-wrap { max-width: 900px; margin: 0 auto; }
.vs-wrap:not(:empty) { margin-top: 22px; }
.vs .tk-staff-filter { justify-content: flex-start; }
.vs-n { display: inline-block; min-width: 1.4em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-hi); font-size: .74rem; text-align: center; }
.vs-sub { margin-top: -4px; }
.vs-count { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.vs-empty { margin: 0; padding: 22px 12px; text-align: center; color: var(--muted); }
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; }
.vs-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--gold-line); }
.vs-row:first-child { border-top: 0; }
.vs-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--bg); }
.vs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vs-body { display: grid; gap: 8px; min-width: 0; }
.vs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.vs-title { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.vs-watch { display: inline-flex; align-items: center; gap: 5px; color: var(--info); font-size: .84rem; }
.vs-watch svg { width: 16px; height: 16px; }
.vs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--muted); font-size: .82rem; }
.vs-reports { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); }
.vs-reports svg { width: 15px; height: 15px; }
.vs-reason { margin: 0; color: var(--text-2); font-size: .88rem; overflow-wrap: anywhere; white-space: pre-line; }
.vs-act { display: grid; gap: 8px; }
.vs-act .btn-row { margin: 0; }
.vs-reason-in { width: 100%; }
.vs-danger { color: var(--bad); border-color: rgba(239, 107, 91, .45); }
.vs-danger:hover { background: rgba(239, 107, 91, .12); color: var(--bad); }
@media (max-width: 639px) {
  .vs-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vs-thumb { max-width: 16rem; }
}
