* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: #1a1a2e;
}

#map {
    position: fixed;
    inset: 0;
}

#ui-overlay {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

#ui-overlay > * {
    pointer-events: auto;
}

.btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.btn-primary.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#selector-panel {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 1000;
}

#selector-panel h2 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.buzz-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buzz-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buzz-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.buzz-item.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.buzz-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.buzz-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.buzz-info {
    flex: 1;
    min-width: 0;
}

.buzz-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.buzz-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buzz-status {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buzz-item.active .buzz-status {
    color: #667eea;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.4s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-status {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

#error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 20px 32px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 3000;
    text-align: center;
    max-width: 400px;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#error-message.visible {
    display: block;
}

.leaflet-container {
    background: #1a1a2e;
}

.custom-div-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.userIcon {
    width: 30px !important;
    height: 30px !important;
    background: #4285f4 !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1000 !important;
    color: white;
    font-size: 12px;
}

@media (min-width: 600px) {
    #selector-panel {
        left: auto;
        right: 16px;
        bottom: 16px;
        width: 320px;
    }
}
