/* Passeio pelos canais (ct-). Depende de community-public.css, que desenha a prévia oficial (.discord-*). */
.ct { --community-discord: #5865f2; position: relative; display: grid; gap: .8rem; min-width: 0; }
.ct-label { position: relative; color: var(--text-secondary); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ct-frame { position: relative; }
.ct-frame .discord-frame { box-shadow: 0 22px 48px rgba(0, 0, 0, .34); opacity: 0; transform: translateY(14px) scale(.98); }
.ct.is-playing .discord-frame { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1); }
.ct-frame .discord-titlebar { padding: .5rem .75rem; }
.ct-frame .discord-channels { position: relative; padding: .3rem .4rem .55rem; }
.ct-frame .discord-category { padding: .5rem .55rem .15rem; font-size: .64rem; }
.ct-frame .discord-channel { position: relative; z-index: 1; min-height: 27px; padding: .15rem .55rem; font-size: .82rem; cursor: default; transition: color .25s ease; }
.ct-frame .discord-category, .ct-frame .discord-channel { opacity: 0; transform: translateX(-10px); }
.ct.is-playing .discord-category, .ct.is-playing .discord-channel { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1), color .25s ease; transition-delay: calc(var(--i, 0) * 38ms + 220ms), calc(var(--i, 0) * 38ms + 220ms), 0s; }
.ct-frame .discord-emoji { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ct-frame .discord-channel.is-spot { color: #fff; }
.ct-frame .discord-channel.is-spot .discord-emoji { transform: scale(1.28); }
.ct-frame .discord-channel.is-spot .discord-type-icon { color: #c9cdfb; }
.ct-spot { position: absolute; top: 0; right: .4rem; left: .4rem; z-index: 0; height: 27px; border-radius: 6px; background: linear-gradient(90deg, rgba(88, 101, 242, .5), rgba(88, 101, 242, .22)); box-shadow: 0 0 0 1px rgba(88, 101, 242, .6), 0 8px 26px rgba(88, 101, 242, .38); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.25, .5, 1), opacity .3s ease; pointer-events: none; }
.ct-spot.is-on { opacity: 1; }
/* O detalhe do destaque muda com o tipo do canal: digitando, tópicos ou voz. */
.ct-spot-fx { position: absolute; top: 50%; right: .6rem; display: flex; gap: 3px; align-items: center; height: 12px; transform: translateY(-50%); }
.ct-spot-fx i { width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .9; animation: ct-typing 1.1s ease-in-out infinite; }
.ct-spot-fx i:nth-child(2) { animation-delay: .15s; }
.ct-spot-fx i:nth-child(3) { animation-delay: .3s; }
.ct-spot[data-kind="voice"] .ct-spot-fx i { width: 3px; height: 100%; border-radius: 2px; animation-name: ct-eq; animation-duration: .8s; }
.ct-spot[data-kind="forum"] .ct-spot-fx { flex-direction: column; gap: 2px; align-items: flex-end; }
.ct-spot[data-kind="forum"] .ct-spot-fx i { width: 14px; height: 2px; border-radius: 2px; animation-name: ct-lines; animation-duration: 1.4s; }
.ct-spot[data-kind="forum"] .ct-spot-fx i:nth-child(2) { width: 10px; }
.ct-spot[data-kind="forum"] .ct-spot-fx i:nth-child(3) { width: 12px; }
@keyframes ct-typing { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes ct-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes ct-lines { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.ct-caption { position: relative; display: grid; gap: .15rem; min-height: 5.2rem; padding: .75rem .85rem .95rem; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-bg); }
.ct-caption[hidden] { display: none; }
.ct-caption strong { color: var(--text-primary); font-size: .95rem; }
.ct-caption > span:not(.ct-progress) { color: var(--text-secondary); font-size: .84rem; line-height: 1.45; }
.ct-caption.is-swapping > strong, .ct-caption.is-swapping > span:not(.ct-progress) { animation: ct-caption .4s cubic-bezier(.2, .9, .3, 1) 1; }
@keyframes ct-caption { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ct-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: color-mix(in srgb, var(--text-primary) 8%, transparent); }
.ct-progress i { display: block; width: 0; height: 100%; background: var(--community-discord); }
.ct-progress i.is-running { animation: ct-progress var(--ct-dwell, 2600ms) linear 1 forwards; }
.ct.is-paused .ct-progress i { animation-play-state: paused; }
@keyframes ct-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .ct-frame .discord-frame, .ct-frame .discord-category, .ct-frame .discord-channel { opacity: 1; transform: none; transition: none; }
  .ct-spot { transition: none; }
  .ct-spot-fx i { animation: none; }
  .ct-progress { display: none; }
}
