.bts_page_loader_bg {
    position: fixed;
    left: -1px;
    top: -1px;
    width: 1px;
    height: 1px;
    z-index: -1;
    background-color: #000000 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.bts_page_loader {
    position: fixed;
    left: -1px;
    top: -1px;
    width: 1px;
    height: 1px;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.bts_show_page_loader .bts_page_loader_bg {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: auto;
    z-index: 9999990;
    opacity: 0.7;
}
body.bts_show_page_loader .bts_page_loader {
    left: calc(50vw - 28px);
    top: calc(50vh - 28px);
    width: 56px;
    height: auto;
    pointer-events: auto;
    z-index: 9999999;
    opacity: 1;
}


.bts_double-ring {
    --s: 56px;           /* Größe */
    --c: #aaaaaa;        /* Farbe */
    width: var(--s);
    height: var(--s);
    display: inline-block;
    position: relative;
}

.bts_double-ring::before,
.bts_double-ring::after{
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: calc(var(--s) / 12) solid transparent;
}

.bts_double-ring::before{
    border-top-color: var(--c);
    border-left-color: var(--c);
    opacity: 0.8;
    animation: bts_spin_outer 1s linear infinite;
}

.bts_double-ring::after{
    border-bottom-color: rgba(140,140,140,0.15);
    opacity: 0.9;
    animation: bts_spin_inner 1.25s linear reverse infinite;
}

@keyframes bts_spin_outer {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes bts_spin_inner {
    0%   { transform: rotate(0deg) scale(0.75); }
    100% { transform: rotate(360deg) scale(0.75); }
}
@keyframes bts_spin {
    to {
        transform: rotate(360deg);
    }
}

span.bts_h2h_teamname {
    font-weight: bold !important;
}

img.bts_quote_trend_arrow {
    position: relative;
    width: 16px !important;
    height: 16px !important;
    top: 5px;
    left: 0;
    float: right;
    opacity: 1;
}

.bts-ws-item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

/* =========================================
   1. CONTAINER & BASIS
========================================= */
.bts-trend-box {
    position: relative;
    background: linear-gradient(137deg, rgba(0, 0, 0, 1) 1%, rgba(26, 24, 24, 1) 25%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
	padding-bottom: 4px;
}

/* =========================================
   2. HEADER: DATUM & STÄRKE-BALKEN
========================================= */
.bts-trend-bar-wrapper {
    margin-bottom: 12px;
}
.bts-trend-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.bts-trend-kickoff-badge {
   margin-left: -10px;
	padding: 0px 8px;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}
.bts-trend-strength-text {
    font-size: 10px;
	font-style: italic;
    font-weight: 400;
}
.bts-trend-bar-bg {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    height: 4px;
    width: 100%;
    overflow: hidden;
}
.bts-trend-bar-fill {
    height: 4px;
    border-radius: 8px;
}

/* =========================================
   3. HEADER: LIGA, BEGEGNUNG & BUTTON
========================================= */
.bts-trend-header-row {
    display: flex;
    flex-direction: column; /* Mobil: Liga und Begegnung untereinander */
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
    position: relative;
}

/* Liga-Wrapper für Mobile flexibel lassen, PC feste Breite (siehe Media Query) */
.bts-trend-league-wrapper {
    display: flex;
    align-items: center;
    width: auto; /* Mobil dynamisch anpassen */
    max-width: 100%; /* Mobil voller Platz */
    flex-shrink: 0;
    overflow: hidden;
}
.bts-trend-league-wrapper a {
    width: 100%;
	color: #ccc !important;
    overflow: hidden;
    padding: 0px
    font-weight: 400;
    margin-right: 0px;
	margin-left: 0px;
}
/* Flagge 20% verkleinert (überschreibt Inline-Styles) */
.bts-trend-league-wrapper div[id] {
    width: 21px !important;  /* -20% von 36px */
    height: 14px !important; /* -20% von 20px */
    flex-shrink: 0; /* Verhindert, dass die Flagge gestaucht wird */
}
/* Liganame Text (abgeschnitten mit "...") */
.bts-trend-league-wrapper div:not([id]) {
    font-size: 11px !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Erzeugt die 3 Punkte bei zu langem Text */
    flex-grow: 1;
}

.bts-trend-matchup {
    font-size: 14px; 
    text-align: left;
	font-weight: 700;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    line-height: 1; 
    padding-top: 6px; /* Mobil: 4px Abstand nach oben */
}
.bts-trend-vs {
    color: #666;
    font-size: 12px; 
    font-weight: 400;
    margin: 0 6px;
}
.bts-trend-stats-btn-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
}

/* =========================================
   4. GRID LAYOUT (BUTTON & TEXTE)
========================================= */
.bts-trend-layout-grid {
    display: grid;
    gap: 16px;
    width: 100%;
    margin-bottom: -6px;
}

.bts-unified-btn { grid-area: action; margin: 0 !important; }
.bts-trend-form-texts { grid-area: texts; margin: 0 !important; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bts-trend-referee-box { grid-area: referee; margin: 0 !important; }

/* =========================================
   5. UNIFIED ACTION BUTTON (Betano Style)
========================================= */
.bts-unified-btn {
    display: flex;
    border-radius: 6px;
    border: 1px solid #1b261e !important; /* Fester dezenter Rahmen */
    background: linear-gradient(167deg,rgba(4, 26, 12, 1) 1%, rgba(0, 0, 0, 1) 95%);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-height: 38px;
}
.bts-unified-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.bts-ub-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.bts-ub-right {
    flex: 0 0 32%; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(115deg,rgba(0, 0, 0, 1) 5%, rgba(255, 255, 255, 1) 7%, rgba(238, 238, 238, 1) 32%);
    color: #111 !important; 
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -15px; 
    padding-left: 0px; 
    padding-right: 0px;
}

/* =========================================
   6. MODERNE FACT ROWS (Korrektur)
========================================= */
.bts-trend-form-texts {
   font-size: 11px; /* Sichert die Originalgröße */
}

.bts-trend-fact-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Verhindert das Übereinanderrutschen */
    align-items: stretch; 
    border-radius: 4px; 
    margin-bottom: 6px;
    min-height: 30px;
	border: 1px solid #333;
    width: 100%;
    background: #2a2a2a; /* Fester dunkler Hintergrund für den Gesamtkontrast */
    overflow: hidden;
}

.bts-fact-left {	
    flex: 0 0 20%;
    min-width: 20%;
    max-width: 20%; /* Wichtig, damit der Text nicht nach rechts rausdrückt */
    display: flex;
    align-items: center;
    background: linear-gradient(137deg, rgba(0, 0, 0, 1) 1%, rgba(26, 24, 24, 1) 25%);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px; /* Etwas mehr Platz rechts wegen der Schräge */
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    z-index: 2;

    /* Text-Kürzung mit "..." */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Erforderlich für text-overflow in diesem Kontext */
    line-height: 28px; /* Zentriert den Text vertikal bei display: block */
}

.bts-fact-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 18px; /* Padding angepasst, damit der Text gut sitzt */
    font-style: italic;
    font-size: 11px; /* Zurück auf Originalgröße */
    line-height: 1.4;
    margin-left: -12px; /* Zieht den Textbereich bündig unter die Schräge des linken Blocks */
    z-index: 1;
	
	
}

.bts-fact-right strong { 
    color: #fff; 
    font-weight: 600; 
}

/* =========================================
   7. MOBILE VIEW
========================================= */
.bts-trend-layout-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
        "action"
        "texts"
        "referee";
}

@media (max-width: 767px) {
    .bts-desktop-only { display: none; }
    .bts-ub-right { font-size: 13px; flex: 0 0 42%; }
    .bts-ub-left { font-size: 13px; padding-left: 5px; }
}

/* =========================================
   8. DESKTOP VIEW (>= 768px)
========================================= */
@media (min-width: 768px) {
    .bts-desktop-only { display: inline; }
    
    .bts-trend-header-row {
        flex-direction: row;
        align-items: center; 
        gap: 4px;
    }
    .bts-trend-matchup { padding-top: 0; }
    .bts-trend-stats-btn-wrapper { position: relative; margin-left: auto; }
    .bts-trend-league-wrapper { width: 120px; }

    /* Grid: Links Button, Rechts Texte */
    .bts-trend-layout-grid {
        grid-template-columns: 0.9fr 1fr; 
        grid-template-areas:
            "action texts"
            "referee referee";
        align-items: start; 
		margin-bottom: -10px;
    }
    
    .bts-trend-form-texts { 
        font-size: 12px; 
    }
    .bts-ub-left { font-size: 13px;
        font-weight: 600; }
    .bts-ub-right { font-size: 14px; }
}


