﻿:root {
    --bg-top: #4d8ed9;
    --bg-mid: #4b81cb;
    --bg-bottom: #4e75b8;
    --card-bg: rgba(78, 129, 196, 0.46);
    --card-border: rgba(255, 255, 255, 0.22);
    --text-main: rgba(245, 251, 255, 0.97);
    --text-muted: rgba(226, 240, 255, 0.78);
    --bar-bg: rgba(34, 72, 121, 0.42);
    --font-ui: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", "Arial", sans-serif;
}
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-ui) !important;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--text-main);
    background: radial-gradient(circle at 22% 12%, rgba(255, 247, 171, 0.85) 0%, rgba(255, 247, 171, 0) 24%),
        linear-gradient(160deg, var(--bg-top), var(--bg-mid) 55%, var(--bg-bottom));
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.4;
    pointer-events: none;
}

.orb-a {
    width: 240px;
    height: 240px;
    background: rgba(188, 231, 255, 0.6);
    top: 28%;
    left: -80px;
}

.orb-b {
    width: 180px;
    height: 180px;
    background: rgba(132, 180, 255, 0.55);
    right: 4%;
    top: 48%;
}

.orb-c {
    width: 220px;
    height: 220px;
    background: rgba(117, 167, 247, 0.5);
    left: 45%;
    top: 68%;
}

.weather-shell {
    width: min(920px, 100% - 24px);
    margin: 0 auto;
    padding: 24px 0 36px;
}

.hero {
    text-align: center;
    padding-top: 12px;
}

.hero-time {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.hero h1 {
    margin: 10px 0 6px;
    font-weight: 420;
    letter-spacing: 0.01em;
    font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.hero-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-primary {
    margin-top: 8px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(10px, 2.4vw, 24px);
    flex-wrap: wrap;
}

.hero-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(42vw, 360px);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(56, 101, 167, 0.32);
    box-shadow: 0 10px 24px rgba(17, 39, 80, 0.25);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.hero-level-temp {
    text-align: center;
}

.hero-level {
    font-size: clamp(3.6rem, 9.9vw, 6.84rem);
    line-height: 1;
    font-weight: 600;
    margin-top: 0;
}

.hero-subline {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 1rem;
}

.card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 24px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 16px;
    box-shadow: 0 10px 28px rgba(14, 38, 82, 0.23);
}

.card + .card {
    margin-top: 14px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 620;
    letter-spacing: 0.02em;
}

.muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(40, 84, 145, 0.45);
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

button:hover {
    background: rgba(52, 99, 167, 0.65);
}

.chart-wrap {
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(64, 111, 176, 0.35);
}

.chart-title {
    margin: 0 0 6px;
    font-size: 0.86rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

canvas {
    width: 100%;
    height: 180px;
    display: block;
}

#chart-24h,
#chart-10d {
    height: 216px;
}

.hour-strip {
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 240, 255, 0.65) rgba(42, 78, 129, 0.32);
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.hour-item {
    flex: 0 0 68px;
    min-width: 68px;
    text-align: center;
    padding: 6px 2px;
    border-radius: 10px;
    background: rgba(76, 125, 191, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hour-strip::-webkit-scrollbar {
    height: 8px;
}

.hour-strip::-webkit-scrollbar-track {
    background: rgba(42, 78, 129, 0.28);
    border-radius: 999px;
}

.hour-strip::-webkit-scrollbar-thumb {
    background: rgba(223, 240, 255, 0.62);
    border-radius: 999px;
}

.hour-time {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 620;
    line-height: 1.2;
}

.hour-icon {
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1;
    color: rgba(245, 251, 255, 0.95);
}

.hour-value {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 580;
}

.history-list {
    margin-top: 8px;
}

.day-row {
    display: grid;
    grid-template-columns: 70px 56px 56px 1fr 62px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.day-row:first-child {
    border-top: none;
}

.day-name {
    font-size: 1.03rem;
    font-weight: 560;
}

.day-change {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.day-min,
.day-max {
    font-size: 1rem;
    font-weight: 560;
    color: rgba(245, 251, 255, 0.95);
}

.day-min {
    text-align: left;
}

.day-max {
    text-align: right;
}

.mini-graph {
    height: 66px;
    border-radius: 10px;
    background: var(--bar-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px;
}

.mini-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    display: none;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(16, 34, 66, 0.9);
    color: rgba(245, 251, 255, 0.96);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.empty-row {
    padding: 14px 0;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 720px) {
    .weather-shell {
        width: 100%;
        padding: 10px 6px 28px;
    }

    .card {
        border-radius: 20px;
        padding: 12px 10px;
    }

    .hero-primary {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hero-widget {
        min-width: 0;
        flex: 1 1 0;
        padding: 8px 12px;
    }

    .hero-level {
        font-size: clamp(2rem, 10vw, 3.6rem);
    }

    .hour-time {
        font-size: 0.7rem;
    }

    .hour-icon {
        font-size: 0.85rem;
    }

    .hour-value {
        font-size: 0.82rem;
    }

    .day-row {
        grid-template-columns: 56px 48px 46px 1fr 50px;
        gap: 6px;
    }

    .day-change,
    .day-min,
    .day-max {
        font-size: 0.84rem;
    }

    .mini-graph {
        height: 56px;
    }
}

@media (max-width: 430px) {
    .weather-shell {
        padding-left: 4px;
        padding-right: 4px;
    }

    .hero-widget {
        padding: 8px 10px;
    }

    .hero-level {
        font-size: clamp(1.85rem, 9.2vw, 3.2rem);
    }
}





.footer-status {
    margin-top: 14px;
    text-align: center;
    line-height: 1.35;
    padding: 0 8px;
}







.footer-status a {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-status a:hover {
    opacity: 0.9;
}

@keyframes loadingPulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.loading-placeholder {
    animation: loadingPulse 1.2s ease-in-out infinite;
}

.hero-level.loading-placeholder {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.loading-canvas {
    animation: loadingPulse 1.2s ease-in-out infinite;
}








