/* Kenoma Engine — библиотека ресурсов, каталог, покупки, выплаты (assets.js). Токены и стиль — из app.css. */
.asub { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.asub a { color: var(--tx3); padding: 4px 0; border-bottom: 1px solid transparent; }
.asub a:hover { color: var(--tx); }
.asub a.on { color: var(--cyan); border-bottom-color: var(--cyan); }
.atabs { margin: 26px 0 18px; }
.atabs button { flex: 0 1 auto; padding: 12px 18px; }
.afilter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: stretch; margin: 18px 0; }
.afilter .seg { flex-wrap: wrap; }
.afilter > .in { height: 42px; flex: 1 1 220px; width: auto; font-size: 14px; }

/* Сетка карточек */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.acard { display: flex; flex-direction: column; border: 1px solid var(--ln); background: var(--panel); color: var(--tx); min-width: 0; }
a.acard:hover { color: var(--tx); border-color: var(--cyan); }
.acard .ab { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.acard .k { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--tx3); text-transform: uppercase; }
.acard b { font-weight: 800; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.acard .meta, .ameta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--tx3); text-transform: uppercase; margin-top: auto; }
.ameta { font-size: 12px; margin-top: 0; padding-bottom: 6px; }
.aprice { color: var(--cyan); }
.aprice.big { font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; text-transform: uppercase; }

/* Превью с прокруткой кадров strip при наведении */
.athumb { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #13202a, var(--bg) 75%); overflow: hidden; border-bottom: 1px solid var(--ln); }
.athumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.athumb .strip { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; }
.athumb.spin .strip { opacity: 1; }
.athumb.spin img { opacity: 0; }
.noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; color: var(--tx4); letter-spacing: .2em; }
.athumb.mini { width: 56px; height: 56px; flex: none; border: 1px solid var(--ln); }
.athumb.mini .noimg { font-size: 10px; letter-spacing: .1em; }
.athumb.mid { width: 140px; flex: none; border: 1px solid var(--ln); }

/* Загрузка */
.adrop { margin-top: 4px; border: 1px dashed var(--ln2); background: var(--bg2); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; cursor: pointer; }
.adrop:hover, .adrop.over { border-color: var(--cyan); background: rgba(61, 242, 255, .05); }
.adrop .t { flex: 1 1 320px; min-width: 0; }
.adrop .t b { display: block; font-weight: 900; font-style: italic; font-size: 24px; text-transform: uppercase; }
.adrop .t span { font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.adrop .o { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; cursor: default; }
.uplist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.upl { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(80px, 1fr) minmax(120px, auto); gap: 6px 16px; align-items: center; padding: 10px 14px; border: 1px solid var(--ln); background: var(--panel); }
.upl .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; }
.upl .k { font-family: var(--mono); font-size: 11px; color: var(--tx3); text-transform: uppercase; }
.upl .s { font-size: 12px; text-align: right; }

/* Карточка ресурса */
.alay { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; margin-top: 22px; }
.aleft { flex: 999 1 560px; min-width: 0; }
.aright { flex: 1 1 400px; min-width: 0; }
.aright .atabs { margin-top: 0; overflow-x: auto; }
.aright .atabs button { padding: 12px 12px; white-space: nowrap; }
.v3d { position: relative; aspect-ratio: 4 / 3; max-height: 72vh; width: 100%; background: var(--bg2); border: 1px solid var(--ln); overflow: hidden; touch-action: none; }
.v3d canvas { display: block; }
.vmsg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--tx3); }
.vbar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 12px 0 0; }
.vbar .check { font-size: 14px; }
.vtools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wave { position: relative; border: 1px solid var(--ln); background: var(--bg2); min-height: 180px; }
.wave img { width: 100%; display: block; }
.bigprev { position: relative; aspect-ratio: 1; max-height: 72vh; margin: 0 auto; border: 1px solid var(--ln); background: radial-gradient(circle at 50% 40%, #13202a, var(--bg) 75%); overflow: hidden; }
.bigprev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bigprev .strip { position: absolute; inset: 0; background-repeat: no-repeat; background-color: var(--bg); }
input[type=range].spin { accent-color: var(--cyan); width: 100%; }
.sform .check { margin-top: 6px; }
.sform .fgrid { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.sform .in { height: 42px; font-size: 14px; }
.sform textarea.in { height: auto; }
.sform .tbl td .cell { min-width: 64px; }
.cpick { width: 44px; height: 30px; border: 1px solid var(--ln2); background: var(--bg); padding: 2px; cursor: pointer; }
.vlist { display: flex; flex-direction: column; gap: 8px; }
.vlist .line { padding: 12px 16px; }
.vlog { flex-basis: 100%; }
.vlog summary { list-style: none; }
.vlog summary::-webkit-details-marker { display: none; }
.vlog pre.log { max-height: 300px; }
.earn { min-height: 1em; }
.apane > .hud.box + .hud.box { margin-top: 12px; }

/* Модерация, проект */
.mrow { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-start; }
.mrow .mi { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ptbl td { vertical-align: middle; }
.pick { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 46vh; overflow: auto; }
.pk { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--ln); cursor: pointer; }
.pk:hover { border-color: var(--ln2); }
.pk:has(input:checked) { border-color: var(--cyan); background: rgba(61, 242, 255, .06); }
.pk input { accent-color: var(--cyan); }
.pk span { min-width: 0; }
.pk b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pk i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.pk[hidden] { display: none; }

@media (max-width: 560px) {
  .adrop { padding: 18px 16px; }
  .upl { grid-template-columns: minmax(0, 1fr) auto; }
  .upl .prog { grid-column: 1 / -1; }
  .aprice.big { font-size: 36px; }
  .athumb.mid { width: 100%; }
  .agrid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; }
  .acard b { font-size: 15px; }
}
[hidden] { display: none !important; }
.aleft .specs, .aright .specs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.aright .atabs { flex-wrap: wrap; overflow: visible; }
