[hidden] {
  display: none !important;
}

.fs-10 {
  font-size: 10px !important;
}
.fs-12 {
  font-size: 12px !important;
}
.fs-14 {
  font-size: 14px !important;
}
.fs-16 {
  font-size: 16px !important;
}
.fs-18 {
  font-size: 18px !important;
}

.w-95 {
  width: 95%;
}

.air-quality-banner {
  width: 90%;
  max-width: 700px;
  margin: 15px auto;
  font-family: "Sarabun", sans-serif;
  container-type: inline-size;
  container-name: air-banner;
}

.air-title,
.air-place {
  line-height: 1.1;
  margin: 0;
  padding: 0;
}

.air-place {
  margin-top: 1px;
}

.air-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 12px;
  color: #666;
  font-size: 14px;
}

.force-glass {
  border: #ffffff solid 1px;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.air-card {
  background-image: url("../images/dynamic/air-bg.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  backdrop-filter: blur(0px);
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

.air-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/dynamic/air-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.05);
  z-index: 0;
}

.air-card > * {
  position: relative;
  z-index: 1;
}

.tum-bor {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.tum-air {
  width: 30px;
  height: 30px;
}

.air-update-top,
.air-update-buttom {
  font-size: 12px;
  color: #888;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.air-update-top {
  display: flex;
}

.air-update-buttom {
  display: none;
}

.air-circle-wrap {
  position: relative;
  min-width: 150px;
  width: 150px;
  height: 150px;
}

.air-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  transform: rotate(483deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  z-index: 2;
}

.air-circle-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  z-index: 1;
}

.air-svg-white {
  fill: rgba(255, 255, 255, 0);
}

.air-svg-arc {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440 534;
}

.air-aqi-card {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
  gap: 10px;
}

.air-level-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.air-level-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.air-aqi-info {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  text-align: right;
}

.air-aqi-label {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.air-aqi-value {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  line-height: 1;
  white-space: nowrap;
}

.air-aqi-value span {
  font-size: 18px;
  font-weight: 600;
}

.icon-level {
  width: 25px;
  height: 25px;
}

.air-pm25-value {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.1;
}

.air-pm25-unit {
  font-size: 10px;
}

.weath-card {
  flex: 1;
  min-width: 0;
  width: 95px;
  padding: 5px;
  border-radius: 15px;
}

.icon-weath {
  width: 30px;
  height: 30px;
}

.air-main-row {
  gap: 14px;
}

.air-weather-row {
  width: 100%;
}

.aqi-glass-wrap {
  width: 100%;
  margin: 12px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  overflow: visible;
  box-sizing: border-box;
}

.aqi-bar {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--aqi-gradient);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.aqi-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: left 0.4s ease;
  z-index: 2;
}

.air-update-group-top,
.air-update-group-buttom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.air-update-group-buttom {
  display: none;
  align-items: center;
}

.air-cache-notice {
  margin-top: 2px;
  font-size: 12px;
  color: #9a6b00;
  line-height: 1.2;
  text-align: right;
  max-width: 180px;
}

.weath-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weath-label {
  margin-top: 8px;
}

/* Response */
@container air-banner (max-width: 500px) {
  .air-card {
    padding: 12px;
    border-radius: 12px;
    min-height: auto;
    justify-content: flex-start !important;
  }

  .w-95 {
    width: 100%;
  }

  .air-card > .w-95:first-child {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 6px;
  }

  .tum-bor {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex: 0 0 auto;
  }

  .tum-air {
    width: 25px;
    height: 25px;
  }

  .air-place {
    font-size: 12px !important;
    line-height: 1.5;
    word-break: break-word;
  }

  .air-update-top {
    display: none;
  }

  .air-update-buttom {
    display: flex;
    font-size: 10px;
  }

  .air-circle-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto !important;
  }

  .air-svg {
    width: 150px;
    height: 150px;
  }

  .air-circle-inner {
    inset: 12px;
  }

  .air-svg-arc {
    stroke-width: 8;
    stroke-dasharray: 440 534;
  }

  .air-pm25-value {
    font-size: 36px;
  }

  .air-main-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
    margin-top: 8px;
  }

  .air-circle-inner .fs-12 {
    font-size: 10px !important;
  }

  .weath-de {
    width: 100%;
    gap: 7px !important;
  }

  .aqi-glass-wrap {
    width: 100%;
    margin: 0;
    padding: 7px 10px;
  }

  .air-aqi-card {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .air-level-pill {
    width: 100%;
    justify-content: center;
    padding: 5px 6px;
    gap: 4px;
  }

  .air-level-text,
  .air-level-pill .fs-16 {
    font-size: 14px !important;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .icon-level {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .air-aqi-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }

  .air-aqi-label {
    font-size: 12px !important;
    line-height: 1;
    color: #666;
  }

  .air-aqi-value {
    font-size: 22px !important;
    line-height: 1;
  }

  .air-weather-row {
    width: 100%;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .weath-card {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 12px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .weath-card .icon-weath {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }

  .weath-card .fs-14 {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .air-update-group-top {
    display: none;
  }

  .air-update-group-buttom {
    display: flex;
  }

  .air-cache-notice {
    text-align: center;
    max-width: 100%;
    font-size: 12px;
  }

   .weath-label-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .weath-label {
    margin-top: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .weath-value {
    margin-left: auto;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .weath-card {
    justify-content: space-between !important;
  }
}

/* loading style */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  --c: no-repeat radial-gradient(farthest-side, #25b09b 92%, #0000);
  background:
    var(--c) 50% 0,
    var(--c) 50% 100%,
    var(--c) 100% 50%,
    var(--c) 0 50%;
  background-size: 12px 12px;
  animation: l12 1s infinite;
}
.loader::before {
  margin: 4px;
  filter: hue-rotate(45deg);
  background-size: 8px 8px;
  animation-timing-function: linear;
}

@keyframes l12 {
  100% {
    transform: rotate(0.5turn);
  }
}
