:root {
    --bg-glass: rgba(255, 255, 255, 0.45);
    --bg-glass-hover: rgba(255, 255, 255, 0.65);
    --blur-radius: 16px;
    --text-main: #1e293b;
    --text-muted: #475569;
    --accent-primary: rgba(15, 23, 42, 0.65);
    --accent-hover: rgba(51, 65, 85, 0.8);
    --accent-danger: #ef4444;
    --border-glass: rgba(255, 255, 255, 0.5);
    --shadow-ui: 0 8px 32px 0 rgba(15, 23, 42, 0.1);
    --radius-main: 16px;
    --radius-inner: 10px;
}

* { box-sizing: border-box; }

html, body, #map { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    height: 100%; 
    background-color: #0f172a; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-radius));
    -webkit-backdrop-filter: blur(var(--blur-radius));
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-ui);
    border-radius: var(--radius-main);
    color: var(--text-main);
}

/* ===== TEMPERATUR-UHRZEIT OVERLAY ===== */
#temp-time-overlay {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 20px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 10px;
}

#temp-time-overlay.visible {
    display: flex;
}

#temp-time-overlay .label {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14px;
}

#temp-time-overlay .time {
    color: #ffcc00;
    font-size: 18px;
    font-weight: 700;
}

#temp-time-overlay .range {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

/* ===== RADAR OVERLAY ===== */
#radar-time-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 12px 28px;
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 12px;
}

#radar-time-overlay.visible {
    display: flex;
}

#radar-time-overlay .label {
    color: #94a3b8;
    font-weight: 400;
    font-size: 18px;
}

#radar-time-overlay .time {
    color: #38bdf8;
    font-size: 24px;
}

#radar-time-overlay .time.live {
    color: #22c55e;
    font-weight: 700;
}

#radar-time-overlay .range {
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}

#update-indicator {
    position: fixed;
    top: 22px;
    right: 90px;
    z-index: 1000;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    display: none;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

#update-indicator.active {
    display: block;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

#right-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    overflow-y: auto;
    padding: 20px 24px 120px 24px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

#right-menu.menu-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#menu-close-btn {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0 12px 0;
    margin: -20px -24px 0 -24px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#menu-close-btn .menu-title {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#menu-close-btn .close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

#menu-close-btn .close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    transform: scale(1.02);
}

.menu-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-section h4 {
    margin: 0 0 10px 0;
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    text-align: left;
    min-height: 50px;
}

.menu-btn:last-child {
    margin-bottom: 0;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.menu-btn.on {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.menu-btn.off {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.status-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: auto;
}

.status-badge.on {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-badge.off {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 17px;
}

.info-value.warning {
    color: #fbbf24;
}

.info-value.danger {
    color: #f87171;
}

.info-value.success {
    color: #22c55e;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-row .btn {
    padding: 12px 16px;
    font-size: 17px;
    min-height: 50px;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.player-row .btn:hover {
    background: rgba(56, 189, 248, 0.25);
}

.player-row .time-display {
    font-size: 18px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    border-radius: 8px;
}

.player-row .timeline-slider {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
    accent-color: #38bdf8;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.player-row .speed-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    min-height: 48px;
}

.player-row .speed-select option {
    background: #1e293b;
    color: #e2e8f0;
}

.time-range-display {
    font-size: 15px;
    color: #94a3b8;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}

.search-section {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    flex-wrap: wrap;
}

.search-section input {
    flex: 1;
    min-width: 150px;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-inner);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    outline: none;
    font-family: inherit;
    min-height: 54px;
}

.search-section input::placeholder {
    color: #94a3b8;
}

.search-section input:focus {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.search-section .btn-sm {
    padding: 14px 22px;
    font-size: 18px;
    min-height: 54px;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-radius: var(--radius-inner);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-section .btn-sm:hover {
    background: rgba(56, 189, 248, 0.25);
}

.search-section .btn-icon {
    padding: 14px 18px;
    font-size: 22px;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: var(--radius-inner);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-section .btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.location-list-compact {
    display: none;
    padding: 10px 0;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.location-list-compact.show {
    display: block;
}

.location-item-compact {
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    color: #e2e8f0;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.location-item-compact:last-child {
    border-bottom: none;
}

.location-item-compact:hover {
    background: rgba(255, 255, 255, 0.06);
}

.location-item-compact .delete-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.location-item-compact .delete-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.no-locations-compact {
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 17px;
}

.reset-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.center-overlay {
    position: fixed;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 18px 36px;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
}

#loadingIndicator {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#clickHint {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 20px;
}

#clickHint.show {
    opacity: 1;
}

#statusInfo {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(15px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes flashBolt {
    0% { opacity: 0; transform: scale(0.3); }
    15% { opacity: 1; transform: scale(1.4); }
    30% { opacity: 1; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(0.5); }
}

@keyframes trackDashMove {
    to { stroke-dashoffset: -18; }
}

@keyframes centerPulse {
    0%   { transform: scale(0.7); opacity: 1; }
    70%  { transform: scale(1.8); opacity: 0.15; }
    100% { transform: scale(0.7); opacity: 0; }
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.track-glow {
    filter: drop-shadow(0 0 4px rgba(255,30,0,0.9));
}

.track-predicted {
    stroke-dasharray: 10, 8;
    animation: trackDashMove 1s linear infinite;
}

.track-label {
    background: rgba(0,0,0,0.85);
    border: 2px solid #ff8800;
    color: #ffcc00;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255,120,0,0.6);
}

.track-center-pulse {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,40,0,0.35);
    border: 3px solid #ff3300;
    box-shadow: 0 0 12px 3px rgba(255,60,0,0.8);
    animation: centerPulse 1.4s ease-out infinite;
}

.radar-layer { 
    z-index: 400 !important; 
}

.clouds-layer {
    z-index: 350 !important;
}

.lightning-layer-old {
    z-index: 9000 !important;
}

.lightning-layer-new {
    z-index: 10000 !important;
}

.flash-icon-layer {
    z-index: 11000 !important;
}

.tracking-layer {
    z-index: 8000 !important;
}

/* ===== BOTTOM BUTTON LEISTE ===== */
#bottom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 5px 8px 5px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#bottom-controls .btn-icon-small {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #64748b;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

#bottom-controls .btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

#bottom-controls .btn-icon-small.active-menu {
    border-color: rgba(255, 255, 255, 0.4);
    border-width: 2px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

#bottom-controls .btn-icon-small.active-menu .status-dot {
    display: block;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

#bottom-controls .btn-icon-small.active-map {
    border-color: #38bdf8;
    border-width: 3px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 20px rgba(56, 189, 248, 0.05);
}

#bottom-controls .btn-icon-small.active-radar {
    border-color: #22c55e;
    border-width: 3px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(34, 197, 94, 0.05);
}

#bottom-controls .btn-icon-small.active-lightning {
    border-color: #ffcc00;
    border-width: 3px;
    color: #ffcc00;
    background: rgba(255, 200, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.3), inset 0 0 20px rgba(255, 200, 0, 0.05);
}

#bottom-controls .btn-icon-small.active-sound {
    border-color: #a78bfa;
    border-width: 3px;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3), inset 0 0 20px rgba(167, 139, 250, 0.05);
}

#bottom-controls .btn-icon-small.active-clouds {
    border-color: #94a3b8;
    border-width: 3px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.15);
    box-shadow: 0 0 20px rgba(148, 163, 184, 0.25), inset 0 0 20px rgba(148, 163, 184, 0.05);
}

#bottom-controls .btn-icon-small.active-temp {
    border-color: #ef4444;
    border-width: 3px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), inset 0 0 20px rgba(239, 68, 68, 0.05);
}

#bottom-controls .btn-icon-small .status-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.6);
    display: none;
    animation: statusPulse 2s ease-in-out infinite;
}

#bottom-controls .btn-icon-small.active-map .status-dot {
    display: block;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

#bottom-controls .btn-icon-small.active-radar .status-dot {
    display: block;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

#bottom-controls .btn-icon-small.active-lightning .status-dot {
    display: block;
    background: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.6);
}

#bottom-controls .btn-icon-small.active-sound .status-dot {
    display: block;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

#bottom-controls .btn-icon-small.active-clouds .status-dot {
    display: block;
    background: #94a3b8;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

#bottom-controls .btn-icon-small.active-temp .status-dot {
    display: block;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

#bottom-controls .separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#bottom-controls .separator-small {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

#disclaimer-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

#disclaimer-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    #bottom-controls {
        padding: 4px 5px 4px 8px;
        gap: 3px;
        bottom: 12px;
    }

    #bottom-controls .btn-icon-small {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    #bottom-controls .btn-icon-small .status-dot {
        width: 10px;
        height: 10px;
        top: -2px;
        right: -2px;
    }

    #disclaimer-btn {
        font-size: 11px;
        padding: 3px 4px;
    }

    #bottom-controls .separator {
        height: 20px;
    }

    #bottom-controls .separator-small {
        height: 16px;
    }

    #right-menu {
        padding: 16px 16px 100px 16px;
    }

    #menu-close-btn {
        padding: 12px 16px;
        margin: -16px -16px 0 -16px;
    }

    #menu-close-btn .menu-title {
        font-size: 16px;
    }

    #menu-close-btn .close-btn {
        font-size: 14px;
        padding: 6px 12px;
    }

    #temp-time-overlay {
        top: 65px;
        padding: 6px 14px;
        font-size: 13px;
        gap: 6px;
    }

    #temp-time-overlay .time {
        font-size: 15px;
    }

    #temp-time-overlay .label {
        font-size: 12px;
    }

    #temp-time-overlay .range {
        font-size: 11px;
    }

    #radar-time-overlay {
        top: 12px;
        padding: 8px 16px;
        font-size: 15px;
    }

    #radar-time-overlay .time {
        font-size: 19px;
    }

    #radar-time-overlay .label {
        font-size: 14px;
    }

    #radar-time-overlay .range {
        font-size: 12px;
    }

    #update-indicator {
        top: 14px;
        right: 72px;
        width: 10px;
        height: 10px;
    }

    .player-row .btn {
        font-size: 15px;
        padding: 10px 12px;
        min-height: 42px;
    }

    .player-row .time-display {
        font-size: 16px;
        min-width: 55px;
        padding: 6px 10px;
    }

    .player-row .speed-select {
        font-size: 14px;
        padding: 6px 10px;
        min-height: 40px;
    }

    .reset-btn {
        font-size: 15px;
        padding: 12px 16px;
    }

    #clickHint {
        bottom: 90px;
        font-size: 16px;
        padding: 12px 22px;
    }

    #statusInfo {
        bottom: 70px;
        font-size: 16px;
        padding: 12px 22px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    #right-menu {
        padding: 80px 30px 120px 30px;
        max-width: 650px;
        margin: 0 auto;
    }
}

@media (min-width: 1201px) {
    #right-menu {
        padding: 80px 50px 120px 50px;
        max-width: 750px;
        margin: 0 auto;
    }
}

#disclaimer-popup {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    z-index: 501;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 600px;
    width: 90%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#disclaimer-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

#disclaimer-popup strong {
    color: #fbbf24;
}

#disclaimer-popup .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#disclaimer-popup .close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

#disclaimer-popup .popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#right-menu::-webkit-scrollbar {
    width: 4px;
}

#right-menu::-webkit-scrollbar-track {
    background: transparent;
}

#right-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .menu-section {
        padding: 10px 12px;
    }

    .menu-section h4 {
        font-size: 12px;
    }

    .menu-btn {
        font-size: 15px;
        padding: 10px 12px;
        min-height: 44px;
    }

    .search-section input {
        font-size: 16px;
        padding: 10px 12px;
        min-height: 46px;
        min-width: 100px;
    }

    .search-section .btn-sm {
        font-size: 15px;
        padding: 10px 14px;
        min-height: 46px;
    }

    .search-section .btn-icon {
        font-size: 18px;
        padding: 10px 12px;
        min-height: 46px;
    }

    .location-item-compact {
        font-size: 15px;
        padding: 8px 10px;
    }
}
