        * { box-sizing: border-box; }
        html, body { margin: 0; padding: 0; height: 100%; font-family: Arial, sans-serif; }
        #map { height: 100vh; width: 100%; cursor: default; }
        
        .news-feed {
            position: absolute;
            top: 10px; left: 10px; z-index: 1000;
            width: 340px;
            background: white; border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            overflow: hidden; display: flex; flex-direction: column;
            max-height: 80vh;
        }
        .news-feed-header {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white; padding: 10px 14px;
            font-size: 13px; font-weight: bold;
            flex-shrink: 0;
        }
        .news-list { overflow-y: auto; padding: 4px; }
        .news-item {
            padding: 8px 10px; border-bottom: 1px solid #eee;
            cursor: pointer; transition: background 0.15s;
        }
        .news-item:last-child { border-bottom: none; }
        .news-item:hover { background: #f5f7fa; }
        .news-title {
            font-size: 12px; font-weight: bold; color: #2c3e50;
            line-height: 1.3; margin-bottom: 4px;
            display: -webkit-box; -webkit-line-clamp: 2;
            -webkit-box-orient: vertical; overflow: hidden;
        }
        .news-meta { font-size: 10px; color: #95a5a6; display: flex; align-items: center; gap: 4px; }
        
        .badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 9px;
            font-weight: bold;
            color: white;
        }
        .badge-result { background: #e74c3c; }
        .badge-announcement { background: #f39c12; }
        .badge-tech { background: #2ecc71; }
        
        .show-all-btn {
            width: 100%;
            padding: 10px;
            border: none;
            background: #ecf0f1;
            color: #2c3e50;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.15s;
            font-family: Arial, sans-serif;
        }
        .show-all-btn:hover { background: #d5dbdb; }
        
        .channels-section {
            border-top: 2px solid #2c3e50;
            margin-top: 8px;
        }
        .channels-header {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            color: white;
            padding: 8px 14px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            user-select: none;
        }
        .channels-header .channels-arrow {
            margin-left: auto;
            font-size: 10px;
            transition: transform 0.2s;
        }
        .channels-section.expanded .channels-header .channels-arrow {
            transform: rotate(180deg);
        }
        .channels-list {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.25s ease;
            background: #f8f9fa;
        }
        .channels-section.expanded .channels-list {
            max-height: 500px;
            overflow-y: auto;
        }
        .channel-group { padding: 6px 10px; }
        .channel-group-title {
            font-size: 9px;
            font-weight: bold;
            color: #95a5a6;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .channel-link {
            display: block;
            padding: 5px 8px;
            margin-bottom: 3px;
            background: white;
            border-radius: 6px;
            text-decoration: none;
            color: #2c3e50;
            font-size: 11px;
            font-weight: bold;
            border-left: 3px solid #2c3e50;
            transition: all 0.15s;
        }
        .channel-link:hover {
            background: #e8ecf0;
            transform: translateX(2px);
        }
        .channel-link::before {
            content: '📡 ';
            font-size: 10px;
        }
        
        /* === РЕКЛАМА АВТОДРОМА В ЛЕВОЙ ПАНЕЛИ === */
        .panel-sponsor {
            border-top: 2px solid #f39c12;
            background: linear-gradient(135deg, #fff8e1, #ffecb3);
            padding: 12px 14px;
        }
        .panel-sponsor-label {
            font-size: 9px;
            font-weight: bold;
            color: #e67e22;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }
        .panel-sponsor-name {
            font-size: 14px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 6px;
        }
        .panel-sponsor-text {
            font-size: 11px;
            color: #7f8c8d;
            line-height: 1.4;
            margin-bottom: 10px;
        }
        .panel-sponsor-link {
            display: inline-block;
            padding: 6px 12px;
            background: #f39c12;
            color: white !important;
            border-radius: 6px;
            font-size: 11px;
            font-weight: bold;
            text-decoration: none;
            transition: background 0.15s;
        }
        .panel-sponsor-link:hover {
            background: #e67e22;
        }
        
        .top-panel {
            position: absolute; top: 10px; left: 360px; z-index: 1000;
            display: flex; flex-direction: column; gap: 6px;
            max-width: 520px;
        }
        .search-box {
            background: white; border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            padding: 6px;
            display: flex; gap: 6px;
        }
        .search-box input {
            flex: 1;
            border: none; outline: none;
            padding: 6px 10px;
            font-size: 13px;
            border-radius: 8px;
            background: #ecf0f1;
            font-family: Arial, sans-serif;
        }
        .search-box input:focus { background: #d5dbdb; }
        .search-box button {
            padding: 6px 12px; border: none; border-radius: 8px;
            background: #e74c3c; color: white;
            font-weight: bold; font-size: 12px; cursor: pointer;
            font-family: Arial, sans-serif;
        }
        .search-box button:hover { background: #c0392b; }
        .search-box .clear-btn { background: #95a5a6; }
        .search-box .clear-btn:hover { background: #7f8c8d; }
        
        .filter-panel {
            background: white; padding: 6px; border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            display: flex; gap: 4px; flex-wrap: wrap;
        }
        .filter-btn {
            padding: 6px 10px; border: none; border-radius: 16px;
            background: #ecf0f1; cursor: pointer; font-size: 11px;
            font-weight: bold; color: #2c3e50; transition: all 0.15s;
            font-family: Arial, sans-serif;
            opacity: 0.55;
        }
        .filter-btn:hover { opacity: 0.85; }
        .filter-btn.active {
            opacity: 1;
            color: white !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        }
        
        .filter-btn[data-category="all"] { background: #2c3e50; color: white; opacity: 1; }
        .filter-btn[data-category="drift"] { background: #e74c3c; color: white; }
        .filter-btn[data-category="expo"] { background: #8e44ad; color: white; }
        .filter-btn[data-category="circuit"] { background: #3498db; color: white; }
        .filter-btn[data-category="karting"] { background: #e91e63; color: white; }
        .filter-btn[data-category="rally"] { background: #e67e22; color: white; }
        .filter-btn[data-category="drag"] { background: #f1c40f; color: #2c3e50; }
        .filter-btn[data-category="formula"] { background: #1abc9c; color: white; }
        .filter-btn[data-category="autocross"] { background: #2ecc71; color: white; }
        .filter-btn[data-category="trophy"] { background: #795548; color: white; }
        .filter-btn[data-category="ride"] { background: #16a085; color: white; }
        
        .filter-btn[data-category="weekend"] {
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
            color: white;
        }
        .filter-btn[data-category="weekend"].active {
            background: linear-gradient(135deg, #8e44ad, #6c3483);
        }
        
        .favorites-panel {
            position: absolute; top: 10px; right: 10px; z-index: 1000;
            background: white; border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            overflow: hidden;
            max-height: 500px;
            display: flex; flex-direction: column;
        }
        .favorites-header {
            display: flex; align-items: center; gap: 6px;
            padding: 10px 14px;
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
            font-size: 13px; font-weight: bold;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }
        .favorites-header .star-icon { font-size: 16px; }
        .favorites-header .fav-count {
            background: rgba(255,255,255,0.3);
            border-radius: 10px;
            padding: 1px 7px;
            font-size: 11px;
            margin-left: auto;
        }
        .favorites-list {
            overflow-y: auto;
            max-height: 400px;
            padding: 4px;
            display: none;
            min-width: 260px;
        }
        .favorites-panel.expanded .favorites-list { display: block; }
        .favorites-panel:not(.expanded) .favorites-header .fav-label { display: none; }
        .favorites-panel:not(.expanded) .favorites-header .fav-count { display: none; }
        
        .fav-item {
            padding: 8px 10px; border-bottom: 1px solid #eee;
            cursor: pointer; transition: background 0.15s;
            font-size: 12px; color: #2c3e50;
            display: flex; justify-content: space-between; align-items: center; gap: 8px;
        }
        .fav-item:last-child { border-bottom: none; }
        .fav-item:hover { background: #f5f7fa; }
        .fav-item .fav-name { font-weight: bold; }
        .fav-item .fav-date { font-size: 10px; color: #95a5a6; }
        .fav-item .fav-remove {
            color: #e74c3c; font-weight: bold; cursor: pointer;
            padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
        }
        .fav-item .fav-remove:hover { background: #fadbd8; }
        
        .fav-empty {
            padding: 20px 10px; text-align: center;
            color: #95a5a6; font-size: 12px;
        }
        
        .leaflet-control-zoom a {
            border-radius: 50% !important;
            width: 40px !important; height: 40px !important;
            line-height: 40px !important; font-size: 20px !important;
            font-weight: bold !important; background: white !important;
            color: #2c3e50 !important; border: 2px solid #e74c3c !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
            margin-bottom: 8px !important;
            display: block !important;
            cursor: pointer !important;
        }
        .leaflet-control-zoom a:hover {
            background: #e74c3c !important; color: white !important;
        }
        .leaflet-control-zoom {
            border: none !important;
            box-shadow: none !important;
            margin-right: 10px !important;
            margin-bottom: 80px !important;
        }
        
        .locate-btn {
            position: absolute;
            bottom: 20px;
            right: 10px;
            z-index: 1000;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e74c3c;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0,0,0,0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            padding: 0;
        }
        .locate-btn:hover {
            background: #e74c3c;
            transform: scale(1.05);
        }
        .locate-btn:hover svg { fill: white; }
        .locate-btn svg {
            width: 22px;
            height: 22px;
            fill: #e74c3c;
            transition: fill 0.15s;
        }
        .locate-btn.loading svg {
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .user-location-dot {
            width: 16px;
            height: 16px;
            background: #3498db;
            border: 3px solid white;
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgba(52,152,219,0.5), 0 2px 8px rgba(0,0,0,0.3);
            animation: userPulse 2s ease-in-out infinite;
        }
        @keyframes userPulse {
            0%, 100% { box-shadow: 0 0 0 2px rgba(52,152,219,0.5), 0 2px 8px rgba(0,0,0,0.3); }
            50% { box-shadow: 0 0 0 12px rgba(52,152,219,0.15), 0 2px 8px rgba(0,0,0,0.3); }
        }
        
        .leaflet-popup-content-wrapper {
            border-radius: 10px !important;
            box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
        }
        .leaflet-popup-content {
            margin: 12px 14px !important;
            font-size: 13px !important; line-height: 1.5 !important;
        }
        
        .popup-btn {
            display: inline-block;
            padding: 6px 10px;
            margin-top: 6px;
            margin-right: 4px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: bold;
            text-decoration: none;
            cursor: pointer;
            border: none;
            font-family: Arial, sans-serif;
            color: white !important;
        }
        .popup-btn-buy { background: #e74c3c; }
        .popup-btn-buy:hover { background: #c0392b; }
        .popup-btn-route { background: #3498db; }
        .popup-btn-route:hover { background: #2980b9; }
        .popup-btn-fav { background: #f39c12; }
        .popup-btn-fav:hover { background: #e67e22; }
        .popup-btn-fav.active { background: #d35400; }
        .popup-btn-call { background: #27ae60; }
        .popup-btn-call:hover { background: #1e8449; }
        .popup-btn-email { background: #16a085; }
        .popup-btn-email:hover { background: #117864; }
        
        .promoted-marker {
            position: relative;
            animation: promotedPulse 2s ease-in-out infinite;
        }
        .promoted-marker::before {
            content: '👑';
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 18px;
            z-index: 20;
            filter: drop-shadow(0 2px 4px rgba(241,196,15,0.8));
            animation: crownBounce 1.5s ease-in-out infinite;
        }
        @keyframes promotedPulse {
            0%, 100% { filter: drop-shadow(0 0 0 rgba(241,196,15,0)); }
            50% { filter: drop-shadow(0 0 12px rgba(241,196,15,0.7)); }
        }
        @keyframes crownBounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-3px); }
        }
        
        .hot-marker { position: relative; animation: hotPulse 1.2s ease-in-out infinite; }
        .hot-marker::before {
            content: '';
            position: absolute;
            top: -6px; left: 50%;
            transform: translateX(-50%);
            width: 14px; height: 14px;
            background: radial-gradient(circle at 50% 80%, #fff700 0%, #ff9500 40%, #ff3d00 70%, transparent 100%);
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            animation: flameFlicker 0.6s ease-in-out infinite alternate;
            filter: blur(0.5px);
            z-index: 10;
            pointer-events: none;
        }
        @keyframes flameFlicker {
            0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 0.85; }
            100% { transform: translateX(-50%) scale(1.25) rotate(2deg); opacity: 1; }
        }
        @keyframes hotPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        .pilot-card {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2000;
            width: 300px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.3);
            overflow: hidden;
            display: none;
            flex-direction: column;
            max-height: 80vh;
        }
        .pilot-card.visible { display: flex; }
        
        .pilot-card-header {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .pilot-card-header h3 {
            margin: 0;
            font-size: 15px;
        }
        .pilot-card-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pilot-card-close:hover { background: rgba(255,255,255,0.4); }
        
        .pilot-card-body {
            padding: 16px;
            overflow-y: auto;
        }
        
        .pilot-photo {
            width: 100%;
            height: 180px;
            border-radius: 10px;
            object-fit: cover;
            background: #ecf0f1;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            color: #bdc3c7;
        }
        
        .pilot-name {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 4px;
        }
        .pilot-number {
            font-size: 13px;
            color: #e74c3c;
            font-weight: bold;
            margin-bottom: 12px;
        }
        
        .pilot-info-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
        }
        .pilot-info-row:last-child { border-bottom: none; }
        .pilot-info-label { color: #95a5a6; }
        .pilot-info-value { color: #2c3e50; font-weight: bold; }
        
        .pilot-stats {
            margin-top: 12px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        .pilot-stats h4 {
            margin: 0 0 8px 0;
            font-size: 12px;
            color: #2c3e50;
        }
        .pilot-stat-row {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            padding: 3px 0;
        }
        .pilot-stat-row .stat-value { font-weight: bold; color: #e74c3c; }
        
        .pilot-achievements {
            margin-top: 12px;
            font-size: 11px;
            color: #7f8c8d;
            line-height: 1.5;
        }
        
        .pilot-list {
            display: none;
            margin-top: 12px;
            border-top: 2px solid #e74c3c;
            padding-top: 12px;
        }
        .pilot-list.visible { display: block; }
        .pilot-list-title {
            font-size: 12px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
        }
        .pilot-list-item {
            padding: 8px 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .pilot-list-item:hover { background: #f5f7fa; }
        .pilot-list-item .pilot-list-name { font-weight: bold; color: #2c3e50; }
        .pilot-list-item .pilot-list-team { font-size: 10px; color: #95a5a6; }
