* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cairo', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #f2f6ff;
  background: radial-gradient(circle at 20% 0%, #2b4b8f 0%, #16233f 45%, #0b1222 100%);
}

.app {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.top h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.search { display: flex; gap: 8px; }

.search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.search input:focus { border-color: #6ea8ff; }

.search button {
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b8dff, #7a5cff);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.search button:active { transform: scale(0.97); }

.loc {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.status {
  margin-top: 14px;
  font-size: 14px;
  color: #ffd0d0;
  min-height: 18px;
  text-align: center;
}

.hidden { display: none; }

.card { margin-top: 16px; }

.now { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.now-main { display: flex; align-items: center; gap: 12px; }

.emoji { font-size: 54px; line-height: 1; }

.temp { font-size: 46px; font-weight: 700; line-height: 1; }
.unit { font-size: 24px; vertical-align: super; opacity: 0.7; }

.desc { font-size: 15px; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }

.place { text-align: left; }
.city { font-size: 17px; font-weight: 600; }
.feels { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.stat {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
}
.stat .k { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.stat .v { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 18px;
}

.day {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  padding: 9px 2px;
  text-align: center;
}
.day .d { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }
.day .e { font-size: 19px; margin: 5px 0; }
.day .t { font-size: 13px; font-weight: 600; }
.day .lo { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

.foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
}
