/* общие */
html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas {
    display: block;
}

/* панель управления */
#panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    color: white;
    background: rgba(0,0,0,0.75);
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 500;
}

#panel div {
    margin: 2px 0;
}

.title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.utc-control {
    margin-top: 12px;
    background: rgba(30,30,40,0.9);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,200,100,0.4);
}

.utc-control label {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-bottom: 6px;
}

.utc-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.utc-input-group input {
    background: #1e1e2a;
    border: 1px solid #ffaa44;
    color: #ffdd99;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
}

button {
    background: #ffaa44;
    border: none;
    padding: 6px 14px;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    color: #1a1a2a;
}

button:hover {
    background: #ffcc66;
    transform: scale(1.02);
}

.reset-btn {
    background: #3a6ea5;
    color: white;
    margin-left: 5px;
}

.note {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 8px;
    font-style: italic;
}

.live-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #44ff44;
    box-shadow: 0 0 5px #44ff44;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.8);}
    100% { opacity: 1; transform: scale(1.2);}
}

/* панелька городов */
#city-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    min-width: 220px;
    border: 1px solid rgba(255,170,68,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
}

#city-panel::-webkit-scrollbar {
    width: 5px;
}
#city-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
#city-panel::-webkit-scrollbar-thumb {
    background: #ffaa44;
    border-radius: 10px;
}

.panel-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: #ffaa44;
}

.cities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.cities-list::-webkit-scrollbar {
    width: 5px;
}
.cities-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.cities-list::-webkit-scrollbar-thumb {
    background: #ffaa44;
    border-radius: 10px;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 12px;
    transition: 0.2s;
}

.city-item:hover {
    background: rgba(255,170,68,0.2);
    transform: translateX(-2px);
}

.city-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.city-name {
    font-weight: bold;
    flex: 1;
    font-size: 11px;
}

.city-coords {
    font-size: 10px;
    opacity: 0.7;
    font-family: monospace;
}

.city-btn {
    background: #ffaa44;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    color: #1a1a2a;
}

.city-btn:hover {
    background: #ffcc66;
    transform: scale(1.05);
}

/* адапка */
@media (max-width: 600px) {
    .utc-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    #panel {
        top: 10px;
        left: 10px;
        right: 10px;
        font-size: 12px;
        padding: 12px;
    }
    #city-panel {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    .cities-list {
        max-height: 200px;
    }
}