/* channels.css - page-specific styles only */

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
  }

.group-flag.flag-EU { background: #6d87aa; }

.group-flag.flag-LA { background: #d68a3a; }

.group-flag.flag-AS { background: #7e3aa0; }

.group-flag.flag-OTHER { background: #6d87aa; }

/* CHANNELS GRID */
  .channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }

.ch-card {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .3s var(--ease);
    opacity: 0;
    transform: translateY(16px);
    animation: groupCardIn .5s var(--ease) forwards;
  }

.ch-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
  }

.ch-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    letter-spacing: 0.04em;
  }

.ch-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: var(--white);
  }

.ch-logo.fallback { color: var(--white); }

.ch-logo.fallback.flag-ES { background: #054462; }

.ch-logo.fallback.flag-AR { background: #2a9d4f; }

.ch-logo.fallback.flag-FR { background: #2d4ea0; }

.ch-logo.fallback.flag-US { background: #b8443c; }

.ch-logo.fallback.flag-AF { background: #8a5b2e; }

.ch-logo.fallback.flag-EU { background: #6d87aa; }

.ch-logo.fallback.flag-LA { background: #d68a3a; }

.ch-logo.fallback.flag-AS { background: #7e3aa0; }

.ch-logo.fallback.flag-OTHER { background: #6d87aa; }

.ch-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

.search-result-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
  }

.search-result-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
    background: var(--white);
  }

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .ch-hero { padding-top: 130px; }
    .nav-menu { display: none; }
    .burger { display: flex; }
    .ch-hero h1.heading {
      font-size: clamp(2.2rem, 9vw, 3.2rem);
    }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-left { justify-content: flex-start; }
    .search-trigger { width: 100%; min-width: 0; }
    .groups-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .channels-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ch-card { padding: 12px; }
    .ch-logo { width: 42px; height: 42px; }
    .ch-name { font-size: 13px; }
    .group-card { padding: 18px 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .wa-float { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 26px; }
    .search-popup { top: 8vh; }
  }
