.broadcast-bar {
    width: 95%;
    max-width: 1100px;
    margin: 20px auto;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.broadcast-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: scan-light 8s infinite;
}

.broadcast-bar.waiting .live-content-wrapper { display: none !important; }
.broadcast-bar.live .offline-content-wrapper { display: none !important; }

.broadcast-bar.live {
    border-color: #00ff85;
    box-shadow: 0 0 20px rgba(0, 255, 133, 0.15);
}

.status-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.status-live-indicator {
    display: flex;
    align-items: center;
    color: #00ff85;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    position: relative;
}

.dot { width: 8px; height: 8px; background: #00ff85; border-radius: 50%; margin-right: 8px; }
.pulse {
    position: absolute; left: 0; width: 8px; height: 8px; background: #00ff85;
    border-radius: 50%; animation: pulse-ring 1.5s infinite;
}

.live-status-ok { 
    color: #00ff85;
    font-size: 10px; 
    font-weight: 900; 
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    background: rgba(0, 255, 133, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.quality-badge {
    background: #ffd700;
    color: #000;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
}

.signal-bar-container {
    width: 100%; height: 4px; background: rgba(255,255,255,0.05);
    border-radius: 10px; overflow: hidden;
}

.signal-fill {
    width: 100%; height: 100%; 
    background: linear-gradient(90deg, #00ff85, #008f4b);
    animation: signal-flow 2s infinite linear;
}

.status-info-row {
    color: #eee; font-size: 11px; text-align: center; font-weight: bold;
    position: relative; z-index: 2;
}

.ping-display { color: #00d1ff; }
.divider { color: #333; margin: 0 8px; }

.status-offline-indicator {
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 11px; font-weight: bold; margin-bottom: 5px;
}

.dot-gray { width: 8px; height: 8px; background: #333; border-radius: 50%; margin-right: 8px; }

.status-message-text {
    background: rgba(255,255,255,0.02);
    color: #666; text-align: center; padding: 12px;
    font-size: 12px; font-weight: bold; border-radius: 6px;
    border: 1px dashed rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .live-content-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
    }
    .status-header-main { margin-bottom: 0; flex-shrink: 0; }
    .signal-bar-container { flex-grow: 1; max-width: 400px; margin-bottom: 0; }
    .status-info-row { margin-top: 0; white-space: nowrap; }
}

@media (max-width: 767px) {
    .broadcast-bar { max-width: 450px; padding: 15px; }
    .status-header-main { margin-bottom: 12px; }
    .signal-bar-container { margin-bottom: 10px; }
}

@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes signal-flow { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes scan-light { 0% { left: -100%; } 25% { left: 150%; } 100% { left: 150%; } }