:root {
    --fcf-blue: #0056b3;
    --fcf-dark-blue: #1c243d;
    --fcf-red: #e31b23;
    --fcf-text-light: #ffffff;
    --fcf-text-dark: #333333;
    --fcf-bg-gray: #f9f9f9;
    --fcf-border: #e1e1e1;
}

/* Base Reset & Wrapper */
.fcf-calendar-wrapper,
.fcf-calendar-wrapper *,
.fcf-calendar-wrapper *::before,
.fcf-calendar-wrapper *::after {
    box-sizing: border-box !important;
}

.fcf-calendar-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fcf-text-dark);
    margin: 20px 0;
    overflow: hidden !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
}

.fcf-calendar-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ============================================================ */
/* 1. MINI-WIDGET OVERHAUL (#fcf-mini-widget)                  */
/* ============================================================ */

#fcf-mini-widget {
    display: flex;
    background: #fff;
    height: 200px;
    /* SLIGHTLY INCREASED HEIGHT */
    max-width: 1100px;
    margin: 20px auto !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

#fcf-mini-widget .fcf-main-column {
    flex: 0 0 38%;
    /* REDUCED SLIGHTLY TO ENSURE CAROUSEL BREATHES */
    background: var(--fcf-dark-blue);
    background-image: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 3px solid var(--fcf-red);
}

#fcf-mini-widget .fcf-carousel-column {
    flex: 1;
    /* CAROUSEL TAKES MORE SPACE */
    min-width: 0;
    padding: 15px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 2. Banner Mini Styles */
.fcf-banner-mini {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #1c243d 0%, #080c1a 100%);
    position: relative;
    overflow: hidden;
}

.fcf-banner-mini::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 27, 35, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.fcf-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.fcf-banner-comp {
    color: var(--fcf-red);
}

.fcf-banner-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 12px 0;
}

.fcf-banner-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fcf-mini-flag {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fcf-mini-flag img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.fcf-mini-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fcf-mini-vs {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: var(--fcf-red);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(227, 27, 35, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.fcf-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    /* REDUCED */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2px;
}

.fcf-mini-countdown {
    display: flex;
    gap: 15px;
}

.fcf-mini-cd-item {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.fcf-mini-cd-item span {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.fcf-mini-cd-item small {
    font-size: 9px;
    font-weight: 800;
    color: var(--fcf-red);
}

.fcf-mini-btn {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 900;
    background: var(--fcf-red);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
}

/* 3. Mini TV Bar (PREMIUM INTEGRATED) */
.fcf-banner-mini .fcf-mini-tv {
    background: transparent !important;
    height: auto !important;
    padding: 8px 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 5px !important;
}

.fcf-banner-mini .fcf-mini-tv-label {
    font-size: 8px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.fcf-banner-mini .fcf-mini-tv-items {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fcf-banner-mini .fcf-mini-tv-logo-wrap {
    height: 16px !important;
    width: auto;
    display: flex;
    align-items: center;
}

.fcf-banner-mini .fcf-mini-tv-img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.fcf-banner-mini .fcf-mini-tv-img:hover {
    opacity: 1;
}

.fcf-mini-tv-text {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* 4. Compact Carousel Column */
.fcf-mini-upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fcf-mini-upcoming-header h2 {
    font-size: 11px !important;
    font-weight: 900;
    margin: 0;
    color: var(--fcf-dark-blue);
    padding-left: 10px;
    border-left: 4px solid var(--fcf-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fcf-mini-nav {
    display: flex;
    gap: 4px;
}

.fcf-m-nav-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #eee;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcf-mini-carousel {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.fcf-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.fcf-carousel-track::-webkit-scrollbar {
    display: none;
}

.fcf-mini-card {
    flex: 0 0 220px;
    max-width: 220px;
    height: 125px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    /* ROUNDER */
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fcf-mini-card:hover {
    border-color: rgba(227, 27, 35, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.fcf-m-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    color: var(--fcf-red);
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fcf-m-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.fcf-m-card-team {
    display: grid;
    /* GRID FOR PERFECT ALIGNMENT */
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.fcf-m-card-team img {
    width: 28px !important;
    height: 18px !important;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    display: block !important;
}

.fcf-m-card-team span {
    font-size: 11px;
    font-weight: 800;
    color: var(--fcf-dark-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}



.fcf-m-card-footer {
    text-align: right;
    padding-top: 6px;
    border-top: 1px solid #f8f8f8;
}

.fcf-m-card-footer a {
    font-size: 9px;
    font-weight: 900;
    color: var(--fcf-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fcf-mini-view-all {
    display: block;
    text-align: right;
    font-size: 9px;
    font-weight: 900;
    color: var(--fcf-blue);
    text-decoration: none;
    margin-top: 5px;
}

/* 5. Responsive Mini */
@media (max-width: 768px) {
    #fcf-mini-widget {
        flex-direction: column;
        height: auto;
    }

    #fcf-mini-widget .fcf-main-column {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 4px solid var(--fcf-red);
    }
}

/* Full Calendar Table View (Preserved/Fixed) */
@media (max-width: 768px) {
    .fcf-banner-content {
        flex-direction: column;
    }

    .fcf-tv-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fcf-calendar-table thead {
        display: none;
    }

    .fcf-calendar-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--fcf-border);
    }

    /* 3. Full Calendar Table View (Phase 5) */
    .fcf-calendar-wrapper.fcf-view-full {
        padding: 30px;
        background: #fdfdfd;
    }

    .fcf-full-calendar-header h2 {
        color: var(--fcf-dark-blue);
        font-size: 1.8rem;
        font-weight: 900;
        margin-bottom: 25px;
        border-left: 5px solid var(--fcf-gold);
        padding-left: 15px;
    }

    .fcf-full-calendar-table-container {
        overflow-x: auto;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .fcf-full-calendar-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 !important;
    }

    .fcf-full-calendar-table th {
        background: var(--fcf-dark-blue);
        color: #fff;
        text-align: left;
        padding: 15px 20px;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .fcf-full-calendar-table td {
        padding: 20px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .fcf-full-calendar-table tr:hover {
        background: #f9f9f9;
    }

    .fcf-table-match {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .fcf-table-team {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 140px;
    }

    .fcf-table-team span {
        font-weight: 700;
        color: var(--fcf-dark-blue);
        font-size: 0.9rem;
    }

    .fcf-table-vs {
        font-weight: 900;
        color: var(--fcf-gold);
        font-size: 0.8rem;
    }

    .fcf-table-tv {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .fcf-table-tv-logo {
        width: 60px !important;
        height: 30px !important;
        padding: 4px !important;
        background: #fff;
    }

    .fcf-table-tv-logo img {
        max-height: 20px !important;
    }

    .fcf-table-actions {
        display: flex;
        gap: 8px;
    }

    .fcf-table-btn {
        display: inline-block;
        padding: 8px 12px;
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--fcf-dark-blue);
        border: 1px solid var(--fcf-dark-blue);
        border-radius: 4px;
        transition: all 0.3s ease;
        text-transform: uppercase;
    }

    .fcf-table-btn:hover {
        background: var(--fcf-dark-blue);
        color: #fff;
    }

    .fcf-btn-buy {
        background: var(--fcf-gold);
        border-color: var(--fcf-gold);
        color: #000;
    }

    .fcf-btn-buy:hover {
        background: #e6b800;
        border-color: #e6b800;
        color: #000;
    }

    /* Table Responsive */
    @media (max-width: 992px) {
        .fcf-full-calendar-table thead {
            display: none;
        }

        .fcf-full-calendar-table tr {
            display: block;
            margin-bottom: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            background: #fff;
        }

        .fcf-full-calendar-table td {
            display: block;
            text-align: right;
            padding: 12px 20px;
            position: relative;
            border-bottom: 1px solid #f5f5f5;
        }

        .fcf-full-calendar-table td::before {
            content: attr(data-label);
            position: absolute;
            left: 20px;
            width: 45%;
            text-align: left;
            font-weight: 700;
            font-size: 0.8rem;
            color: #888;
        }

        .fcf-table-match {
            justify-content: flex-end;
        }

        .fcf-table-tv,
        .fcf-table-actions {
            justify-content: flex-end;
        }
    }

    .fcf-calendar-table td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
    }

    .fcf-calendar-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: var(--fcf-blue);
    }
}