/* ===== AZGARD: animowana lista kanałów w panelu Discord ===== */
.channels.dc { min-height: 560px; }
.dc-win {
  position: absolute; inset: 0;
  background: oklch(14.5% 0.012 55);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px -30px oklch(4% 0.01 45 / .9);
  overflow: hidden;
  font-family: var(--font-body);
}

/* --- ekran ładowania --- */
.dc-boot {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: oklch(12% 0.012 50);
  transition: opacity .5s var(--ease-out), visibility 0s linear .5s;
}
.dc .dc-boot-mark {
  position: static; inset: auto; max-height: none; object-fit: contain;
  border: 0; box-shadow: none; -webkit-mask-image: none; mask-image: none;
  width: 46px; height: 46px; opacity: .95;
  animation: dc-bob 1.1s var(--ease-out) infinite alternate;
}
@keyframes dc-bob {
  from { transform: translateY(0) scale(1) rotate(-4deg); }
  to   { transform: translateY(-7px) scale(1.06) rotate(4deg); }
}
.dc-boot-txt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.dc-bar { width: 96px; height: 2px; background: var(--border-2); overflow: hidden; }
.dc-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dc.is-booting .dc-bar i { transition: transform 1.5s cubic-bezier(.6,.05,.3,1); transform: scaleX(1); }
.dc.is-ready .dc-boot { opacity: 0; visibility: hidden; }

/* --- serwer --- */
.dc-head {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; color: var(--text);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.dc-ico {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  background: var(--accent); color: oklch(12% 0.012 50);
  font-size: 15px; letter-spacing: 0; border-radius: 7px;
}
.dc-chev { margin-left: auto; color: var(--muted); font-family: var(--font-body); font-size: 12px; }
.dc.is-ready .dc-head { opacity: 1; transform: none; }

.dc-list { list-style: none; margin: 0; padding: 8px 8px 70px; }
.dc-cat, .dc-ch {
  opacity: 0; transform: translateX(-10px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .35s, background-color .35s;
  transition-delay: calc(var(--d, 0) * 45ms + 250ms);
}
.dc.is-ready .dc-cat, .dc.is-ready .dc-ch { opacity: 1; transform: none; }
.dc-cat {
  margin: 12px 4px 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-cat:first-child { margin-top: 2px; }
.dc-ch {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 25px; padding: 0 8px; border-radius: 4px;
  font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.dc-ch span { overflow: hidden; text-overflow: ellipsis; }
.dc-ch b, .dc-ch svg { flex: none; width: 14px; text-align: center; font-weight: 400; color: var(--muted-2); }
.dc-ch svg { height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dc-ch::before {
  content: ""; position: absolute; left: -8px; top: 5px; bottom: 5px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease-out);
}

/* --- podświetlanie sekcji --- */
.dc.is-touring .dc-ch, .dc.is-touring .dc-cat { transition-delay: 0s; }
.dc.is-touring .dc-ch { color: var(--muted-2); }
.dc.is-touring .dc-ch.on { color: var(--text); background: oklch(72% 0.12 75 / .11); }
.dc.is-touring .dc-ch.on b, .dc.is-touring .dc-ch.on svg { color: var(--accent); }
.dc.is-touring .dc-ch.on::before { transform: scaleY(1); }

/* --- podpis sekcji --- */
.dc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 34px 12px 12px;
  background: linear-gradient(transparent, oklch(12% 0.012 50) 38%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.dc.is-touring .dc-cap { opacity: 1; }
.dc-cap-tag { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.dc-cap-txt { display: block; font-size: 13px; line-height: 1.4; color: var(--body-2); }
.dc-cap.swap .dc-cap-tag, .dc-cap.swap .dc-cap-txt { animation: dc-swap .45s var(--ease-out); }
@keyframes dc-swap { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 900px) { .channels.dc { min-height: 0; height: 560px; } }
@media (max-width: 600px) { .channels.dc { width: 100%; height: 560px; } }

@media (prefers-reduced-motion: reduce) {
  .dc-boot { display: none; }
  .dc-head, .dc-cat, .dc-ch { opacity: 1; transform: none; transition: none; }
}
