/* Nový web GPM — můj účet (#/me), propojení Steamu (#/link) a galerie klipů v profilu hráče (app-account.js).
   Účet stojí na kostře .mep / .headc / .g3 (jejich tablet a telefon řeší css-m-pugs.css); tady je jen to, co je navíc.
   Předpony: acc- (účet a Steam), clp- (klipy). Hranice jako css-mobile.css: ≤ 1180 · ≤ 900 · ≤ 640; mřížka klipů má
   navíc vlastní 900 / 620 — podle nich se počítá, kolik klipů je vidět (stejná čísla má cols() ve skriptu). */

/* ═════════ účet ═════════ */
.acc .g3 > .card, .acc-linkg > .card { display: flex; flex-direction: column; }      /* tlačítka sedí u spodní hrany, takže karty vedle sebe drží linku */
.acc .g3 > .card > h3, .acc-linkg > .card > h3 { flex: none; }
.acc .acc-lead { font-size: 14.5px; line-height: 1.55; color: var(--mut); }
.acc .acc-chips { gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.acc .acc-out { margin-left: auto; gap: 10px; }
.acc .acc-tags { gap: 8px; margin: 16px 0 20px; flex-wrap: wrap; }
.acc .acc-team { gap: 14px; margin: 16px 0 20px; }
.acc .acc-tname { color: #fff; font: 800 20px/1.15 var(--fb); overflow-wrap: anywhere; }
.acc .acc-tdiv { gap: 7px; margin-top: 7px; } .acc .acc-tdiv img { height: 20px; }
.acc .acc-btns { gap: 10px; flex-wrap: wrap; }
.acc .card > .acc-btns { margin-top: auto; padding-top: 24px; }
.acc .acc-hint { margin: 14px 0 0; color: var(--mut); font-size: 13px; line-height: 1.5; }
.acc .card > .sg + .acc-hint { margin-top: 0; }
.acc-notes { display: grid; gap: 10px; margin-bottom: 20px; } .acc-notes .kf-notebox { margin-bottom: 0; }
.acc .mepug { flex-wrap: wrap; } .acc .mepug .lbl { white-space: nowrap; }      /* karta PUGs: popisky se nelámou, tlačítko při nedostatku místa přejde pod čísla */

/* karta Steamu */
.acc-steamb { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.acc-steamb .acc-btns { margin-top: 18px; }
.acc-flag .kf-notebox, .acc-err .kf-notebox { margin-bottom: 16px; font-size: 14px; }
.acc-sid { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 13px 16px; border-radius: 11px; border: 1px solid rgba(61,220,151,.35); background: rgba(61,220,151,.07); }
.acc-tick { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--win); color: #06231a; font: 800 14px/1 var(--fm); }
.acc-sid > div { min-width: 0; }
.acc-sid b { display: block; color: #fff; font-weight: 700; }
.acc-sid code { display: block; margin-top: 5px; color: var(--ink2); font: 500 12.5px/1.25 var(--fm); letter-spacing: .08em; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* stránka /link */
.acc-linkp .acc-intro { max-width: 860px; }
.acc-linkg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.acc-steps li { display: flex; align-items: flex-start; gap: 14px; }
.acc-steps i { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font: 800 13px/1 var(--fd); font-style: normal; }
.acc-steps li:first-child i { background: var(--grad); color: var(--on); }
.acc-steps b { display: block; color: #fff; font: 700 14.5px/1.3 var(--fb); }
.acc-steps span { display: block; margin-top: 3px; color: var(--mut); font-size: 13.5px; line-height: 1.5; }

/* ═════════ klipy v profilu hráče ═════════ */
.clp-slot:empty { display: none; }
.dt a.pill.cliplink[hidden] { display: none; }
.clp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.clp { display: flex; flex-direction: column; min-width: 0; }
.clp-th { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--acc) 16%, #14151c), #0b0c11 72%); transition: border-color .18s, transform .25s var(--e); }
.clp-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clp-play { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; padding-left: 3px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(8,8,11,.62); box-shadow: 0 0 0 1px rgba(255,255,255,.22); color: #fff; font-size: 14px; line-height: 1; transition: background .18s, color .18s, transform .25s var(--e); }
.clp-th:hover { border-color: color-mix(in srgb, var(--acc) 65%, transparent); }
.clp-th:hover .clp-play { background: var(--grad); color: var(--on); transform: scale(1.08); }
.clp-dur { position: absolute; right: 7px; bottom: 7px; padding: 3px 7px; border-radius: 6px; background: rgba(8,8,11,.78); color: #fff; font: 600 11px/1 var(--fm); font-variant-numeric: tabular-nums; }
.clp-b { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding-top: 10px; }
.clp-t { color: #fff; font: 700 14.5px/1.3 var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-t:hover { color: var(--acc); }
.clp-d { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-top: 4px; color: var(--mut); font: 500 11.5px/1.3 var(--fm); white-space: nowrap; }
.clp-d a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); transition: color .15s; } .clp-d a::before { content: "· "; color: var(--dim); } .clp-d a:hover { color: var(--acc); }
.clp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 11px; }
.clp-acts button, .clp-acts a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; margin: 0; padding: 0 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: var(--ink2); font: 700 11px/1 var(--fd); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, color .15s, background-color .15s; }
.clp-acts button:hover:not(:disabled), .clp-acts a:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.clp-acts button:disabled { opacity: .6; cursor: default; }
.clp-acts .del { border-color: rgba(255,93,108,.4); color: var(--loss); }
.clp-acts .del:hover:not(:disabled) { border-color: rgba(255,93,108,.85); background: rgba(255,93,108,.1); color: var(--loss); }
.clp-acts .del[aria-busy="true"] { position: relative; opacity: 1; }
.clp-acts .del[aria-busy="true"] > span, .clp-acts .del[aria-busy="true"] > svg { visibility: hidden; }
.clp-acts .del[aria-busy="true"] > .kit-spin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.clp-acts .ico svg { display: none; flex: none; }      /* ikona jen na dotykové / úzké obrazovce, viz konec souboru */
.clp-acts .cpy.ok { opacity: 1; border-color: rgba(61,220,151,.5); color: var(--win); }
.clp.busy .clp-th { opacity: .45; pointer-events: none; }
.clp-card .clp-more { margin-top: 8px; }
/* prázdno, chyba, načítání — jen pro majitele profilu */
.clp-empty b { display: block; color: #fff; font: 700 15.5px/1.35 var(--fb); }
.clp-empty p { margin: 6px 0 0; color: var(--mut); font-size: 14px; line-height: 1.5; }
.clp-empty .btn { margin-top: 16px; }
.clp-empty.bad b { color: var(--loss); }
.clp-sk { border-color: transparent; background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.clp-only .dnote > span { color: var(--acc); }
.clp-back { justify-content: center; flex-wrap: wrap; }
/* potvrzení smazání: co přesně se maže */
.clp-cf { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.clp-cf img, .clp-cf > span { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 7px; object-fit: cover; background: #0b0c11; }
.clp-cf > span { display: grid; place-items: center; color: var(--mut); font-size: 15px; }
.clp-cf > div { min-width: 0; }
.clp-cf b { display: block; color: #fff; font: 700 14.5px/1.3 var(--fb); overflow-wrap: anywhere; }
.clp-cf i { display: block; margin-top: 4px; color: var(--mut); font: 500 11.5px/1.3 var(--fm); font-style: normal; }

/* ═════════ tablet a telefon ═════════ */
@media (max-width: 1180px) {
  .acc .card > .acc-btns { padding-top: 20px; }
}
@media (max-width: 900px) {
  .acc-linkg { grid-template-columns: minmax(0, 1fr); }
  .acc .acc-out { flex: none; }
}
@media (max-width: 899px) { .clp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .acc .acc-btns .btn { flex: 1 1 auto; justify-content: center; }
  .acc .acc-btns .btn:not(.sm) { height: 46px; }
  .acc .acc-hint { font-size: 13px; }
  .acc .acc-team { margin: 14px 0 16px; }
  .acc-sid { padding: 12px 14px; gap: 12px; }
  .acc-sid code { font-size: 12px; letter-spacing: .05em; }
  .acc-linkp .acc-intro { font-size: 15px; line-height: 1.55; }
  .acc-linkg { gap: 12px; }
  .clp-only .clp-back .btn { flex: 1 1 auto; justify-content: center; }
  .clp-cf img, .clp-cf > span { width: 88px; }
}
@media (max-width: 619px) {
  .clp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .clp-t { font-size: 14px; }
  .clp-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 12px; }
}
/* Tři textová tlačítka se do dlaždice vejdou jen na plné šířce stránky. Pod 1340 px a na dotyku je proto řada jiná:
   „Copy link“ se roztáhne, Download a Delete jsou čtvercová tlačítka s ikonou (text v nich zůstává pro čtečky obrazovky). */
@media (pointer: coarse), (max-width: 1340px) {
  .clp-acts { flex-wrap: nowrap; }
  .clp-acts .cpy { flex: 1 1 auto; min-width: 0; }
  .clp-acts .ico { position: relative; flex: none; width: 34px; padding: 0; }
  .clp-acts .ico svg { display: block; }
  .clp-acts .ico span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* dotyk: tlačítka u klipu dost velká na prst */
@media (pointer: coarse), (max-width: 900px) {
  .clp-acts button, .clp-acts a { height: 40px; padding: 0 12px; font-size: 11.5px; }
  .clp-acts .ico { width: 40px; padding: 0; }
  .clp-card .clp-more { padding: 14px 0 6px; }
}
@media (max-width: 619px) {
  .clp-acts .cpy { padding: 0 4px; font-size: 10.5px; font-stretch: 96%; letter-spacing: .04em; }
}
@media (max-width: 389px) {
  .clp-acts .cpy .clp-w { display: none; }      /* nejužší telefony: jen „Copy“ */
}
@media (max-width: 640px) {
  .acc .acc-lead { font-size: 14px; line-height: 1.5; }
}
@media (hover: none) {
  .clp-th:hover .clp-play { transform: none; }
}
