/* Globale Neon-Farben */
:root {
    --neon-1-rgb: 255, 235, 59;
    --neon-2-rgb: 0, 176, 255;   
    --neon-3-rgb: 57, 255, 20;   
    --neon-4-rgb: 181, 23, 158;   
    --neon-5-rgb: 255, 145, 0;  
    --neon-6-rgb: 255, 0, 60;
    --neon-7-rgb: 224, 224, 224; 
}

.tier-1 { --tier-color: rgb(var(--neon-1-rgb)); --tier-color-rgb: var(--neon-1-rgb); }
.tier-2 { --tier-color: rgb(var(--neon-2-rgb)); --tier-color-rgb: var(--neon-2-rgb); }
.tier-3 { --tier-color: rgb(var(--neon-3-rgb)); --tier-color-rgb: var(--neon-3-rgb); }
.tier-4 { --tier-color: rgb(var(--neon-4-rgb)); --tier-color-rgb: var(--neon-4-rgb); }
.tier-5 { --tier-color: rgb(var(--neon-5-rgb)); --tier-color-rgb: var(--neon-5-rgb); }
.tier-6 { --tier-color: rgb(var(--neon-6-rgb)); --tier-color-rgb: var(--neon-6-rgb); }
.tier-7 { --tier-color: rgb(var(--neon-7-rgb)); --tier-color-rgb: var(--neon-7-rgb); }

.grid-gold { --tier-color: #ffd700; --tier-color-rgb: 255, 215, 0; }
.grid-silver { --tier-color: #c0c0c0; --tier-color-rgb: 192, 192, 192; }
.grid-bronze { --tier-color: #cd7f32; --tier-color-rgb: 205, 127, 50; }

html, body.gtsl-obs-mode { background-color: transparent !important; background: transparent !important; }
body.gtsl-obs-mode #page, body.gtsl-obs-mode #wrapper, body.gtsl-obs-mode .site-content, body.gtsl-obs-mode #content, body.gtsl-obs-mode #primary, body.gtsl-obs-mode #main { background-color: transparent !important; background: none !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important;}
body.gtsl-obs-mode header, body.gtsl-obs-mode footer, body.gtsl-obs-mode .sidebar, body.gtsl-obs-mode .entry-header, body.gtsl-obs-mode .page-header, body.gtsl-obs-mode .entry-title, body.gtsl-obs-mode .page-title, body.gtsl-obs-mode h1 { display: none !important;}

.border-gold { border: 2px solid #ffd700 !important; }
.border-silver { border: 2px solid #c0c0c0 !important; }
.border-bronze { border: 2px solid #cd7f32 !important; }
.border-none { border: 2px solid transparent !important; }
.podium-gold { background: linear-gradient(90deg, rgba(255,215,0,0.2), transparent) !important;}
.podium-silver { background: linear-gradient(90deg, rgba(192,192,192,0.2), transparent) !important;}
.podium-bronze { background: linear-gradient(90deg, rgba(205,127,50,0.2), transparent) !important;}
.no-border { border-left: none !important; }
.bg-none { background: rgba(0,0,0,0.8) !important; }

.gtsl-logo-header { object-fit: contain; }
.ticker-logo-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding-right: 15px; height: 100%; padding: 5px 15px 4px 0; box-sizing: border-box;}
.gtsl-logo-ticker { object-fit: contain; }
.ticker-live-text { font-size: 11px; color: #ff073a; font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 5px #ff073a; }
.ersatz-w { color: #ff073a; text-shadow: 0 0 8px #ff073a, 0 0 2px #fff; font-weight: 900; }

.gtsl-popup-overlay { position: fixed; top: 75px; width: 440px; font-family: 'Segoe UI', Arial, sans-serif; color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.7); }
.table-position { right: 50px; }
.kalender-position { left: 50px; top: 75px; }

.overlay-header { padding: 12px 15px; font-weight: 900; font-size: 18px; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); text-transform: uppercase; display: flex; align-items: center; }
.table-brand { background: linear-gradient(90deg, #e60012, #aa000d); border-bottom: 2px solid #ff4d5a; }
.kalender-brand { background: linear-gradient(90deg, #5a6268, #343a40); border-bottom: 2px solid #adb5bd; }
.overlay-content { background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(8px); padding: 10px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }
.overlay-driver-row { display: flex; align-items: center; padding: 6px 12px; margin-bottom: 4px; background: rgba(255,255,255,0.03); font-weight: bold; font-size: 14px; border-radius: 4px; width: 100%; box-sizing: border-box; }
.ov-rank { min-width: 55px; font-size: 15px; color: #aaa; text-align: left; margin-right: 5px; flex-shrink: 0 !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap;}
.ov-name { flex-grow: 1; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ov-points { color: #ffd700; font-size: 14px; font-family: monospace; flex-shrink: 0; text-align: right; min-width: 60px; }

body.gtsl-obs-mode { width: 100vw; height: 100vh; overflow: hidden; margin: 0 !important; padding: 0 !important; }

#kalender-global-ticker { display: flex; align-items: center; background: linear-gradient(90deg, rgba(15,15,15,0.95), rgba(30,30,30,0.95)); border-bottom: 2px solid rgba(255,255,255,0.1); font-family: 'Segoe UI', Arial, sans-serif; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.kalender-ticker-label { background: #e60012; color: #fff; font-weight: 900; padding: 8px 14px; font-size: 15px; text-transform: uppercase; z-index: 2; box-shadow: 2px 0 5px rgba(0,0,0,0.6); letter-spacing: 1px; }
.kalender-ticker-wrap { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; }
.kalender-ticker-move { display: inline-flex; color: #aaa; font-weight: bold; font-size: 16px; animation: scrollKalGlobal 12s linear infinite; }
@keyframes scrollKalGlobal { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33333%); } }

.kalender-race-card { background: linear-gradient(135deg, rgba(var(--tier-color-rgb), 0.25) 0%, rgba(12,12,12,0.92) 35%); border-left: 4px solid var(--tier-color); margin-bottom: 8px; border-radius: 4px; box-shadow: 3px 3px 10px rgba(0,0,0,0.65); display: flex; align-items: center; padding: 0; min-height: 55px; overflow: hidden; }
.font-r-box-large { width: 36px !important; height: 36px !important; font-size: 15px !important; display: flex; align-items: center; justify-content: center; margin: 10px !important; border-radius: 4px !important; background: var(--tier-color); color: #000; font-weight: 900; box-shadow: 0 2px 5px rgba(0,0,0,0.5); flex-shrink: 0; }
.kalender-mid-stack { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; padding: 6px 15px 6px 5px; overflow: hidden; line-height: 1.2; }
.kalender-track-title-large { font-weight: 900; font-size: 14px; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 3px #000; margin-bottom: 2px; white-space: normal; word-wrap: break-word; }
.kalender-date-col { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: 15px; text-align: center; min-width: 70px; flex-shrink: 0; line-height: 1; }
.kalender-date-text { font-weight: 900; font-size: 14px; color: #ffffff !important; text-shadow: 1px 1px 2px #000; }
.kalender-amp { color: #666666 !important; font-size: 11px; font-weight: bold; margin: 2px 0; }
.single-centered { font-size: 15px; }
.kalender-weather-fixed-box { width: 55px; height: 55px; font-size: 32px !important; display: flex; align-items: center; justify-content: center; text-shadow: 0 0 10px rgba(var(--tier-color-rgb), 0.5); border-left: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); flex-shrink: 0; }

.gtsl-shootout-fullscreen { position: fixed; top: 15px; left: 20px; right: 20px; display: flex; flex-direction: column; font-family: 'Segoe UI', Arial, sans-serif; color: #fff; }
.shootout-header-main { text-align: center; font-size: 22px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(90deg, #0056b3, #001f3f, #0056b3); padding: 8px 20px; border-radius: 6px; border-bottom: 3px solid #3399ff; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; width: 100%; box-sizing: border-box; box-shadow: 0 5px 15px rgba(0,0,0,0.6); }
.shootout-grid-container { display: flex; justify-content: space-between; gap: 8px; background: rgba(10,10,10,0.85); padding: 12px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.7); }
.grid-col { display: flex; flex-direction: column; flex: 1; gap: 5px; }
.grid-driver-box { display: flex; align-items: center; padding: 6px 8px; border-radius: 4px; font-weight: bold; }
.ersatz-slim-box { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 3px 6px !important; }
.g-name-slim { text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffffff; font-weight: 900; font-size: 11px; letter-spacing: 0.5px; margin: 0; text-shadow: 1px 1px 1px #000; }
.g-time-slim { font-family: monospace; font-size: 12px; color: #ffffff; text-shadow: 1px 1px 2px #000; margin: 0; }
.grid-col-header { background: linear-gradient(90deg, rgba(6,55,255,0.7), rgba(209,10,20,0.7)); color: #fff; text-align: center; font-weight: 900; font-size: 14px; padding: 4px 0; border-radius: 4px; margin-bottom: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.5); border-bottom: 2px solid rgba(255,255,255,0.2); text-shadow: 1px 1px 2px #000; letter-spacing: 1px; }

.neon-grid-box { background: linear-gradient(135deg, rgba(var(--tier-color-rgb), 0.5) 0%, transparent 50%), rgba(15,15,15,0.85); border-left: 4px solid var(--tier-color); box-shadow: 2px 2px 6px rgba(0,0,0,0.6), inset 1px 1px 2px rgba(255,255,255,0.1); }
.neon-grid-box-ersatz { background: linear-gradient(135deg, rgba(var(--tier-color-rgb), 0.5) 0%, transparent 50%), repeating-linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.8) 10px, rgba(150,150,150,0.2) 10px, rgba(150,150,150,0.2) 20px), rgba(15,15,15,0.85); border-left: 4px solid var(--tier-color); box-shadow: 2px 2px 6px rgba(0,0,0,0.6), inset 1px 1px 2px rgba(255,255,255,0.1); }

.g-rank-box { text-transform: uppercase; white-space: nowrap; color: #ffffff; font-weight: 900; font-size: 13px; letter-spacing: 0.5px; background: rgba(0, 0, 0, 0.6); padding: 3px 5px; border-radius: 4px; border: 2px solid var(--tier-color); box-shadow: 0 0 4px rgba(var(--tier-color-rgb), 0.4); text-shadow: 1px 1px 1px #000; display: inline-block; margin-bottom: 2px; width: fit-content; min-width: 30px; text-align: center; flex-shrink: 0 !important; overflow: visible !important; text-overflow: clip !important; }
.g-info { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; overflow: hidden; width: 100%;}
.g-name { text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffffff; font-weight: 900; font-size: 13px; letter-spacing: 0.5px; background: rgba(0, 0, 0, 0.6); padding: 3px 6px; border-bottom: 2px solid var(--tier-color); box-shadow: 0 0 4px rgba(var(--tier-color-rgb), 0.4); text-shadow: 1px 1px 1px #000; display: inline-block; margin-bottom: 2px; width: fit-content; max-width: 90%; }
.neon-text { font-family: monospace; font-size: 13px; color: #ffffff; text-shadow: 1 1 2px #000; }

.gtsl-top-ticker { position: fixed; top: 0; left: 0; width: 100%; height: 48px; background: linear-gradient(90deg, #0637FF, #D10A14); font-family: 'Segoe UI', Arial, sans-serif; color: #fff; display: flex; align-items: center; box-shadow: 0 5px 25px rgba(0,0,0,0.6); overflow: hidden; z-index: 99999; }
.ticker-title { background: #111; color: #fff; font-weight: 900; padding: 0 15px; height: 100%; display: flex; align-items: center; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; box-shadow: 5px 0 15px rgba(0,0,0,0.5); z-index: 2; }
.ticker-wrapper { overflow: hidden; display: flex; align-items: center; flex-grow: 1; height: 100%; position: relative; }
.ticker-scroll { display: inline-block; white-space: nowrap; font-weight: bold; font-size: 15px; letter-spacing: 0.6px; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.ticker-brand { color: #fff; padding-right: 15px; }

.ticker-box { padding: 2px 10px; border-radius: 6px; display: inline-block; margin-right: 10px; }
.neon-ticker-box { background: rgba(15,15,15,0.9); border: 1px solid rgba(255,255,255,0.1); padding: 0; display: inline-flex; align-items: center; overflow: hidden; }
.ticker-pos-number { background: linear-gradient(135deg, rgba(var(--tier-color-rgb), 0.7) 0%, transparent 80%); border-left: 4px solid var(--tier-color); padding: 4px 8px; margin-right: 8px; font-weight: 900; }
.ticker-name { color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.ticker-time { padding-right: 8px; font-family: monospace; font-size: 16px; }

#gtsl-alert-container { position: fixed; top: 52px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 99998; perspective: 1000px; }
.gtsl-live-alert { position: relative; overflow: hidden; display: flex; align-items: center; width: 330px; height: 52px; background: linear-gradient(135deg, rgba(var(--tier-color-rgb), 0.35) 0%, rgba(10,10,10,0.96) 40%); border-left: 5px solid var(--tier-color); border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(var(--tier-color-rgb), 0.25); font-family: 'Segoe UI', Arial, sans-serif; color: #fff; overflow: hidden; animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.gtsl-alert-badge { background: #0056b3; color: #fff; font-weight: 900; font-size: 10px; height: 100%; width: 55px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 3px 0 8px rgba(0,0,0,0.3); flex-shrink: 0; }
.gtsl-alert-mid { flex-grow: 1; padding: 0 12px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gtsl-alert-name { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px #000; }
.gtsl-alert-sub { font-size: 10px; font-weight: bold; color: #aaa; margin-top: 1px; }
.gtsl-alert-time { font-size: 15px; font-weight: 900; color: #00ffff !important; text-shadow: 0 0 8px rgba(0,255,255, 0.6); padding-right: 12px; flex-shrink: 0; }
@keyframes alertSlideIn { 0% { transform: translateY(-30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.hide-alert { animation: alertSlideOut 0.5s ease-in forwards !important; }
@keyframes alertSlideOut { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-20px) scale(0.9); opacity: 0; } }

.monospace { font-family: monospace; }

@keyframes led-flash { 0%, 100% { box-shadow: 0 0 10px inset rgba(57, 255, 20, 0.4), 0 0 5px rgba(57, 255, 20, 0.4); border-color: #39ff14 !important; background-color: rgba(57, 255, 20, 0.15); } 50% { box-shadow: 0 0 20px inset #39ff14, 0 0 12px #39ff14; background-color: rgba(57, 255, 20, 0.3); border-color: #39ff14 !important; color: #fff;} }
.led-table-highlight { animation: led-flash 1.5s infinite; border: 2px solid #39ff14 !important; }
.led-ticker-highlight { color: #39ff14 !important; text-shadow: 0 0 8px rgba(57,255,20,0.8); border-color: #39ff14 !important; animation: led-flash 1.5s infinite; }

.compact-mode { gap: 6px !important; padding: 10px !important; }
.compact-mode .grid-col { gap: 3px !important; }
.compact-mode .grid-driver-box { padding: 3px 5px !important; }
.compact-mode .grid-col-header { font-size: 12px !important; padding: 3px 0 !important; margin-bottom: 3px !important; }
.compact-mode .g-name { font-size: 11px !important; padding: 2px 4px !important; margin-bottom: 1px !important; }
.compact-mode .neon-text { font-size: 11px !important; }
.compact-mode .g-rank-box { font-size: 11px !important; padding: 2px 4px !important; margin-bottom: 1px !important; }
.compact-mode .g-info { line-height: 1.1 !important; }

#gtsl-chat-popup-container { position: fixed; bottom: 25%; left: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100000; }
.chat-command-popup { display: flex; align-items: center; width: 380px; height: 60px; background: linear-gradient(135deg, rgba(15,15,15,0.95) 0%, rgba(25,25,25,0.85) 100%); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.8), 5px 5px 15px rgba(0,0,0,0.5); font-family: 'Segoe UI', Arial, sans-serif; color: #fff; overflow: hidden; animation: chatSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.chat-popup-badge { color: #fff; font-weight: 900; font-size: 11px; height: 100%; width: 50px; display: flex; align-items: center; justify-content: center; text-align: center; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 2px; text-transform: uppercase; box-shadow: -2px 0 8px rgba(0,0,0,0.5); flex-shrink: 0; }
.chat-popup-mid { flex-grow: 1; padding: 0 15px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.chat-popup-name { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; text-shadow: 1px 1px 2px #000; }
.chat-popup-sub { font-size: 13px; font-weight: bold; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.alert-gold-podium { background: linear-gradient(135deg, rgba(255, 215, 0, 0.35) 0%, rgba(10,10,10,0.98) 50%) !important; border-left: 5px solid #ffd700 !important; animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulse-gold 2s infinite alternate !important; }
.alert-gold-podium .gtsl-alert-badge { background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7) !important; color: #000 !important; font-weight: 900; text-shadow: none !important; }
.alert-gold-podium .gtsl-alert-time { color: #ffd700 !important; text-shadow: 0 0 10px rgba(255,215,0,0.6) !important; }

.alert-silver-podium { background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(10,10,10,0.98) 50%) !important; border-left: 5px solid #c0c0c0 !important; animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulse-silver 2s infinite alternate !important; }
.alert-silver-podium .gtsl-alert-badge { background: linear-gradient(45deg, #9c9e9f, #f3f4f5, #7f8284, #e3e4e5) !important; color: #000 !important; font-weight: 900; text-shadow: none !important; }
.alert-silver-podium .gtsl-alert-time { color: #e3e4e5 !important; text-shadow: 0 0 10px rgba(192,192,192,0.6) !important; }

.alert-bronze-podium { background: linear-gradient(135deg, rgba(205, 127, 50, 0.3) 0%, rgba(10,10,10,0.98) 50%) !important; border-left: 5px solid #cd7f32 !important; animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulse-bronze 2s infinite alternate !important; }
.alert-bronze-podium .gtsl-alert-badge { background: linear-gradient(45deg, #704010, #dcb080, #804a10, #e0b890) !important; color: #fff !important; font-weight: 900; text-shadow: none !important; }
.alert-bronze-podium .gtsl-alert-time { color: #ffb74d !important; text-shadow: 0 0 10px rgba(205,127,50,0.6) !important; }

.alert-shine-sweep { position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: skewX(-30deg); animation: shineSweep 4s infinite ease-in-out; }
@keyframes shineSweep { 0% { left: -150%; } 12% { left: 150%; } 100% { left: 150%; } }
@keyframes pulse-gold { 0% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(255, 215, 0, 0.3); } 100% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 30px rgba(255, 215, 0, 0.6); } }
@keyframes pulse-silver { 0% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(192, 192, 192, 0.25); } 100% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 25px rgba(192, 192, 192, 0.5); } }
@keyframes pulse-bronze { 0% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(205, 127, 50, 0.2); } 100% { box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 20px rgba(205, 127, 50, 0.4); } }

/* =========================================================
   NATIVE TWITCH CHAT: F1 PREMIUM POPUP (3-SPALTEN-LAYOUT)
   ========================================================= */

.gtsl-f1-popup {
    display: flex;
    width: 440px;
    height: 68px;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 4px;
    position: relative;
    margin-bottom: 15px;
    transform: skewX(-17deg) translateX(-150%);
    opacity: 0;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #0637FF 0%, #e60012 100%) 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), -15px 0 25px rgba(6, 55, 255, 0.5), 15px 0 25px rgba(230, 0, 18, 0.5);
    animation: chatSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.gtsl-f1-popup::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: -4px;
    z-index: -1;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.9), -35px 0 45px rgba(6, 55, 255, 0.95), 30px 0 45px rgba(230, 0, 18, 0.95);
    animation: intenseOpacityBlink 5s ease-in-out forwards;
    opacity: 0;
}

@keyframes intenseOpacityBlink {
    0%, 20%, 40%, 60%, 80% { opacity: 0; }
    10%, 30%, 50%, 70% { opacity: 1; }
    85%, 100% { opacity: 0; }
}

@keyframes chatSlideIn { 0% { transform: translateX(-120%) skewX(-17deg); opacity: 0; } 100% { transform: translateX(0) skewX(-17deg); opacity: 1; } }
.chat-hide-alert { animation: chatSlideOut 0.5s ease-in forwards !important; }
@keyframes chatSlideOut { 0% { transform: translateX(0) skewX(-17deg); opacity: 1; } 100% { transform: translateX(-120%) skewX(-17deg); opacity: 0; } }

.f1-logo-box {
    background: linear-gradient(135deg, #0637FF, #e60012);
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 0 15px rgba(0,0,0,0.7);
    z-index: 2;
    border-top-left-radius: 4px;
}

.f1-logo-box img {
    width: 65px;
    height: auto;
    transform: skewX(17deg);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.f1-data-box {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    transform: skewX(17deg) translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.col-car {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
}

/* SPALTE 1: Fahrzeuglogo (Zweizeilig zentriert) - Wird nur geladen, wenn ein Logo da ist! */
.col-car {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
}

.f1-car-icon {
    height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.8));
}

/* SPALTE 2: Liga und Fahrer */
.col-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    gap: 4px;
    min-width: 0;
}

.f1-liga {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Farbzuordnungen der Ligen */
.liga-1 { color: #ffeb3b; } 
.liga-2 { color: #00b0ff; } 
.liga-3 { color: #39ff14; } 
.liga-4 { color: #b5179e; } 
.liga-5 { color: #ff9100; } 
.liga-6 { color: #ff003c; } 
.liga-7 { color: #e0e0e0; } 

/* Standard-Fahrername (Eine Zeile, mit "..."" falls zu lang) */
.f1-fahrer {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px #000;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spezial-Klasse für die Strecke (Darf über 2 Zeilen gehen) */
.f1-strecke-multiline {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    font-size: 18px; /* Minimal kleiner, damit 2 Zeilen perfekt wirken */
}
.col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
    text-align: right;
}

.f1-platz {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 1px 1px 2px #000;
}

.f1-punkte {
    color: #ff9100;
    font-size: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 145, 0, 0.5);
    line-height: 1.1;
}