.channels-section { background: radial-gradient(ellipse at 0 90%,#284e4320,transparent 50%),#111b1e; }
.channels-heading { margin-bottom: 48px; }
.channels-heading h2 { text-wrap: balance; }
.channels-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.5vw,18px); }
.channel-card { display: grid; grid-template-rows: auto auto auto 1fr; min-width: 0; padding: clamp(16px,2vw,24px); border: 1px solid #b3d6ca30; border-radius: 12px; background: #15212580; }
.channel-index { display: block; color: #98b1a7; font: 10px var(--display); letter-spacing: .06em; overflow-wrap: anywhere; }
.channel-card h3 { margin: 12px 0 18px; font-size: 20px; font-weight: 550; line-height: 1.4; color: #e1ece8; overflow-wrap: anywhere; }
.channel-qr-slot { width: 100%; max-width: 220px; margin-inline: auto; aspect-ratio: 1; }
.qr-placeholder { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 4px; border: 1px dashed #8eb4a946; border-radius: 5px; background: #a4edda03; color: #a1b9af; text-align: center; }
.qr-placeholder>span { font: 300 32px var(--display); color: #8fb8a85c; }
.qr-placeholder>p { margin: 0; font-size: 12px; line-height: 1.4; }
.channel-description { margin: 14px 0 0; color: #a9bfb6; font-size: 13px; line-height: 1.65; }
.channel-qr { display: block; width: 100%; height: 100%; padding: clamp(6px,1vw,12px); border: 1px solid #e2eee9; border-radius: 5px; background: #fff; transition: border-color .2s,transform .2s; }
.channel-qr:focus-visible { outline-offset: 3px; }
@media (hover: hover) {
  .channel-qr:hover { border-color: var(--mint); transform: translateY(-2px); }
}
.channel-qr>img, .channel-qr>svg { display: block; width: 100%; height: 100%; object-fit: contain; overflow: hidden; }
.channel-qr image, .channel-dialog-qr image { image-rendering: pixelated; }
.channel-dialog { width: min(calc(100% - 32px),460px); max-height: calc(100% - 32px); max-height: min(calc(100% - 32px),90svh); margin: auto; padding: 0; border: 1px solid #abc6bf40; border-radius: 14px; background: #142024; color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.channel-dialog::backdrop { background: #060b13dc; backdrop-filter: blur(10px); }
body.channel-dialog-open { overflow: hidden; }
.channel-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.channel-dialog-header h2 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
.channel-dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #a4edda08; color: #c4d8ce; font-size: 13px; }
.channel-dialog-close:is(:hover,:focus-visible) { border-color: var(--mint); }
.channel-dialog-close:focus-visible { outline-offset: 2px; }
.channel-dialog-close span { color: var(--mint); font-size: 26px; line-height: 1; }
.channel-dialog-qr { width: min(calc(100% - 40px),300px); width: min(calc(100% - 40px),300px,55svh); aspect-ratio: 1; margin: 22px auto 0; padding: 12px; border-radius: 5px; background: #fff; }
.channel-dialog-qr>img, .channel-dialog-qr>svg { display: block; width: 100%; height: 100%; object-fit: contain; overflow: hidden; }
.channel-dialog>p { margin: 16px 20px 22px; color: #aec6bb; font-size: 14px; line-height: 1.65; text-align: center; }
@media (max-width: 820px) {
  .channels-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .channels-heading { margin-bottom: 24px; }
  .channels-grid { gap: 10px; }
  .channel-card { padding: clamp(10px,3vw,16px); border-radius: 9px; }
  .channel-index { line-height: 1.4; }
  .channel-card h3 { margin: 8px 0 12px; font-size: clamp(15px,4.3vw,18px); }
  .channel-description { margin-top: 10px; font-size: 12px; }
  .channel-dialog-header { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .channel-qr { transition: none; }
  .channel-qr:hover { transform: none; }
}
