#bp-fixture-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.bp-fixture-topbar-title {
    display: block;
    width: 100%;
    margin: 2px 0 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    letter-spacing: 0.01em;
    color: #f4f8ff;
    text-shadow: 0 4px 14px rgba(7, 20, 53, 0.45);
}

.bp-fixture-topbar-row {
    display: block;
    width: 100%;
    overflow: visible;
}

.bp-topbar-calendar-slot {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.bp-topbar-search-form {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.bp-topbar-search-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(124, 166, 237, 0.45);
    border-radius: 999px;
    background: rgba(6, 26, 69, 0.9);
    color: #dbe8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.bp-topbar-search-toggle:hover {
    background: rgba(12, 38, 90, 0.96);
}

.bp-topbar-search-input-wrap {
    position: absolute;
    right: 0px;
    top: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

.bp-topbar-search-form:hover .bp-topbar-search-input-wrap,
.bp-topbar-search-form:focus-within .bp-topbar-search-input-wrap,
.bp-topbar-search-form.is-open .bp-topbar-search-input-wrap {
    max-width: 380px;
    opacity: 1;
}

.bp-topbar-search-input-wrap input[type="search"] {
    width: 260px;
    max-width: 40vw;
    padding: 6px 12px;
    border: 1px solid rgba(122, 166, 240, 0.45);
    border-radius: 8px;
    background: rgba(7, 28, 71, 0.95);
    color: #e7f0ff;
}

.bp-topbar-search-input-wrap input[type="search"]::placeholder {
    color: rgba(220, 232, 255, 0.66);
}

.bp-topbar-search-input-wrap input[type="search"]:focus {
    outline: none;
    border-color: rgba(182, 214, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(115, 170, 255, 0.2);
}

.bp-topbar-search-submit {
    padding: 9px 12px;
    border: 1px solid rgba(134, 176, 247, 0.42);
    border-radius: 999px;
    background: rgba(8, 30, 77, 0.95);
    color: #e7f1ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bp-topbar-search-submit:hover {
    background: rgba(12, 39, 94, 0.95);
}

.bp-lc-filter-topbar {
    margin: auto;
    width: 50%;
    padding: 8px 10px;
    /* background: rgba(8, 28, 72, 0.86);
    border: 1px solid rgba(134, 176, 247, 0.35); */
    border-radius: 999px;
    color: #e7f1ff;
    margin-top: -130px;
}

.bp-lc-filter-topbar .bp-lc-filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.bp-lc-filter-topbar .bp-lc-field {
    width: auto;
    min-width: 100px;
    padding: 0;
    background: transparent;
    border-radius: 10px;
}

.bp-lc-filter-topbar .bp-lc-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bp-lc-filter-topbar .bp-lc-select {
    max-width: 100px !important;
    padding: 7px 11px;
    border: 1px solid rgba(134, 176, 247, 0.42);
    border-radius: 999px;
    background: rgba(8, 30, 77, 0.95);
    color: #e7f1ff;
}

.bp-lc-filter-topbar .bp-lc-select:focus {
    outline: none;
    border-color: rgba(182, 214, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(115, 170, 255, 0.2);
}

.bp-lc-filter-topbar .bp-lc-selected-logo {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.bp-lc-filter-topbar .bp-lc-clear-all-btn {
    width: auto;
    padding: 8.5px 12px;
    border: 1px solid rgba(134, 176, 247, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.616);
    color: #235fad;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bp-lc-filter-topbar .bp-lc-clear-all-btn:hover {
    background: rgba(12, 42, 102, 0.95);
    color: #fff;
}

.bp-lc-search-slot {
    display: flex;
    align-items: flex-end;
    min-width: 46px;
}

.bp-active-filter-chips {
    display: none;
    width: 100%;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.bp-active-filter-chips.has-chips {
    display: flex;
}

.bp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(141, 183, 250, 0.45);
    background: rgba(21, 56, 124, 0.55);
    color: #e7f1ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bp-filter-chip:hover {
    border-color: #a7b8e7;
    background: #f2f6ff;
    color: #1e3a8a;
}

.bp-filter-chip-close {
    font-size: 14px;
    color: currentColor;
}

#bp-match-calendar.bp-match-calendar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px;
    /* background: rgba(8, 28, 72, 0.86);
    border: 1px solid rgba(134, 176, 247, 0.35); */
    border-radius: 999px;
    overflow: visible !important;
    color: #e7f1ff;
}

#bp-match-calendar .bp-match-calendar-scroll {
    position: relative;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    align-items: flex-end;
    overflow-y: visible !important;
    scroll-behavior: smooth;
    padding: 80px 26px 14px;
     border-top: 1px solid #e7f1ff;
    /*border-bottom: 1px solid #e7f1ff; */
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 40%;
}

.bp-match-calendar-shadow{
    border-top: 1px solid #e7f1ff;
    height: 132px;
    border-radius: 40%;
    margin-top: -80px;
    box-shadow: 0 -57px 0px 0px rgba(8, 30, 77, 0.40);
}

#bp-match-calendar .bp-match-calendar-scroll::-webkit-scrollbar {
    display: none;
}

#bp-match-calendar .bp-date-pill {
    --curve: 0px;
    --tilt: 0deg;
    padding: 7px 12px;
    /* border: 1px solid rgba(141, 183, 250, 0.36);
    border-radius: 999px;
    background: rgba(12, 40, 94, 0.82); */
    color: #e7f1ff;
    text-decoration: none;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.18;
    white-space: nowrap;
    transform: translateY(var(--curve)) rotate(var(--tilt)) !important;
    transform-origin: center bottom;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

/* Fallback: no repeating wave; JS computes true centered bow */
#bp-match-calendar .bp-date-pill {
    --curve: 0px;
    --tilt: 0deg;
}

#bp-match-calendar .bp-date-pill:hover {
    transform: translateY(calc(var(--curve) - 1px)) rotate(var(--tilt)) !important;
    border-color: rgba(188, 215, 255, 0.48);
}

#bp-match-calendar .bp-date-pill:active {
    transform: translateY(var(--curve)) rotate(var(--tilt)) !important;
    box-shadow: 0 2px 6px #5a9aef;
}

#bp-match-calendar .bp-date-pill .bp-date-day {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(220, 233, 255, 0.78);
    white-space: nowrap;
}

#bp-match-calendar .bp-date-pill .bp-date-val {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
}

#bp-match-calendar .bp-date-pill.active,
#bp-match-calendar .bp-date-pill.is-today.active {
    background: linear-gradient(180deg, rgba(142, 190, 255, 0.22) 0%, rgba(90, 154, 239, 0.14) 100%);
    color: #fff;
    border: 2px solid rgba(186, 220, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(129, 186, 255, 0.55),
        0 0 16px rgba(122, 186, 255, 0.72),
        0 8px 18px rgba(53, 109, 182, 0.45);
    border-radius: 999px;
}

#bp-match-calendar .bp-date-pill.is-today:not(.active) {
    background: linear-gradient(180deg, rgba(255, 233, 172, 0.24) 0%, rgba(255, 204, 92, 0.12) 100%);
    color: #fff7df;
    border: 2px solid rgba(255, 225, 142, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 217, 120, 0.5),
        0 0 14px rgba(255, 205, 98, 0.58),
        0 8px 18px rgba(130, 91, 18, 0.35);
    border-radius: 999px;
}

#bp-match-calendar .bp-date-pill.active {
    position: relative;
    transform: translateY(calc(var(--curve) - 1px)) rotate(var(--tilt)) !important;
}

#bp-league-select-topbar, #bp-country-select-topbar {
background: transparent !important;
color: white !important;
font-weight: 400 !important;
font-size: 12px !important;
border-radius: 8px !important;
border: none !important;
padding: 0px !important;
/* margin: 0 4px !important; */
/* box-shadow: 0 2px 6px rgba(7, 22, 55, 0.3) !important; */
}

#bp-league-select-topbar option,
#bp-country-select-topbar option {
    background: #1e2a44;
    color: white;
}

.bp-lc-select-wrap{
    padding: 6px 12px !important;
    background: rgba(8, 30, 77, 0.40) !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(7, 22, 55, 0.3) !important;
    z-index: 1;
}


#bp-match-calendar .bp-date-pill.active::after {
    content: "▲";
    border: none;
    position: absolute;
    color: #b9ddff;
    top: 21px;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    z-index: -1;
}

#bp-match-calendar .bp-date-pill.is-today .bp-date-day {
    font-weight: 700;
    letter-spacing: 0.02em;
}

#bp-match-calendar .bp-date-pill.is-today .bp-date-val {
    font-size: 16px;
}

/* #bp-match-calendar .bp-date-pill.is-weekend {
    background: rgba(14, 44, 103, 0.78);
    border-color: rgba(146, 183, 246, 0.32);
} */

#bp-match-calendar .bp-date-pill.is-weekend .bp-date-day {
    color: rgba(209, 223, 249, 0.78);
}

#bp-match-calendar .bp-date-pill.is-weekend .bp-date-val {
    color: #d8e6ff;
}


#bp-match-calendar .bp-date-pill.no-match {
    opacity: 0.75;
}

#bp-match-calendar .bp-calendar-arrow {
    width: 30px;
    height: 30px;
    color: #e7f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    background: transparent !important;
}

#bp-today-subfilter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: auto;
    width: 30%;
    padding: 8px 10px;
    color: #e7f1ff;
    margin-top: -50px;
}

#bp-today-subfilter .bp-today-subfilter-label {
    font-size: 12px;
    font-weight: 700;
    color: #02050af2;
}

#bp-today-subfilter .bp-today-subfilter-btn {
    padding: 6px 10px;
    border: 1px solid rgba(134, 176, 247, 0.42);
    border-radius: 7px;
    background: rgba(8, 30, 77, 0.95);
    color: #e7f1ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

#bp-today-subfilter .bp-today-subfilter-btn.active,
#bp-today-subfilter .bp-today-subfilter-btn.bp-live-available.active {
    background: linear-gradient(180deg, #5a9aef 0%, #4279ce 100%);
    border-color: rgba(196, 224, 255, 0.8);
    color: #fff;
    box-shadow: none;
}

#bp-today-subfilter .bp-today-subfilter-btn.bp-live-available:not(.active) {
    border-color: #e14b5f;
    background: rgba(88, 17, 32, 0.64);
    color: #ffcfd7;
    box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
    animation: bp-today-live-pulse 2.2s ease-in-out infinite;
}

@keyframes bp-today-live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.45), 0 0 12px rgba(230, 57, 70, 0.18);
    }
}

#bp-today-subfilter .bp-today-subfilter-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

#bp-timeline-filter-mobile .bp-timeline-filter-btn {
    background: rgba(12, 40, 94, 0.82);
    color: #e7f1ff;
    border-right: 1px solid rgba(141, 183, 250, 0.36);
}

#bp-timeline-filter-mobile .bp-timeline-filter-btn[data-filter="live"],
#bp-timeline-filter-mobile .bp-timeline-filter-btn[data-filter="live"].active {
    background: linear-gradient(180deg, #5a9aef 0%, #4279ce 100%);
    color: #fff;
    border: 1px solid rgba(196, 224, 255, 0.8);
}

@media (max-width: 992px) {
    #bp-fixture-topbar {
        align-items: stretch;
    }

    .bp-fixture-topbar-title {
        font-size: 28px;
    }

    .bp-fixture-topbar-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .bp-topbar-search-form {
        width: 100%;
    }

    .bp-topbar-search-input-wrap {
        position: static;
        max-width: 100%;
        opacity: 1;
    }

    .bp-topbar-search-input-wrap input[type="search"] {
        width: 100%;
        max-width: none;
    }

    .bp-topbar-calendar-slot {
        width: 100%;
        min-width: unset;
    }

    .bp-lc-filter-topbar {
        width: 100%;
        padding: 10px;
    }

    .bp-lc-filter-topbar .bp-lc-field {
        min-width: unset;
        flex: 1 1 220px;
    }

    .bp-lc-filter-topbar .bp-lc-select {
        min-width: 100px !important;
        width: 50% !important;
    }

    .bp-lc-search-slot {
        margin-left: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .bp-fixture-topbar-title {
        font-size: 22px;
    }

    .bp-topbar-search-submit {
        padding: 8px 10px;
    }

    #bp-match-calendar .bp-date-pill {
        padding: 7px 9px;
    }
}

#bp-match-calendar {
    position: relative;
    padding-top: 30px; /* space for curve */
}

#bp-match-calendar .bp-match-calendar-scroll {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;

    transform: perspective(800px) rotateX(20deg);
    transform-origin: center top;
}

#bp-match-calendar .bp-date-pill {
    transform: translateY(0);
}

/* center items stay lower */
#bp-match-calendar .bp-date-pill:nth-child(odd) {
    transform: translateY(-5px);
}

#bp-match-calendar .bp-date-pill:nth-child(even) {
    transform: translateY(-10px);
}

.bp-calendar-left {
    position: absolute;
    left: -50px;
    top: 60px;
}

.bp-calendar-right{
    position: absolute;
    right: -50px;
    top: 60px;
}