.meteo-page-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.meteo-page-head {
    margin-bottom: 20px;
}

.meteo-page-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.meteo-page-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #111111 0%, #2b2b2b 100%);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 18px rgba(255, 0, 0, 0.08);
}

.meteo-page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.meteo-page-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.meteo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.meteo-select {
    min-width: 240px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
}

.meteo-select:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}

.meteo-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 16px;
    padding: 26px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 22%),
        linear-gradient(135deg, #0f172a 0%, #111827 55%, #1f2937 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

html[data-theme="dark"] .meteo-hero {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 22%),
        linear-gradient(135deg, #08111f 0%, #0c1728 55%, #162235 100%);
}

.meteo-hero__city {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.meteo-hero__temp {
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.meteo-hero__desc {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.92);
}

.meteo-hero__updated {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.meteo-hero__icon {
    font-size: clamp(56px, 8vw, 92px);
    line-height: 1;
    flex: 0 0 auto;
}

.meteo-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.meteo-kpi {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.meteo-kpi__label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.meteo-kpi__value {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.meteo-meta {
    margin: 8px 0 16px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.meteo-days-section {
    margin-top: 6px;
}

.meteo-days-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.meteo-day-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.meteo-day-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.16);
}

.meteo-day-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.meteo-day-card__day {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.meteo-day-card__icon {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}

.meteo-day-card__desc {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    min-height: 40px;
}

.meteo-day-card__temps {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meteo-day-card__max {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}

.meteo-day-card__min {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
}

.meteo-day-card__extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meteo-day-card__extras span,
.meteo-summary-card__extras span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.meteo-summary-card {
    margin-top: 18px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
}

.meteo-summary-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.meteo-summary-card p {
    color: var(--muted);
    font-weight: 500;
}

.meteo-summary-card__extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.meteo-loading,
.meteo-empty {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .meteo-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .meteo-days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .meteo-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meteo-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .meteo-page-card {
        padding: 18px;
        border-radius: 22px;
    }

    .meteo-page-title {
        font-size: 24px;
    }

    .meteo-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .meteo-select,
    .meteo-actions,
    .meteo-actions .btn-primary {
        width: 100%;
    }

    .meteo-kpis,
    .meteo-days-grid {
        grid-template-columns: 1fr;
    }

}