/*  02/07/2021 DS (line:184) */
#root .match-breadcrumbs ul, #root .desktop .match-breadcrumbs {
    /* padding: 4px 0; */
}
#root .match-breadcrumbs .other-matches .other-matches-wrapper > ul {
    margin: 0 0 8px 8px;
    background-color: var(--c-white);
}

#root .match-breadcrumbs .other-matches .group-heading {
    height: auto;
    flex-wrap: wrap;
    width: 100%;
    background-color: var(--c-emphasis-b);
    border: 0;
}
#root .match-breadcrumbs .other-matches .group-heading span {
    height: auto;
    line-height: 14px;
    padding-right:  4px;
}
#root .match-breadcrumbs .match-back-button {
    margin: 0;
    width: auto;
    border-right: 2px solid var(--c-primary-d);
    background-color:var(--c-primary);
}
#root .desktop .match-breadcrumbs .match-back-button {
    border-radius: 10px 0px 0px 10px;
}
#root .match-breadcrumbs .match-back-button .back-button {
    background-color: unset;
    display: flex;
    width: 34px;
    height: 100%;
    background-image: url(/v1.02/r/images/site/icons/Arrow_Left.svg);
    padding: 6px 4px !important;
    background-position: center;
    color: transparent;
    overflow: hidden;
    text-overflow: clip;
    border-radius: 0;
}

#root .match-breadcrumbs ul.match-breadcrumbs {
    padding: 0;
    display: inline-flex;
    flex: 1;
    min-width: 0%;
    background-color: var(--c-primary);
}

#root .match-breadcrumbs ul li {
    /* display: inline-flex; */
}

#root .match-breadcrumbs ul.match-breadcrumbs .tournament-br,
#root .match-breadcrumbs ul.match-breadcrumbs .category-br,
#root .match-breadcrumbs ul.match-breadcrumbs .sport-br {
    color: var(--c-white);
}

#root .desktop.device-desktop .match-breadcrumbs ul.match-breadcrumbs .tournament-br:hover,
#root .desktop.device-desktop .match-breadcrumbs ul.match-breadcrumbs .category-br:hover {
    color: var(--c-white-e);
}

#root .match-breadcrumbs .live-score span {
    line-height: 15px;
    text-indent: 0;
    text-align: right;
}

#root .desktop.device-desktop .match-breadcrumbs .match-back-button:hover {
    background-color: var(--c-primary);
}


/********************************************* ANDREANI_OVERRIDES ***************************************/

.match-breadcrumbs .live-score span:first-child {
    padding-right: 5px;
    padding: 0 5px;
}

#root .match-breadcrumbs .live-score {
    color: var(--c-green);
    font-weight: 600;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
}

.other-matches li a {
    max-width: unset;
    white-space: normal;
}

#root app-block.match-breadcrumbs {
    height: 36px;
    position: relative;
}
#root .mobile app-block.match-breadcrumbs {
    background-color: transparent;
    height: 36px;
    position: sticky;
    position: -webkit-sticky;
    top: 54px;
    z-index: 10;
    box-shadow: 0 2px 2px #0003;
    order: -3;
}

#root ul.match-breadcrumbs {
    overflow-x: auto;
    margin: unset;
    overflow-y: hidden;
    scrollbar-width: thin;
}

#root .coupon-breadcrumbs ul {
    overflow: auto;
}

#root .match-breadcrumbs app-widget-host, #root .coupon-breadcrumbs ul {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

#root .other-matches, #root .other-group-matches {
    flex-direction: column;
    height: 100%;
}
#root .mobile .other-matches, #root .mobile .other-group-matches {
    height: 100%;
}

#root .other-group-matches {
    background-color: var(--c-paper);
}

#root .desktop.view-page-live-match .match-breadcrumbs .teams {
    display: none;
}

#root .match-breadcrumbs .sport-br { /* display: none; */ }

#root .match-breadcrumbs .group-heading {
    border-bottom: 1px solid var(--c-shade-b);
    color: var(--c-white);
}

#root .desktop .match-breadcrumbs .other-matches li:after, #root .coupon-breadcrumbs ul li:last-child:after {
    content: "" !important;
    padding-left: 2px;
}

#root .desktop .match-breadcrumbs ul li:not(.other-matches):after, #root .coupon-breadcrumbs ul li:after {
    content: "/";
    padding-left: 2px;
}

#root .match-not-available {
    color: var(--c-white);
    height: 30px;
    text-align: center;
    font-style: italic;
}

#root .match-breadcrumbs .other-matches-wrapper {
    flex-direction: column;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    overflow: auto;
    -webkit-overflow-scrolling: auto;
    max-width: 360px;
    max-height: calc(100vh - 54px);
    height: auto;
    background: var(--c-primary-d);
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px #0006;
    z-index: 60;
    border-bottom: 2px solid var(--c-background);
}

#root .desktop .match-breadcrumbs .other-matches-wrapper {
    top: 0;
    min-width: 20%;
}

#root .match-breadcrumbs .other-matches ul li {
    padding: 4px 0px;
}

#root .match-breadcrumbs .live-match-period-time {
    display: none;
}

#root .match-breadcrumbs .other-matches .ui-button {
    width: 36px;
    height: 100%;
    background-color: transparent;
    border: none;
    opacity: 1;
}

#root .match-breadcrumbs .other-matches .ui-button {
    background-image: url(/v1.02/r/images/site/icons/Arrow_Down.svg);
    background-size: 20px;
    background-position: center;
    content: '';
    background-repeat: no-repeat;
    border-left: 2px solid var(--c-primary-d);
    border-radius: 0;
    background-color: var(--c-primary);
}
#root .desktop .match-breadcrumbs .other-matches .ui-button {
    border-radius: 0px 10px 10px 0px;
}
#root .desktop.device-desktop .match-breadcrumbs .other-matches .ui-button:hover {
    opacity: 1;
    background-color: var(--c-primary);
}

#root .match-breadcrumbs .other-matches .ui-button:enabled:focus {
    border: none;
    box-shadow: none;
}

#root .match-breadcrumbs .other-matches .ui-button .fa-chevron-down:before {
    content: unset;
}

#root .match-breadcrumbs .other-match {
    flex-direction: row;
    height: 40px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    color: var(--c-black);
    background-color: var(--c-paper);
    border-bottom: 1px solid var(--c-shade);
    font-size: 13px;
}

#root .desktop.device-desktop .match-breadcrumbs .other-match:hover {
    background-color: var(--c-shade);
    padding: 4px 0;
    color: var(--c-black-e);
}

#root .match-breadcrumbs .other-match .match-label-container {
    display: inline-flex;
    flex-direction: row;
    flex: 1 1 60%;
    font-weight: 600;
    flex-wrap: wrap;
    min-width: 60%;
}

#root .match-breadcrumbs .selected a {
    color: var(--c-white-e);
    font-weight: 600;
}

#root .match-breadcrumbs .other-match .match-label {
    line-height: 16px;
}

#root .other-matches-overlay {
    width: 100%;
    height: calc(100% - 36px);
    top: 36px;
    left: 0;
    background-color: #0004;
    position: absolute;
    z-index: 50;
}

#root .other-matches-overlay:empty {
    display: none;
}

ul.match-breadcrumbs::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}


/********************************************* THRASOS_OVERRIDES ***************************************/

#root .beto-match-breadcrumbs {
    width: calc(100vw - 33px);
    display: inline-flex;
    flex: 0 1 100%;
    min-width: 0%;
}

#root .mobile .beto-match-breadcrumbs {
    justify-content: space-between;
}

#root .match-breadcrumbs ul li {
    padding: 0;
    padding-left: 4px;
    display: inline-flex;
    text-indent: 8px;
    line-height: 36px;
    height: 36px;
}

#root .match-breadcrumbs li:after {
    opacity: .3;
    margin-right: 4px;
}

#root .match-breadcrumbs .tournament-br:after {
    display: none;
}

#root .match-breadcrumbs .sport-br * {
    cursor: cell;
}

#root .match-breadcrumbs .sport-br a .default-sport,
#root .match-breadcrumbs .category-br a .default-flag {
    height: 36px;
    width: 28px;
}
#root .match-breadcrumbs .category-br a .default-flag {
    background-size: 20px !important;
    display: none;
}

#root .mobile .match-breadcrumbs .sport-br a .br-name,
#root .mobile .match-breadcrumbs .category-br a .br-name {
    display: none;
}

#root .match-breadcrumbs .default-sport, #root .match-breadcrumbs .default-flag {
    display: initial;
}
#root .desktop .match-breadcrumbs .default-sport, #root .desktop .match-breadcrumbs .default-flag {
    display: none;
}

#root .match-breadcrumbs .teams {
    display: none;
}

#root .other-matches-overlay {
    position: absolute;
    top: 36px;
    box-shadow: var(--ds-2p);
}

#root .match-breadcrumbs .other-matches ul {
    position: unset;
    border-radius: 0;
    margin: 0;
    padding: unset;
    box-shadow: unset;
}

#root .match-breadcrumbs .other-matches > ul {
    padding: 0;
}

#root .match-breadcrumbs .selected {
    background-color: var(--c-emphasis);
    color: var(--c-white-e);
}

#root .desktop.device-desktop .match-breadcrumbs .selected:hover {
    color: var(--c-white-e);
}

#root .beto-match-breadcrumbs .match-breadcrumbs .selected * {
    color: var(--c-emphasis);
    padding: 0;
}

#root .match-breadcrumbs .other-matches .group-heading {
    opacity: 1;
    font-size: 12px;
    line-height: 1.2;
}

#root .match-breadcrumbs .other-matches .group-country-tournament-separator {
    display: none;
}

#root .match-breadcrumbs .other-match .match-label {
    width: 100%;
    flex: 1 0 100%;
}

#root .desktop .match-breadcrumbs .other-matches-wrapper {
    overflow-x: hidden;
    overflow-y: scroll;
    min-width: 100%;
    max-width: 100px;
    max-height: 400px;
}

.match-breadcrumbs a, .match-breadcrumbs span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.match-breadcrumbs .match-period {
    display: none;
}

.match-breadcrumbs .match-progress {
    order: -1;
}

.match-breadcrumbs .match-minute {
    width: auto;
    flex: 1 0 100%;
    font-weight: 400;
    line-height: 30px;
}

.match-breadcrumbs .tournament-br > a > span:last-child {
    padding-right: 12px;
    text-indent: 0;
}

.match-breadcrumbs a {
    display: flex;
}

.match-breadcrumbs li.selected a {
    white-space: normal;
}


/********************************************* BREADCRUMBS DROPDOWN — body-level overlay ***************************************/

/* Hide PrimeNG arrows */
body .ui-overlaypanel:before,
body .ui-overlaypanel:after {
    display: none;
}

/* Ensure the overlay panel itself has a solid background — prevents page
   content bleeding through below the styled rows */
.breadcrumbs-dd.ui-overlaypanel {
    z-index: 9999 !important;
    background-color: var(--c-paper) !important;
    overflow: hidden !important;
}

/* Rows must also be explicitly opaque */
.breadcrumbs-dd li.other-match {
    background-color: var(--c-paper) !important;
}

/* Mobile: breadcrumb bar is sticky at top: 54px, so overlay needs top correction.
   :has() lets us reach .breadcrumbs-dd on <body> based on .mobile deep inside #root. */
body:has(.mobile app-block.match-breadcrumbs) .breadcrumbs-dd.ui-overlaypanel {
    top: 90px !important; /* 54px header + 36px breadcrumb bar */
}

/* Remove inner padding */
.breadcrumbs-dd .ui-overlaypanel-content {
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Close button */
body .ui-overlaypanel .ui-overlaypanel-close {
    display: none;
    right: 8px;
    top: -30px;
    border-radius: 2px;
    background: url(/v1.02/r/images/site/icons/Close.svg) center center / 20px no-repeat;
    background-color: var(--c-emphasis);
}

/* ── Wrapper ──────────────────────────────── */

.breadcrumbs-dd .other-matches-wrapper {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    max-width: 360px;
    min-width: 240px;
    max-height: 400px;
    height: auto;
    background: var(--c-paper);
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px #0006;
    border-bottom: 2px solid var(--c-background);
}

/* Scrollbar styling so it doesn't overlap content */
.breadcrumbs-dd .other-matches-wrapper::-webkit-scrollbar {
    width: 4px;
}
.breadcrumbs-dd .other-matches-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--c-shade-b);
    border-radius: 2px;
}
.breadcrumbs-dd .other-matches-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* Prevent scroll from propagating to the page */
.breadcrumbs-dd .other-matches-wrapper {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Lock body scroll while the overlay is open.
   PrimeNG appends .breadcrumbs-dd to body when open and removes it when closed,
   so :has() naturally tracks the open/closed state with no JS needed. */
body:has(.breadcrumbs-dd.ui-overlaypanel) {
    overflow: hidden;
}

/* ── Outer UL (one per tournament group) ─── */

.breadcrumbs-dd .other-matches-wrapper > ul.other-matches {
    margin: 0 0 8px 8px;
    background-color: var(--c-white);
    position: unset;
    border-radius: 0;
    padding: 0;
    box-shadow: unset;
}

/* ── Inner UL (match rows) ──────────────── */

.breadcrumbs-dd ul.other-group-matches {
    display: flex;
    flex-direction: column;
    background-color: var(--c-paper);
    margin: 0;
    padding: 0;
    position: unset;
    border-radius: 0;
    box-shadow: unset;
}

/* ── Group heading ──────────────────────── */

.breadcrumbs-dd li.group-heading {
    display: flex;
    height: auto;
    flex-wrap: wrap;
    width: 100%;
    background-color: var(--c-emphasis-b);
    border: 0;
    color: var(--c-white);
    opacity: 1;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 0;
}

.breadcrumbs-dd li.group-heading span {
    height: auto;
    line-height: 14px;
    padding-right: 4px;
}

.breadcrumbs-dd span.group-country-tournament-separator {
    display: none;
}

/* ── Match row ──────────────────────────── */

.breadcrumbs-dd li.other-match {
    display: flex;
    flex-direction: row;
    height: 40px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    color: var(--c-black);
    background-color: var(--c-paper) !important;
    border-bottom: 1px solid var(--c-shade);
    font-size: 13px;
    padding: 4px 6px 4px 4px; /* right padding accounts for scrollbar */
    box-sizing: border-box;
}

.breadcrumbs-dd li.other-match:hover {
    background-color: var(--c-shade-b);
    color: var(--c-black-e);
}

/* ── Pregame date/time ──────────────────────────────────────────────────────
   Pregame rows have .match-date-and-time > .match-date + .match-time
   instead of .live-score/.match-minute. Keep them in a compact right column.
   ─────────────────────────────────────────────────────────────────────────── */

.breadcrumbs-dd li.other-match .match-date-and-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    margin-left: 8px;
    padding-right: 6px;
    white-space: nowrap;
    overflow: visible;
    position: static !important; /* prevent sticky from global CSS */
}

.breadcrumbs-dd .other-matches-wrapper .match-date-and-time,
.breadcrumbs-dd .other-matches-wrapper .match-date,
.breadcrumbs-dd .other-matches-wrapper .match-time {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
}

/* Pregame: .match-info is position:absolute in global CSS — reset it */
.breadcrumbs-dd .other-matches li .match-info {
    position: static !important;
    top: auto !important;
    right: auto !important;
}

.breadcrumbs-dd li.other-match .match-date {
    font-size: 10px;
    line-height: 13px;
    color: var(--c-text-secondary, #888);
    font-weight: 400;
}

.breadcrumbs-dd li.other-match .match-time {
    font-size: 12px;
    line-height: 15px;
    font-weight: 600;
    color: var(--c-black);
}

.breadcrumbs-dd li.other-match.selected .match-time,
.breadcrumbs-dd li.other-match.selected .match-date {
    color: var(--c-white);
}

/* ── Selected match ─────────────────────── */

.breadcrumbs-dd li.other-match.selected {
    background-color: var(--c-emphasis);
    color: var(--c-white-e);
}

.breadcrumbs-dd li.other-match.selected:hover {
    background-color: var(--c-emphasis);
    color: var(--c-white-e);
}

.breadcrumbs-dd li.other-match.selected a {
    color: var(--c-white-e);
    font-weight: 600;
}

/* ── Match label ────────────────────────── */

.breadcrumbs-dd li.other-match .match-label-container {
    display: inline-flex;
    flex-direction: row;
    flex: 1 1 auto;
    font-weight: 600;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.breadcrumbs-dd li.other-match .match-label {
    line-height: 16px;
    width: 100%;
    flex: 1 0 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Live score ─────────────────────────── */

.breadcrumbs-dd span.live-score {
    color: var(--c-green);
    font-weight: 600;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
    padding-right: 4px;
}

.breadcrumbs-dd li.other-match.selected span.live-score {
    color: var(--c-white);
}

.breadcrumbs-dd span.live-score span {
    line-height: 15px;
    text-align: right;
    padding: 0 5px;
}

/* ── Match progress / minute ────────────── */

.breadcrumbs-dd span.match-progress {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 36px;
    padding-left: 4px;
}

.breadcrumbs-dd span.match-period {
    display: none;
}

.breadcrumbs-dd span.match-minute {
    width: auto;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.3;
    color: var(--c-text-secondary, #888);
    white-space: nowrap;
}