* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: linear-gradient(180deg, #0b4f8a 0%, #1773be 45%, #3a92de 100%);
  min-height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 50px;
}

.wrap {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  text-align: center;
  padding-bottom: 6px;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

header p {
  color: #dbeafe;
  font-size: 0.95rem;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-row input::placeholder {
  color: #e0f2fe;
}

.search-row input:focus {
  background: rgba(255, 255, 255, 0.35);
  border-color: white;
}

.search-row button {
  padding: 13px 26px;
  border-radius: 99px;
  border: none;
  background: #ffb703;
  color: #0b4f8a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.search-row button:hover {
  background: #ffa700;
}

.search-row button:active {
  transform: scale(0.97);
}

.card {
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: none;
}

.cur-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.loc-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0b4f8a;
}

.date-txt {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.weather-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.weather-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.temp-big {
  font-size: 3.6rem;
  font-weight: 800;
  color: #0b4f8a;
  line-height: 1;
}

.weather-icon-lead {
  font-size: 2.8rem;
}

.weather-desc-lead {
  font-weight: 700;
  color: #0284c7;
  font-size: 1.15rem;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  background: #f1f5f9;
  padding: 14px;
  border-radius: 14px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 3px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b4f8a;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.scroll-box {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.chart-box {
  min-width: 720px;
  height: 270px;
  position: relative;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.daily-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.daily-day {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0b4f8a;
}

.daily-icon {
  font-size: 1.8rem;
  margin: 2px 0;
}

.daily-temps {
  font-size: 0.95rem;
  font-weight: 700;
}

.daily-rain {
  font-size: 0.75rem;
  color: #0284c7;
  font-weight: 600;
}

footer {
  text-align: center;
  font-size: 0.82rem;
  color: #dbeafe;
  margin-top: 10px;
}