/* Match Banner - Sticky Bottom Bar */

.ibm-match-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    font-family: inherit;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.ibm-match-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ibm-match-banner-title {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 15px;
    color: #fcc50a;
    white-space: nowrap;
}

/* Carousel container */
.ibm-match-banner-carousel {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

/* Hide scrollbar (WebKit) */
.ibm-match-banner-carousel::-webkit-scrollbar {
    height: 4px;
}
.ibm-match-banner-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.ibm-match-banner-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Match card */
.ibm-match-card {
    flex: 0 0 260px;
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ibm-match-card:hover {
    background: #0023a7;
    border-color: #fcc50a;
    transform: translateY(-1px);
}

/* Teams */
.ibm-match-card-teams {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Date + time */
.ibm-match-card-datetime {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tournament */
.ibm-match-card-tournament {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA */
.ibm-match-card-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fcc50a;
}

.ibm-match-card-cta-arrow {
    font-size: 13px;
}

/* Close button */
.ibm-match-banner-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ibm-match-banner-close:hover {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ibm-match-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px 10px;
    }

    .ibm-match-banner-title {
        font-size: 14px;
    }

    .ibm-match-banner-carousel {
        gap: 8px;
    }

    .ibm-match-card {
        flex: 0 0 80%;
        padding: 8px 9px;
    }

    .ibm-match-card-teams {
        font-size: 13px;
    }

    .ibm-match-card-datetime {
        font-size: 11px;
    }

    .ibm-match-card-tournament {
        font-size: 11px;
    }

    .ibm-match-card-cta {
        font-size: 11px;
    }
}