.channels-hero {
  background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 40px;
  text-align: center;
}
.channels-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 10px; }
.channels-hero p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; }
.channels-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.channels-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}
.channels-search input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.channels-search input:focus { outline: none; border-color: var(--primary); }
.channels-search input::placeholder { color: var(--text-muted); }

.channels-page {
  display: flex;
  min-height: calc(100vh - 200px);
}

/* SIDEBAR */
.channels-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
}
.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-header h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.sidebar-search { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sidebar-search input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.sidebar-search input:focus { outline: none; border-color: var(--primary); }
.sidebar-search input::placeholder { color: var(--text-muted); }
.cat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.cat-list::-webkit-scrollbar { width: 4px; }
.cat-list::-webkit-scrollbar-track { background: transparent; }
.cat-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-item i { font-size: 12px; flex-shrink: 0; }
.cat-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.cat-item.active { color: var(--primary); background: rgba(240,165,0,0.1); font-weight: 600; }

/* MAIN */
.channels-main { flex: 1; min-width: 0; padding: 24px; }
.channels-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.toolbar-info { flex: 1; font-size: 14px; color: var(--text-muted); }
.view-toggle { display: flex; gap: 6px; }
.view-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.view-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }

/* GRID */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
  transition: all 0.2s;
}
.channel-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.channel-logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.channel-fallback {
  width: 64px;
  height: 64px;
  background: rgba(240,165,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.channel-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.3;
  word-break: break-word;
}

/* LIST */
.channel-list { display: flex; flex-direction: column; gap: 8px; }
.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s;
}
.channel-row:hover { border-color: var(--primary); }
.channel-logo-sm {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-logo-sm img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.channel-fallback-sm {
  width: 36px;
  height: 36px;
  background: rgba(240,165,0,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

/* STATES */
.loading-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px;
  color: var(--text-muted);
}
.loading-state i { font-size: 32px; color: var(--primary); }
.empty-state i { font-size: 48px; }

/* NAV ACTIVE */
.nav-links a.active { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .channels-sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    height: calc(100vh - 70px);
    z-index: 500;
    transition: left 0.3s ease;
    width: 280px;
  }
  .channels-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.5); }
  .sidebar-close { display: block; }
  .filter-toggle { display: flex; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
}

/* PAGINATION */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 16px;
}
.pagination-bar button {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pagination-bar button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-bar button:disabled { opacity: 0.3; cursor: default; }
.pagination-bar span { font-size: 14px; color: var(--text-muted); }
