.weather-hero {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, .36), transparent 34%),
        linear-gradient(135deg, #071229 0%, #0f2748 48%, #0f172a 100%);
    padding: 42px 0;
    margin-bottom: 34px;
    border-bottom: 4px solid #0ea5e9;
    color: #fff;
}

.weather-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.weather-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .16);
    border: 1px solid rgba(125, 211, 252, .28);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.weather-hero h1 {
    font-family: var(--font-head, inherit);
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.05;
    margin: 0;
}

.weather-hero p {
    max-width: 680px;
    margin-top: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.75;
}

.weather-location-card {
    min-width: 240px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .20);
}

.weather-location-card span {
    display: block;
    font-size: 11px;
    font-weight: 850;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.weather-location-card strong {
    display: block;
    font-size: 24px;
    font-weight: 950;
    color: #fff;
}

.weather-location-card small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

.weather-page-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 70px;
}

.weather-side {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weather-side-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, .06));
}

.weather-side-card h3 {
    font-family: var(--font-head, inherit);
    font-size: 16px;
    font-weight: 950;
    color: var(--navy, #0f172a);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #0ea5e9;
}

.weather-side-card select {
    width: 100%;
    height: 46px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 0 13px;
    background: #fff;
    outline: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #111827);
}

.weather-side-card select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.weather-location-btn {
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(14, 165, 233, .22);
}

.weather-location-btn:hover {
    filter: brightness(.96);
}

.weather-side-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    border: 1px solid #e2e8f0;
}

.weather-side-note.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.weather-side-note.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.weather-side-card.compact {
    padding-bottom: 16px;
}

.weather-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weather-city-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #e2e8f0;
    transition: .15s;
}

.weather-city-pills a:hover,
.weather-city-pills a.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.weather-main {
    min-width: 0;
}

.weather-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 18px;
    padding: 15px 17px;
    margin-bottom: 18px;
    font-size: 13px;
}

.weather-alert strong {
    font-weight: 950;
}

.weather-current-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    border-radius: 30px;
    padding: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .26), transparent 30%),
        linear-gradient(135deg, #075985 0%, #0284c7 48%, #0ea5e9 100%);
    box-shadow: 0 25px 70px rgba(14, 165, 233, .24);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
}

.weather-current-card:before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    left: -110px;
    bottom: -130px;
    background: rgba(255, 255, 255, .14);
}

.weather-current-left,
.weather-current-icon {
    position: relative;
    z-index: 2;
}

.weather-current-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.weather-current-top span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .84);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.weather-current-top b {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.weather-current-place {
    font-family: var(--font-head, inherit);
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.weather-current-temp {
    margin-top: 8px;
    font-family: var(--font-head, inherit);
    font-size: 96px;
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.07em;
}

.weather-current-temp sup {
    font-size: 38px;
    opacity: .72;
    vertical-align: super;
    margin-left: 4px;
}

.weather-current-desc {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 850;
    color: rgba(255, 255, 255, .84);
}

.weather-current-icon {
    font-size: 116px;
    line-height: 1;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .12));
}

.weather-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.weather-metric {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 16px 12px;
    box-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, .06));
    text-align: center;
    transition: .18s;
}

.weather-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}

.weather-metric span {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.weather-metric strong {
    display: block;
    color: var(--navy, #0f172a);
    font-family: var(--font-head, inherit);
    font-size: 20px;
    font-weight: 950;
}

.weather-metric small {
    display: block;
    margin-top: 4px;
    color: var(--text-soft, #64748b);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.weather-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.weather-section-head h2 {
    color: var(--navy, #0f172a);
    font-family: var(--font-head, inherit);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.025em;
}

.weather-section-head p {
    margin-top: 4px;
    color: var(--text-soft, #64748b);
    font-size: 13px;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.weather-day-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, .06));
    transition: .18s;
    overflow: hidden;
    position: relative;
}

.weather-day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .11);
}

.weather-day-card.today {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 42%),
        linear-gradient(135deg, #0f172a, #0f766e);
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
}

.weather-day-head strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
    color: var(--navy, #0f172a);
}

.weather-day-card.today .weather-day-head strong {
    color: #fff;
}

.weather-day-head span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-soft, #64748b);
    font-weight: 700;
}

.weather-day-card.today .weather-day-head span {
    color: rgba(255, 255, 255, .62);
}

.weather-day-icon {
    font-size: 36px;
    margin: 14px 0 10px;
}

.weather-day-desc {
    min-height: 34px;
    color: var(--text-mid, #475569);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.weather-day-card.today .weather-day-desc {
    color: rgba(255, 255, 255, .78);
}

.weather-day-temp {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.weather-day-temp b {
    font-family: var(--font-head, inherit);
    font-size: 27px;
    font-weight: 950;
    color: var(--navy, #0f172a);
    letter-spacing: -.04em;
}

.weather-day-card.today .weather-day-temp b {
    color: #fff;
}

.weather-day-temp span {
    color: #3b82f6;
    font-weight: 900;
    font-size: 16px;
}

.weather-day-card.today .weather-day-temp span {
    color: #bae6fd;
}

.weather-day-details {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-day-details span {
    padding-top: 6px;
    border-top: 1px solid var(--border, #e5e7eb);
    color: var(--text-soft, #64748b);
    font-size: 11px;
    font-weight: 750;
}

.weather-day-card.today .weather-day-details span {
    border-top-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .68);
}

.weather-empty {
    text-align: center;
    padding: 64px 20px;
    background: var(--bg-card, #fff);
    border-radius: 24px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: var(--shadow, 0 8px 24px rgba(15, 23, 42, .06));
}

.weather-empty div {
    font-size: 58px;
}

.weather-empty h3 {
    margin-top: 12px;
    color: var(--navy, #0f172a);
    font-family: var(--font-head, inherit);
    font-size: 20px;
    font-weight: 950;
}

.weather-empty p {
    margin-top: 6px;
    color: var(--text-soft, #64748b);
    font-size: 13px;
}

@media (max-width: 1200px) {
    .weather-metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .weather-forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .weather-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .weather-location-card {
        width: 100%;
    }

    .weather-page-wrap {
        grid-template-columns: 1fr;
    }

    .weather-side {
        position: static;
    }

    .weather-current-card {
        min-height: auto;
    }

    .weather-current-icon {
        font-size: 84px;
    }

    .weather-current-temp {
        font-size: 74px;
    }
}

@media (max-width: 640px) {
    .weather-hero {
        padding: 32px 0;
    }

    .weather-hero h1 {
        font-size: 32px;
    }

    .weather-current-card {
        padding: 22px;
        border-radius: 24px;
    }

    .weather-current-icon {
        display: none;
    }

    .weather-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-forecast-grid {
        grid-template-columns: 1fr;
    }

    .weather-section-head h2 {
        font-size: 19px;
    }
}