/*
 * RecPlay - Channel/Category Pages
 * Domain: recp.top
 * Channel banners, compact grids, responsive layouts
 */

/* --- Channel banner header --- */
.rp-channel-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 32px;
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--rp-radius-lg);
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
}

.rp-channel-banner::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
}

.rp-channel-banner::after {
    content: "";
    position: absolute;
    left: 30%;
    bottom: -40px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
    border-radius: 50%;
}

.rp-channel-icon-lg {
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.rp-channel-icon-lg::before {
    content: "";
    width: 22px;
    height: 22px;
    background: var(--rp-primary);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.rp-channel-info { z-index: 1; }

.rp-channel-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--rp-text);
}

.rp-channel-count {
    font-size: 0.84rem;
    color: var(--rp-text-mid);
}

.rp-game-count {
    color: var(--rp-text-soft);
    font-size: 0.82rem;
    margin-bottom: 16px;
    padding: 0 4px;
}

.rp-game-count strong {
    color: var(--rp-primary);
    font-weight: 700;
}

/* --- Compact grid for channel pages --- */
.rp-section--compact .rp-game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* --- Tablet --- */
@media (max-width: 1024px) {
    .rp-section--compact .rp-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .rp-channel-banner {
        padding: 20px 24px;
        gap: 14px;
    }

    .rp-channel-name { font-size: 1.15rem; }
    .rp-channel-icon-lg { width: 46px; height: 46px; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .rp-section--compact .rp-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .rp-channel-banner {
        padding: 16px 18px;
        gap: 12px;
        margin-bottom: 18px;
    }

    .rp-channel-name { font-size: 1rem; }
    .rp-channel-count { font-size: 0.76rem; }
    .rp-channel-icon-lg { width: 40px; height: 40px; }
    .rp-channel-icon-lg::before { width: 18px; height: 18px; }

    .rp-game-count { font-size: 0.74rem; margin-bottom: 12px; }
}

/* --- Extra small --- */
@media (max-width: 380px) {
    .rp-section--compact .rp-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rp-channel-banner {
        padding: 14px;
        gap: 10px;
    }

    .rp-channel-name { font-size: 0.92rem; }
    .rp-channel-icon-lg { width: 36px; height: 36px; }
}
