/* Sportise Signage – extra's: formulieren van de apps met voorbeeld, slimme selectie en de sjablonenbibliotheek */
.modal.xa-modal { max-width: 1080px; }
.xa-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 42%); gap: 22px; align-items: start; }
.xa-left { min-width: 0; }
.xa-fields { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.xa-fields > .field { margin: 0; }
.xa-fields > .field { flex: 1 1 100%; min-width: 0; }
.xa-fields > .field.half { flex: 1 1 calc(50% - 14px); min-width: 150px; }
.xa-fields > .field.check { flex: 1 1 100%; }
.xa-fields > .hint { flex: 1 1 100%; margin: 4px 0 10px; }
.xa-colors { display: flex; gap: 14px; flex: 1 1 100%; flex-wrap: wrap; }
.xa-colors .field { flex: 1 1 90px; min-width: 90px; }
.xa-colors input[type=color] { width: 100%; height: 38px; padding: 2px; }
.xa-row { display: flex; gap: 8px; } .xa-row input { flex: 1; min-width: 0; }
.xa-places { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; margin: -4px 0 12px; color: var(--muted); font-size: 13px; } .xa-places:empty { display: none; }
.xa-right { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xa-right > strong { font-size: 13px; color: var(--muted); font-weight: 600; }
.xa-prev-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; min-height: 80px; max-height: 62vh; display: flex; justify-content: center; }
.xa-prev-box .spa-prev { border-radius: 0 !important; max-height: 62vh; width: auto !important; max-width: 100%; height: auto; flex: 1 1 auto; }
.xa-note { margin: 2px 0 0; } .hint.warn, .xa-note.warn { color: var(--bad); }
.xs-list { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--hover); display: flex; flex-direction: column; gap: 8px; }
.xs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.xs-item { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px 4px 4px; }
.xs-item .thumb.sm { flex: none; width: 44px; height: 30px; border-radius: 5px; overflow: hidden; }
.xs-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.xs-item small { flex: none; }
.xt { margin: 0 0 22px; }
.xt-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; } .xt-head h2, .xt-next { font-size: 18px; margin: 0; }
.xt-next { margin: 22px 0 0; }
.xt-grid .thumb { position: relative; width: 100%; border: 0; padding: 0; cursor: pointer; display: block; overflow: hidden; background: #0b0a24; }
.xt-grid .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xt-grid .thumb .xt-live { position: absolute !important; inset: 0; width: 100% !important; height: 100%; aspect-ratio: auto !important; border-radius: 0 !important; pointer-events: none; }
.xt-descr { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb .ph.type-clock, .thumb .ph.type-weather, .thumb .ph.type-rss, .thumb .ph.type-countdown, .thumb .ph.type-qr, .thumb .ph.type-youtube, .thumb .ph.type-stream, .thumb .ph.type-capture, .thumb .ph.type-smart { font-size: 26px; }
.thumb.sm .ph.type-clock, .thumb.sm .ph.type-weather, .thumb.sm .ph.type-rss, .thumb.sm .ph.type-countdown, .thumb.sm .ph.type-qr, .thumb.sm .ph.type-youtube, .thumb.sm .ph.type-stream, .thumb.sm .ph.type-capture, .thumb.sm .ph.type-smart { font-size: 16px; }
.thumb .tag.kind-clock, .thumb .tag.kind-weather, .thumb .tag.kind-rss, .thumb .tag.kind-countdown, .thumb .tag.kind-qr { background: #0f6a3c; }
.thumb .tag.kind-youtube, .thumb .tag.kind-stream, .thumb .tag.kind-capture { background: #7a2e8f; }
@media (max-width: 820px) {
  .xa-form { grid-template-columns: 1fr; }
  .xa-right { position: static; order: -1; }
  .xa-prev-box, .xa-prev-box .spa-prev { max-height: 38vh; }
}
