/* ==========================================================================
   OFFICIAL BUNDESLIGA MATCHDAY & FIXTURES DESIGN SYSTEM (DARK PREMIUM THEME)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

.bvb-matchday-page {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #050811 !important;
    background: radial-gradient(circle at 50% 0%, #0c192c 0%, #050811 75%) !important;
    color: #ffffff !important;
    padding-top: 25px;
    padding-bottom: 70px;
    min-height: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   HEADER & FILTER DROPDOWNS BAR
   -------------------------------------------------------------------------- */
.bvb-matchday-header-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.bvb-matchday-main-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff !important;
    letter-spacing: 1.5px;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bvb-matchday-season-sub {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #38bdf8 !important;
    margin: 0 0 24px 0;
}

/* Dropdown Filters Bar */
.bvb-filter-dropdowns-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.bvb-select-control {
    background: #0b1329 !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    outline: none !important;
    cursor: pointer !important;
    min-width: 200px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.25s ease !important;
}

.bvb-select-control:focus, .bvb-select-control:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
    background: #0f1a36 !important;
}

.bvb-select-control option {
    background: #0b1329 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   DAY GROUP HEADER (VIERNES, SÁBADO, DOMINGO)
   -------------------------------------------------------------------------- */
.bvb-day-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(90deg, #091322 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
    margin-top: 20px;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.bvb-day-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #38bdf8 !important;
    letter-spacing: 0.8px;
    margin: 0;
}

.bvb-day-date {
    font-size: 0.86rem;
    font-weight: 700;
    color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   BUNDESLIGA MATCH ROW CARD (DARK THEME)
   -------------------------------------------------------------------------- */
.bvb-matches-table-container {
    background: #0b1329 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
}

.bvb-match-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #0b1329 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.bvb-match-row:last-child {
    border-bottom: none !important;
}

.bvb-match-row:hover {
    background: #131d38 !important;
}

/* Inner Centered Compact Wrapper (Single Line Flex-Nowrap) */
.bvb-match-inner-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 14px !important;
}

/* Team Sides (Left & Right) */
.bvb-match-team-side {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.bvb-side-home {
    justify-content: flex-end !important;
    text-align: right !important;
    gap: 10px !important;
}

.bvb-side-away {
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
}

.bvb-team-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bvb-team-abbr {
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.bvb-team-crest {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)) !important;
}

/* Center Score Box (Format: CRA  0 - 3  ATM) */
.bvb-match-score-center {
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-width: 70px !important;
    text-align: center !important;
}

.bvb-score-digits {
    font-size: 1.30rem !important;
    font-weight: 900 !important;
    color: #38bdf8 !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

.bvb-time-digits {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    white-space: nowrap !important;
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* RESPONSIVE DISPLAY VISIBILITY RULES */
span.bvb-mobile-abbr {
    display: none !important;
}

span.bvb-desktop-name {
    display: inline-block !important;
}

/* Responsive Mobile Layout (BUNDESLIGA APP EXACT FLEX-NOWRAP) */
@media (max-width: 767px) {
    span.bvb-desktop-name {
        display: none !important;
    }

    span.bvb-mobile-abbr {
        display: inline-block !important;
    }

    .bvb-matchday-page {
        padding-top: 15px;
        padding-bottom: calc(115px + env(safe-area-inset-bottom, 20px)) !important;
    }

    .bvb-matchday-main-title {
        font-size: 1.5rem;
    }

    .bvb-filter-dropdowns-row {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
        gap: 10px;
    }

    .bvb-select-control {
        width: 100%;
        min-width: 100%;
        font-size: 0.82rem;
    }

    .bvb-day-group-header {
        padding: 10px 14px;
    }

    .bvb-day-name {
        font-size: 0.95rem;
    }

    .bvb-day-date {
        font-size: 0.80rem;
    }

    .bvb-match-row {
        padding: 10px 6px !important;
    }

    .bvb-match-inner-container {
        max-width: 100% !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .bvb-match-team-side {
        gap: 5px !important;
    }

    .bvb-team-crest {
        width: 22px !important;
        height: 22px !important;
    }

    .bvb-team-abbr {
        font-size: 0.80rem !important;
    }

    .bvb-match-score-center {
        padding: 0 4px !important;
        min-width: 55px !important;
    }

    .bvb-score-digits {
        font-size: 1.10rem !important;
    }

    .bvb-time-digits {
        font-size: 0.80rem !important;
        padding: 3px 6px !important;
    }
}

/* --------------------------------------------------------------------------
   BOTTOM MATCHDAY NAVIGATION BUTTON
   -------------------------------------------------------------------------- */
.bvb-next-matchday-wrap {
    text-align: center;
    margin-top: 35px;
}

.bvb-next-matchday-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 900;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    border: 1px solid #38bdf8 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

.bvb-next-matchday-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.6) !important;
}
