/* ===================================
   TV CHANNELS RUNWAY CAROUSEL
   =================================== */

.channels-runway {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.channels-runway::before,
.channels-runway::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.channels-runway::before {
    left: 0;
    background: linear-gradient(90deg, #f8f9fa 0%, transparent 100%);
}

.channels-runway::after {
    right: 0;
    background: linear-gradient(270deg, #f8f9fa 0%, transparent 100%);
}

.runway-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.runway-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #3506e6 0%, #8810e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.runway-subtitle {
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
}

.runway-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.runway-row {
    display: flex;
    gap: 30px;
    animation: scrollRunway 120s linear infinite; /* Increased duration for smoother scroll of long list */
    will-change: transform;
}

.runway-row:nth-child(2) {
    animation-duration: 140s;
    animation-direction: reverse;
}

.runway-row:nth-child(3) {
    animation-duration: 130s;
}

.channel-card {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0; /* Subtle border */
    position: relative;
    overflow: hidden;
}

.channel-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(53, 6, 230, 0.2);
    border-color: #3506e6;
    z-index: 10;
}

.channel-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures logo fits within box without distortion */
    max-width: 100px; /* Prevent it from touching edges too much */
    max-height: 70px;
    filter: grayscale(0%); /* Full color always, looks better */
    transition: filter 0.3s ease;
}

/* Optional: Grayscale until hover if user wants cleaner look, but for TV logos color is usually preferred */

@keyframes scrollRunway {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%); /* Assumes content is duplicated x2 */
    }
}

/* Channel count badge */
.channel-count {
    text-align: center;
    margin-top: 40px;
    padding: 16px;
    background: linear-gradient(135deg, #3506e6 0%, #8810e1 100%);
    color: white;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(53, 6, 230, 0.3);
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .runway-title {
        font-size: 28px;
    }

    .runway-subtitle {
        font-size: 16px;
    }

    .channel-card {
        width: 120px;
        height: 90px;
    }

    .channel-logo {
        width: 70px;
        height: 45px;
    }

    .runway-row {
        gap: 20px;
    }
}