.channels-section {
    flex: 1;
    display: flex; flex-direction: column;
    overflow: hidden;
    background: var(--bg-panel);
}

.tabs {
    display: flex; padding: 8px; gap: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0; overflow-x: auto;
}

.tab {
    padding: 6px 12px; border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 600; cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
    font-size: 11px;
}
.tab:hover { background: var(--bg-hover); color: var(--text-main); }
.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}
.tab .count {
    background: rgba(0,0,0,0.3);
    padding: 1px 5px; border-radius: 6px; font-size: 9px;
}

.filters-section {
    padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.search-wrapper { position: relative; }
.search-wrapper i {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 12px;
}
.search-input {
    width: 100%; padding: 8px 10px 8px 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 2px solid transparent;
    color: var(--text-main); font-size: 12px;
    outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-muted); }

.filter-row { display: flex; gap: 5px; }

.filter-select {
    flex: 1; padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main); font-size: 11px;
    outline: none; cursor: pointer;
}
.filter-select:focus { border-color: var(--primary); }

.view-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.view-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}
.view-btn.active { background: var(--primary); color: #000; }

.channels-container {
    flex: 1; overflow-y: auto; padding: 8px;
}

.channels-grid { display: grid; gap: 8px; }
.channels-grid.grid-view { grid-template-columns: repeat(3, 1fr); }
.channels-grid.list-view { grid-template-columns: 1fr; }

/* Channel Card */
.channel-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(30,30,45,0.8));
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.channel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.channel-card.active {
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(0,255,136,0.15), var(--bg-card));
}
.channel-card.playing { animation: playingGlow 2s infinite; }
@keyframes playingGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0,255,136,0.3); }
    50% { box-shadow: 0 0 20px rgba(0,255,136,0.5); }
}

.grid-view .channel-card { padding: 8px; text-align: center; }
.grid-view .channel-logo-wrapper {
    width: 100%; height: 40px; margin-bottom: 6px;
    display: flex; align-items: center; justify-content: center;
}
.grid-view .channel-logo {
    max-width: 100%; max-height: 40px;
    object-fit: contain; border-radius: 4px;
}
.grid-view .channel-name {
    font-size: 9px; font-weight: 600;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; margin-bottom: 4px;
}
.grid-view .channel-badges {
    display: flex; align-items: center; justify-content: center;
    gap: 2px; flex-wrap: wrap; min-height: 14px;
}

.list-view .channel-card {
    display: flex; align-items: center;
    padding: 8px 10px; gap: 10px;
}
.list-view .channel-logo-wrapper {
    width: 45px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.list-view .channel-logo {
    max-width: 45px; max-height: 32px;
    object-fit: contain; border-radius: 4px;
}
.list-view .channel-info { flex: 1; min-width: 0; }
.list-view .channel-name {
    font-size: 12px; font-weight: 600;
    margin-bottom: 2px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.list-view .channel-badges {
    display: flex; align-items: center;
    gap: 3px; flex-wrap: wrap;
}

/* Badges */
.badge-live {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white; padding: 2px 5px; border-radius: 3px;
    font-size: 7px; font-weight: 800; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 2px;
    box-shadow: 0 2px 6px rgba(255,71,87,0.4);
}
.badge-live::before {
    content: ""; width: 4px; height: 4px;
    background: white; border-radius: 50%;
    animation: liveDot 1s infinite;
}
@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.badge-team {
    padding: 2px 4px; border-radius: 3px;
    font-size: 7px; font-weight: 800;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 2px;
}
.badge-team i { font-size: 7px; }
.badge-ipl { background: linear-gradient(135deg, #ff6b00, #ffc107); color: #000; }
.badge-cricket { background: linear-gradient(135deg, #00a651, #7ab800); color: #fff; }
.badge-football { background: linear-gradient(135deg, #1e88e5, #42a5f5); color: #fff; }
.badge-wc { background: linear-gradient(135deg, #9c27b0, #e91e63); color: #fff; }

.priority-indicator {
    position: absolute; top: 4px; right: 4px;
    width: 6px; height: 6px; border-radius: 50%;
}
.priority-1 .priority-indicator { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.priority-2 .priority-indicator { background: var(--secondary); }
.priority-3 .priority-indicator { background: var(--text-muted); }

.fav-btn {
    position: absolute; top: 4px; left: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: none;
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); opacity: 0;
    font-size: 8px; z-index: 2;
}
.channel-card:hover .fav-btn { opacity: 1; }
.fav-btn.active { color: var(--danger); opacity: 1; }

.empty-state {
    text-align: center; padding: 30px 15px;
    color: var(--text-muted);
}
.empty-state i { font-size: 30px; margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: 12px; }
