body {
            margin: 0;
            padding: 0;
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
        }

        #map {
            width: 100vw;
            height: 100vh;
            background-color: #1a1a1a;
        }

        /* 기온 텍스트 라벨 스타일 */
        .temp-label {
            cursor: pointer;
        }

        .temp-label div {
            color: #ffffff;
            font-weight: 900;
            font-size: var(--label-font-size, 14px);
            transition: font-size 0.2s ease, opacity 0.2s, transform 0.15s ease;
            text-align: center;
            white-space: nowrap;
            line-height: 1.2;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            user-select: none;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0px 3px 5px rgba(0, 0, 0, 0.8);
        }

        .temp-label:hover div {
            transform: scale(1.1);
            background: rgba(0, 0, 0, 0.4);
        }

        /* 모델 선택 UI 스타일 (깔끔한 컴팩트 글래스모피즘 패널) */
        .model-selector-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        .model-toggle-btn {
            cursor: pointer;
            background: rgba(15, 23, 42, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: none;
            align-items: center;
            justify-content: center;
            color: white;
            backdrop-filter: blur(14px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            font-size: 18px;
            user-select: none;
            transition: transform 0.2s, background 0.2s;
        }

        .model-toggle-btn:hover {
            transform: scale(1.08);
            background: rgba(30, 41, 59, 0.95);
        }

        .model-toggle-btn:active {
            transform: scale(0.95);
        }

        .model-selector {
            background: rgba(15, 23, 42, 0.92);
            padding: 10px 14px;
            border-radius: 16px;
            color: white;
            text-align: center;
            backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.12);
            min-width: 170px;
            max-width: 220px;
        }

        .model-selector button {
            display: block;
            width: 100%;
            margin: 3px 0;
            padding: 5px 8px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 20px;
            font-weight: 600;
            font-size: 11px;
            color: white;
            background: #334155;
            transition: all 0.2s ease;
        }

        .model-selector button:hover {
            filter: brightness(1.15);
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }

        @keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }

        /* 🕒 Windy 스타일 화면 하단 타임 슬라이더 컨트롤 바 */
        .time-slider-container {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 18px;
            padding: 12px 24px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 90%;
            max-width: 680px;
            z-index: 9999;
            color: white;
            user-select: none;
            box-sizing: border-box;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .time-slider-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 6px;
        }

        .time-slider-title {
            font-size: 13px;
            font-weight: 500;
            color: #cbd5e1;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            letter-spacing: -0.2px;
        }

        .time-title-date {
            font-size: 15px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: -0.3px;
        }

        .time-title-date span.time-highlight {
            color: #38bdf8;
        }

        .time-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: -0.2px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .time-badge.badge-now {
            background: rgba(16, 185, 129, 0.25);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.6);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
        }

        .time-badge.badge-future {
            background: rgba(56, 189, 248, 0.2);
            color: #38bdf8;
            border: 1px solid rgba(56, 189, 248, 0.5);
        }

        .time-badge.badge-past {
            background: rgba(148, 163, 184, 0.2);
            color: #94a3b8;
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        .play-btn {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 5px 15px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .play-btn:hover {
            transform: scale(1.05);
            filter: brightness(1.1);
        }

        .time-slider-input {
            width: 100%;
            accent-color: #38bdf8;
            cursor: pointer;
            height: 8px;
            border-radius: 4px;
            margin: 6px 0 2px 0;
            background: #334155;
            outline: none;
            transition: background 0.2s;
        }

        .time-slider-input:hover {
            background: #475569;
        }

        /* 🕒 정밀 날짜 앵커 타임라인 틱 */
        .time-slider-ticks {
            position: relative;
            width: 100%;
            height: 32px;
            margin-top: 4px;
            user-select: none;
        }

        .tick-item {
            position: absolute;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            pointer-events: none;
            white-space: nowrap;
        }

        .tick-item.align-left {
            transform: translateX(0);
            align-items: flex-start;
        }

        .tick-item.align-right {
            transform: translateX(-100%);
            align-items: flex-end;
        }

        .tick-line {
            width: 1px;
            height: 5px;
            background: rgba(255, 255, 255, 0.3);
            margin-bottom: 2px;
        }

        .tick-line.tick-line-major {
            height: 7px;
            width: 2px;
            background: #38bdf8;
        }

        .tick-day-label {
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            line-height: 1.1;
        }

        .tick-item.is-today .tick-day-label {
            color: #38bdf8;
            font-weight: 800;
        }

        .tick-item.is-tomorrow .tick-day-label {
            color: #7dd3fc;
        }

        .tick-sub-label {
            font-size: 9px;
            color: #64748b;
            margin-top: 1px;
        }

        /* 범례 (Legend) UI 스타일 */
        .legend-control {
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 10px 14px;
            color: #fff;
            font-size: 11px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            max-width: 280px;
            transition: all 0.3s ease;
        }

        .legend-title {
            font-weight: bold;
            margin-bottom: 6px;
            color: #ddd;
            font-size: 12px;
        }

        .legend-bar {
            height: 10px;
            border-radius: 5px;
            margin: 4px 0;
        }

        .temp-legend-bar {
            background: linear-gradient(to right, rgb(120, 0, 160), rgb(0, 30, 180), rgb(0, 100, 235), rgb(0, 190, 240), rgb(0, 210, 160), rgb(60, 200, 60), rgb(200, 220, 0), rgb(255, 200, 0), rgb(255, 130, 0), rgb(235, 30, 30), rgb(180, 0, 90));
        }

        .precip-legend-bar {
            background: linear-gradient(to right, rgb(230, 245, 255), rgb(100, 210, 255), rgb(30, 144, 255), rgb(0, 200, 120), rgb(255, 235, 59), rgb(255, 152, 0), rgb(244, 67, 54), rgb(171, 71, 188), rgb(255, 255, 255));
        }

        .cloud-legend-bar {
            background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(180, 180, 180, 0.4), rgba(105, 105, 105, 0.8));
        }

        .legend-labels {
            display: flex;
            justify-content: space-between;
            color: #aaa;
            font-size: 10px;
        }

        .model-selector button.layer-btn {
            display: inline-block;
            width: auto;
            flex: 1;
            white-space: nowrap;
            margin: 0;
            padding: 5px 3px;
            font-size: 10.5px;
            color: #94a3b8;
            background: #1e293b;
            font-weight: 600;
            border-radius: 12px;
        }

        .model-selector button.layer-btn.active {
            background: rgba(56, 189, 248, 0.2);
            color: #38bdf8;
            border-color: #38bdf8;
            font-weight: 700;
        }

        /* 모바일 최적화 미디어 쿼리 (충분한 폭 확보 및 글자 잘림 방지) */
        @media (max-width: 768px) {
            .model-selector {
                min-width: 170px;
                max-width: 220px;
                padding: 10px 12px;
                border-radius: 16px;
            }

            #model-menu-content {
                max-height: 60vh;
                overflow-y: auto;
            }

            .model-selector button {
                font-size: 11px;
                padding: 6px 8px;
                margin: 3px 0;
                border-radius: 20px;
            }

            .model-selector button.layer-btn {
                flex: 1;
                white-space: nowrap;
                font-size: 10px;
                padding: 5px 2px;
                margin: 0;
                border-radius: 12px;
            }

            #mme-custom-panel label {
                font-size: 10.5px !important;
                padding: 2px 0;
                display: block;
            }

            .time-slider-container {
                width: 92%;
                bottom: 14px;
                padding: 10px 14px;
            }

            .play-btn {
                padding: 4px 12px;
                font-size: 11px;
            }

            .time-slider-title {
                font-size: 12px;
            }

            .legend-control {
                max-width: 210px;
                padding: 8px 10px;
            }

            .legend-title {
                font-size: 11px;
                margin-bottom: 4px;
            }

            .legend-labels {
                font-size: 9.5px;
            }

            /* Leaflet 컨트롤 버튼 크기 확대 (터치 영역 확보) */
            .leaflet-control-layers-toggle {
                width: 44px;
                height: 44px;
            }

            .leaflet-touch .leaflet-bar a {
                width: 36px;
                height: 36px;
                line-height: 36px;
                font-size: 18px;
            }
        }
