/* VishvaX Stream — Ultra-Futuristic Compact Channels Grid */

.channels-section {
    margin-bottom: 56px;
}

.channels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.channels-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.channels-title-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.channels-count {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

/* Compact Responsive Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

@media (max-width: 640px) {
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 12px;
    }
}

/* Ultra-Futuristic Channel Card */
.channel-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s ease, box-shadow .25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.channel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 16px 36px -8px rgba(0, 0, 0, 0.9), 
        0 0 25px rgba(99, 102, 241, 0.25);
}

.channel-card:focus-visible {
    outline: none;
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.3);
}

/* Card Artwork */
.channel-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.channel-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-card:hover .channel-poster img {
    transform: scale(1.08);
}

/* Live Badge on Poster */
.poster-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Play Icon Hover Overlay */
.poster-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 9, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 2;
}

.channel-card:hover .poster-play-overlay {
    opacity: 1;
}

.overlay-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-neon) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: scale(0.85);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-card:hover .overlay-play-btn {
    transform: scale(1);
}

/* Card Details */
.channel-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    background: rgba(13, 19, 33, 0.4);
}

.channel-name {
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease;
}

.channel-card:hover .channel-name {
    color: var(--cyber-cyan);
}

.channel-sub {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Holographic Skeletons */
.skeleton-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #090e1a 0%, #151d30 50%, #090e1a 100%);
    background-size: 200% 100%;
    animation: vx-shimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    margin: 14px;
    border-radius: 4px;
    background: #151d30;
}

@keyframes vx-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Empty State */
.channels-empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-muted);
}
