.alternate-background {
    background-color: #1a1a1a !important;
    min-height: 80vh;
    padding-bottom: 50px;
}

body.streamer-mode header, 
body.streamer-mode footer, 
body.streamer-mode .hero.no-streamer,
body.streamer-mode nav,
body.streamer-mode .no-streamer {
    display: none !important;
}

/* Anpassung für den Footer-Hintergrund im Streamer-Modus */
body.streamer-mode {
    background-color: #1a1a1a !important;
}

/* Falls das Framework den Footer nicht komplett ausblendet, 
   wird hier die Farbe angeglichen */
body.streamer-mode footer {
    background-color: #1a1a1a !important;
    border: none !important;
}

.refresh-container {
    width: 100%; height: 4px; background: #333; margin: 10px 0 25px 0; border-radius: 2px;
}

.refresh-bar {
    width: 0%; height: 100%; background: #e21b1b; transition: width 1s linear;
}

.race-table {
    width: 100%; max-width: 1000px; margin: 0 auto; background: #262626; border-radius: 12px;
    border: 1px solid #444; border-collapse: separate; overflow: hidden;
}

.race-table thead th {
    background: #333; color: #fff; border-bottom: 3px solid #e21b1b; padding: 20px; font-size: 1.4rem; text-align: center;
}

.race-grid-wrapper { display: flex; flex-wrap: wrap; }
.track-info-side { flex: 1 1 320px; padding: 20px; background-color: #2d2d2d; border-right: 1px solid #444; }
.participants-side { flex: 1.5 1 400px; padding: 20px; }

.label2 { font-size: 0.7rem; text-transform: uppercase; color: #aaa; letter-spacing: 1px; }
.value { font-weight: bold; color: #ffffff; }

.track-details-container { display: flex; gap: 15px; margin-top: 10px; }
.stats-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.stat-item { border-bottom: 1px solid #444; padding-bottom: 2px; }

.track-thumb {
    width: 110px; height: 110px; background: #1a1a1a; border: 1px solid #444; border-radius: 8px; object-fit: contain; padding: 5px;
}

.member-card {
    background: #333; border: 1px solid #444; border-radius: 8px; margin-bottom: 6px; padding: 10px 15px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; position: relative;
}
.member-card.even { background: #2a2a2a; }

.member-info { flex: 1; z-index: 1; }
.member-name { color: #fff; font-weight: bold; font-size: 1rem; }
.member-model { color: #aaa; font-size: 0.8rem; display: block; }

.bot-badge {
    background: #444; color: #ff8c00; font-size: 0.65rem; padding: 1px 5px; border-radius: 4px;
    margin-left: 6px; border: 1px solid #ff8c00; vertical-align: middle;
}

.member-time-box { text-align: right; min-width: 145px; z-index: 1; }
.member-time { color: #00aaff; font-family: 'Courier New', monospace; font-weight: bold; font-size: 1.15rem; }

.member-powerup-box { width: 100%; margin-top: 8px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.05); }
.powerup-icon { width: 26px; height: 26px; margin-right: 4px; background: #000; border: 1px solid #555; border-radius: 5px; padding: 2px; }

.member-rank-bg { position: absolute; right: 45%; font-size: 2.2rem; font-weight: 900; opacity: 0.05; color: #fff; }

/* Basis-Style für alle Karten beibehalten */
.member-card {
    border: 1px solid #444; /* Standard-Rand */
    position: relative;
    /* ... restliche Styles ... */
}

/* Gold - Platz 1 */
.member-card.rank-1 {
    border-color: #ffd700 !important;
}
.member-card.rank-1 .member-time {
    color: #ffd700;
}
.member-card.rank-1 .member-rank-bg {
    color: #ffd700;
    opacity: 0.15;
}

/* Silber - Platz 2 */
.member-card.rank-2 {
    border-color: #c0c0c0 !important;
}
.member-card.rank-2 .member-time {
    color: #c0c0c0;
}

/* Bronze - Platz 3 */
.member-card.rank-3 {
    border-color: #cd7f32 !important;
}
.member-card.rank-3 .member-time {
    color: #cd7f32;
}

/* Bot Badge Style (wie im Screenshot) */
.bot-badge {
    background: transparent;
    color: #ff8c00;
    border: 1px solid #ff8c00;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

@media (max-width: 768px) { .track-info-side { border-right: none; border-bottom: 1px solid #444; } }

/* Fehlende Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Einfache Button-Styles falls kein Bootstrap genutzt wird */
.btn { padding: 8px 16px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.btn-outline-warning { border-color: #ffc107; color: #ffc107; background: transparent; }
.btn-secondary { background: #6c757d; color: white; text-decoration: none; display: inline-block; }

/* Alert Styles */
.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Abstand für den Button-Container */
.text-right.mb-3 {
    margin-top: 25px; /* Abstand zu den RaceDetails oben */
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Spezielles Styling für den aktiven Button */
.btn-warning {
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    border: 1px solid #ffc107;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Optional: Button im Streamer-Mode leicht transparent machen, 
   damit er weniger vom Content ablenkt, aber bedienbar bleibt */
body.streamer-mode #streamerBtn {
    opacity: 0.6;
    transition: opacity 0.3s;
}

body.streamer-mode #streamerBtn:hover {
    opacity: 1;
}