/* /discord live channel (2026-11-25). Only this page loads it; tokens come from site.css. */
.dc-start, .dc-channel { margin-bottom: var(--s-2); min-width: 0; }
.dc-start-head, .dc-ch-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }
.dc-start-head h2, .dc-ch-head h2 { margin: 0; }

/* Start here: the fast path, numbered (a hidden step is not counted) */
.dc-steps { counter-reset: dcstep; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin: 0 0 var(--s-2); padding: 0; list-style: none; }
.dc-steps li { counter-increment: dcstep; display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
.dc-steps li[hidden] { display: none; }
.dc-steps li::before { content: counter(dcstep); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 0.85rem; background: rgba(58, 155, 255, 0.16); border: 1px solid var(--line-strong); }
.dc-steps .btn { white-space: nowrap; }
.btn.dc-dl { font-size: 1.05rem; padding-inline: var(--s-4); min-height: 52px; background: linear-gradient(180deg, #4f9a5d 0%, #2f7a3e 46%, #23692f 54%, #175a24 100%); border-color: rgba(160, 240, 170, 0.45); }
.btn.dc-dl:hover { background: linear-gradient(180deg, #67b875 0%, #3f9450 46%, #33833f 54%, #276f33 100%); }
.dc-extras { display: flex; flex-wrap: wrap; gap: var(--s-1); margin: 0 0 var(--s-2); }
.btn.dc-extra { min-height: 48px; padding-inline: var(--s-3); }
.dc-pins { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.dc-pin { padding: var(--s-1) var(--s-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: rgba(5, 9, 15, 0.55); min-width: 0; }

/* Channel feed */
.dc-ch-head h2 { display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.dc-hash { color: var(--muted); font-weight: 600; }
.dc-live { color: var(--muted); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.dc-live .dot { width: 8px; height: 8px; }
.dc-live.stale .dot { background: var(--muted); box-shadow: none; }
.dc-feed { list-style: none; margin: 0 calc(-1 * var(--s-1)); padding: 0; max-height: min(62vh, 600px); overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: var(--s-1); border-radius: 10px; transition: background 0.2s var(--ease); }
.dc-msg:hover { background: rgba(58, 155, 255, 0.05); }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); }
.dc-body { min-width: 0; }
.dc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-1); line-height: 1.3; }
.dc-name { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.dc-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: rgba(58, 155, 255, 0.18); color: #bcdcff; }
.dc-time { color: var(--muted); font-size: 0.75rem; }
.dc-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: #d5deea; font-size: 0.95rem; line-height: 1.5; }
.dc-text a, .dc-embed a, .dc-att a { overflow-wrap: anywhere; }
.dc-att { margin-top: 4px; font-size: 0.9rem; }
.dc-att-img { display: inline-block; margin-top: 6px; max-width: 100%; }
.dc-att-img img, .dc-embed img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: 8px; }
.dc-embed { margin-top: 6px; padding: var(--s-1) 12px; border-left: 3px solid var(--blue-deep); border-radius: 6px; background: rgba(5, 9, 15, 0.6); max-width: 520px; min-width: 0; overflow-wrap: anywhere; font-size: 0.88rem; }
.dc-embed-t { font-weight: 700; }
.dc-embed-d { white-space: pre-wrap; color: #b6c4d8; }
.dc-empty { padding: var(--s-3) var(--s-1); text-align: center; }

/* Composer */
.dc-compose { border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-2); }
.dc-gate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.dc-gate p { margin: 0; }
.dc-wait { display: grid; gap: var(--s-1); }
.dc-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.dc-who { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; margin-bottom: var(--s-1); font-size: 0.88rem; color: var(--muted); }
.dc-who img { width: 24px; height: 24px; border-radius: 50%; }
.dc-who b { color: var(--text); }
.dc-link { background: none; border: 0; padding: 4px; font: inherit; color: var(--blue); cursor: pointer; min-height: 32px; }
.dc-link:hover { color: #8cc6ff; }
.dc-note { margin: 0 0 var(--s-1); padding: var(--s-1) var(--s-2); border-radius: 10px; background: rgba(58, 155, 255, 0.1); border: 1px solid var(--line-strong); font-size: 0.88rem; }
.dc-form textarea { display: block; width: 100%; min-height: 64px; max-height: 40vh; resize: vertical; font: inherit; font-size: 1rem; color: var(--text); background: rgba(5, 9, 15, 0.8); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; }
.dc-form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-form-row { display: flex; align-items: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-1); flex-wrap: wrap; }
.dc-form-row .btn { margin-left: auto; }
.dc-err { color: var(--bad); }

@media (max-width: 520px) {
  .dc-steps { display: grid; }
  .dc-steps .btn { width: 100%; white-space: normal; }
  .dc-extras { display: grid; }
  .dc-extras .btn { width: 100%; }
  .dc-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); }
  .dc-msg { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .dc-av { width: 32px; height: 32px; }
  .dc-gate .btn { width: 100%; }
  .dc-feed { max-height: 70vh; }
}

/* ---------- Forum mode (2026-11-25): post list, one post, new post ---------- */
.dc-forum { margin-bottom: var(--s-2); min-width: 0; }
.dc-forum-bar { margin-bottom: var(--s-2); }
.dc-forum-bar:empty { display: none; }
.dc-bar-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-2); flex-wrap: wrap; }
.dc-bar-row .dc-who { margin: 0; }
.dc-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.dc-card { min-width: 0; }
.dc-card-link { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-2); border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 9, 15, 0.55); color: inherit; text-decoration: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease); }
.dc-card-link:hover { border-color: var(--line-strong); background: rgba(58, 155, 255, 0.06); transform: translateY(-1px); color: inherit; }
.dc-card.is-pinned .dc-card-link { border-left: 3px solid var(--gold); }
.dc-card-body { flex: 1 1 auto; min-width: 0; }
.dc-card-thumb { flex: 0 0 224px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-2, #0a0f18); border: 1px solid var(--line); }
.dc-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-card-top, .dc-post-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dc-card-top:empty, .dc-post-top:empty { display: none; }
.dc-card-title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card-ex { color: #b6c4d8; font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.dc-card-meta .dc-name { font-size: 0.86rem; margin-left: -6px; }
.dc-card-av { width: 20px; height: 20px; border-radius: 50%; }
.dc-card-n, .dc-card-media { font-weight: 600; }
.dc-ftag, .dc-flag { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; overflow-wrap: anywhere; background: rgba(58, 155, 255, 0.14); border: 1px solid var(--line-strong); color: #bcdcff; }
.dc-flag { background: rgba(230, 204, 128, 0.12); border-color: rgba(230, 204, 128, 0.4); color: var(--gold); text-transform: uppercase; }

/* one post */
.dc-post { min-width: 0; }
.dc-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-bottom: var(--s-1); font-weight: 700; color: var(--blue); text-decoration: none; }
.dc-back:hover { color: #8cc6ff; }
.dc-post-title { margin: 0 0 var(--s-2); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.dc-opener { padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); min-width: 0; }
.dc-opener .dc-head { align-items: center; gap: 4px 10px; margin-bottom: var(--s-1); }
.dc-opener .dc-av { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2, #0a0f18); }
.dc-opener .dc-text { font-size: 1rem; line-height: 1.65; max-width: 75ch; }
.dc-video { margin-top: var(--s-2); max-width: 960px; }
.dc-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 70vh; background: #000; border: 1px solid var(--line); border-radius: 10px; }
.dc-video-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.dc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: var(--s-2); max-width: 960px; }
.dc-gallery .dc-att-img { display: block; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.dc-gallery .dc-att-img img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform 0.3s var(--ease); }
.dc-gallery .dc-att-img:hover img { transform: scale(1.03); }
.dc-size { color: var(--muted); font-size: 0.8rem; }
.dc-replies-head { margin-top: var(--s-2); }
.dc-replies-h { margin: 0 0 var(--s-1); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dc-feed.dc-replies { max-height: none; overflow: visible; }
.dc-closed { margin: 0; }

/* new post */
.dc-newpost { margin-bottom: var(--s-2); padding: var(--s-2); border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(5, 9, 15, 0.6); }
.dc-np-h { margin: 0 0 var(--s-2); font-size: 1.05rem; overflow-wrap: anywhere; }
.dc-np-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0 var(--s-2); }
.dc-field { display: grid; gap: 6px; margin-bottom: var(--s-2); min-width: 0; }
.dc-field label { font-weight: 700; font-size: 0.88rem; }
.dc-field input, .dc-field select, .dc-field textarea { width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--text); background: rgba(5, 9, 15, 0.8); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; }
.dc-field textarea { min-height: 140px; max-height: 50vh; resize: vertical; line-height: 1.5; }
.dc-field select option { background: #0c121d; color: var(--text); }
.dc-field input:focus-visible, .dc-field select:focus-visible, .dc-field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-field .dc-count { justify-self: end; }
.dc-np-note { margin: 0 0 var(--s-1); }

@media (max-width: 520px) {
  .dc-card-link { flex-direction: column; gap: 12px; padding: 12px; }
  .dc-card-thumb { order: -1; flex: 0 0 auto; width: 100%; }
  .dc-np-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-bar-row .btn, .dc-newpost .dc-form-row .btn { flex: 1 1 auto; }
  .dc-opener .dc-text { font-size: 0.96rem; }
}
