/* Khối thời tiết kiểu app Thời tiết của Apple — dùng chung Trang chủ + chi tiết hồ. */
.wx-sky {
  --wx-muted: rgba(255,255,255,.7);
  --wx-faint: rgba(255,255,255,.55);
  --wx-rain: #8FDBFF;
  padding: 16px 12px;
  color: #fff;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #4A6C8F, #7F9CBA);
}
.wx-sky[hidden] { display: none; }
.wx-glyph { display: block; flex: none; overflow: visible; }

.wx-sky-head { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.wx-sky-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.wx-sky-head .wx-line-ico { color: #fff; }

.wx-hero { padding: 6px 8px 14px; text-align: center; }
.wx-hero-main { display: flex; align-items: center; justify-content: center; gap: 10px; }
.wx-hero-temp { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.wx-hero-cond { margin-top: 6px; font-size: 18px; font-weight: 600; }
.wx-hero-sub { margin-top: 4px; color: var(--wx-muted); font-size: 13.5px; font-weight: 500; }

.wx-panel { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.14); }
.wx-panel + .wx-panel, .wx-panel + .wx-daily, .wx-daily + .wx-tiles, .wx-panel + .wx-tiles { margin-top: 10px; }
.wx-panel-title {
  display: flex; align-items: center; gap: 6px; color: var(--wx-muted);
  font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
}
.wx-panel-title > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-daily .wx-panel > .wx-panel-title { padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.18); }

.wx-summary { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 13.5px; line-height: 1.35; }
.wx-hours { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wx-hours::-webkit-scrollbar { display: none; }
.wx-hour {
  flex: none; width: 60px; margin-right: 2px; height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.wx-hour.is-past { opacity: .55; }
.wx-hour small { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wx-hour.is-now small { font-weight: 700; }
.wx-hour b { font-size: 17px; font-weight: 600; }
.wx-hour-wind { color: var(--wx-faint); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.wx-chance { display: block; min-height: 14px; color: var(--wx-rain); font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 14px; }

.wx-toggle { display: inline-flex; flex: none; text-transform: none; letter-spacing: 0; }
.wx-toggle button {
  border: 0; background: none; color: var(--wx-muted); padding: 3px 9px; border-radius: 10px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.wx-toggle button.on { background: rgba(255,255,255,.28); color: #fff; }

.wx-day { display: flex; align-items: center; padding: 9px 0; }
.wx-day + .wx-day { border-top: 1px solid rgba(255,255,255,.14); }
.wx-day-label { width: 78px; flex: none; min-width: 0; }
.wx-day-label span { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-day-label em {
  display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 8px;
  color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal;
}
.wx-day-ico { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; }
.wx-day-ico .wx-chance { min-height: 0; font-size: 10.5px; }
.wx-day-low { width: 38px; flex: none; text-align: right; color: var(--wx-muted); font-size: 15px; font-weight: 600; }
.wx-day-high { width: 34px; flex: none; text-align: right; font-size: 15px; font-weight: 600; }
.wx-range { position: relative; flex: 1; min-width: 40px; height: 5px; margin: 0 10px; border-radius: 3px; background: rgba(0,0,0,.16); }
.wx-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.wx-range-dot {
  position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.25);
}
.wx-foot { margin: 8px 0 0; color: var(--wx-faint); font-size: 11.5px; }
.wx-empty { margin: 8px 0; color: var(--wx-muted); }

.wx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx-tile { display: flex; flex-direction: column; min-width: 0; }
.wx-tile + .wx-tile { margin-top: 0; }
.wx-tile-value { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wx-tile-value > span:first-child { flex: 1; min-width: 0; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-tile-note { margin: 6px 0 0; color: var(--wx-muted); font-size: 12px; line-height: 1.3; }
.wx-wind-arrow {
  flex: none; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center;
}
.wx-wind-arrow svg { display: block; }

/* Thu gọn: theo ngày + ô chi tiết nằm sau nút "Xem thêm". */
.wx-more { margin-top: 10px; }
.wx-more[hidden] { display: none; }
.wx-more-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  margin-top: 10px; padding: 11px 12px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600;
}
.wx-more-btn:hover { background: rgba(255,255,255,.2); }
.wx-more-btn span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-more-btn .wx-line-ico { flex: none; transition: transform .2s; }
.wx-more-btn[aria-expanded="true"] .wx-line-ico { transform: rotate(180deg); }

/* Thẻ "Phân tích thời tiết" (AI) */
.ai-badge {
  margin-left: auto; padding: 3px 8px; border-radius: 20px;
  color: #7C3AED; background: rgba(124,58,237,.1); font-size: 11.5px; font-weight: 800;
}
.ai-cta { margin-top: 14px; }
.ai-cta-note { margin: 0 0 8px; color: #B4532A; font-size: 13px; font-weight: 600; }
.ai-cta-btn {
  width: 100%; padding: 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: #1B8A5A; color: #fff; font: inherit; font-size: 14.5px; font-weight: 700;
}
.ai-cta-btn:hover { background: #167A4F; }
.ai-summary { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.ai-warn {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(232,163,23,.1); border: 1px solid rgba(232,163,23,.3);
}
.ai-warn p { display: flex; gap: 8px; margin: 0; color: #B4532A; font-size: 13px; font-weight: 600; line-height: 1.35; }
.ai-warn p + p { margin-top: 6px; }
.ai-warn .wx-line-ico { flex: none; margin-top: 2px; }
.ai-sub { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.ai-sub .wx-line-ico { color: rgba(28,36,35,.55); }
.ai-window {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(27,138,90,.07); border: 1px solid rgba(27,138,90,.18);
}
.ai-window > div { flex: none; display: flex; flex-direction: column; }
.ai-window b { color: #1B8A5A; font-size: 14px; font-weight: 800; }
.ai-window small { color: rgba(27,138,90,.8); font-size: 11.5px; font-weight: 600; }
.ai-window span { font-size: 13px; line-height: 1.35; }
.ai-factor { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.ai-factor > div { flex: 1; min-width: 0; }
.ai-factor-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.ai-factor-head { display: flex; align-items: center; gap: 8px; }
.ai-factor-head b { flex: 1; min-width: 0; font-size: 13.5px; }
.ai-factor-head em { flex: none; padding: 2px 7px; border-radius: 20px; font-size: 11px; font-weight: 700; font-style: normal; }
.ai-factor p { margin: 2px 0 0; color: rgba(28,36,35,.7); font-size: 13px; line-height: 1.35; }
.ai-tip { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.ai-foot { margin: 10px 0 0; color: rgba(28,36,35,.55); font-size: 11.5px; }

/* Ô yếu tố trong "Điều kiện đi câu" */
.wx-factor .wx-glyph, .wx-factor-ico { flex: none; display: grid; place-items: center; }

/* Tràn sát mép màn hình trên mobile (trang có padding ngang 12px). */
.wx-bleed { margin-left: -12px; margin-right: -12px; }
@media (min-width: 624px) {
  .wx-bleed { margin-left: 0; margin-right: 0; border-radius: 14px; }
}
@media (min-width: 720px) {
  #pond-weather-sky { border-radius: 14px; }
}
