/* PV Weather — "Đồng hồ trời" (web)
 * Cùng ngôn ngữ thiết kế với app: bầu trời đổi màu theo GIỜ + thời tiết, vòng 24 giờ kéo được, ô bo tròn tối màu,
 * Bricolage Grotesque (số/tiêu đề) + Figtree (chữ), icon nét mảnh, hiệu ứng mưa/tuyết/sao.
 * Desktop: vòng giờ cố định bên trái + lưới ô (bento) bên phải. Điện thoại: một cột như app. */
@property --s1 { syntax: '<color>'; inherits: true; initial-value: #2a76d1; }
@property --s2 { syntax: '<color>'; inherits: true; initial-value: #5eaaee; }
@property --s3 { syntax: '<color>'; inherits: true; initial-value: #86bdea; }

:root {
    --s1: #2a76d1; --s2: #5eaaee; --s3: #86bdea;
    --ink: #fff; --ink2: rgba(255, 255, 255, .74); --ink3: rgba(255, 255, 255, .5);
    --tile: color-mix(in srgb, #000 42%, var(--s2));
    --tile-2: rgba(255, 255, 255, .08);
    --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
    --radius: 28px;
    --good: #7ad7a0; --warn: #ffc23d; --bad: #ff8a65; --rain: #8cc4ff; --accent: #ffb36b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    font: 15px/1.5 var(--body); color: var(--ink); min-height: 100vh; overflow-x: hidden;
    background: linear-gradient(180deg, var(--s1), var(--s2) 52%, var(--s3)) fixed;
    transition: --s1 .9s ease, --s2 .9s ease, --s3 .9s ease;
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hiệu ứng nền ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.drop, .flake { position: absolute; top: -40px; animation: fall linear infinite; }
.drop { width: 1.5px; height: 26px; background: linear-gradient(transparent, rgba(190, 220, 255, .65)); }
.flake { width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .85; }
@keyframes fall { to { transform: translateY(115vh); } }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .25; } }
.cloud { position: absolute; border-radius: 50%; filter: blur(34px); background: rgba(255, 255, 255, .22); animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.sunglow { position: absolute; right: -8vw; top: -12vh; width: 46vw; height: 46vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 224, 150, .55), rgba(255, 200, 120, 0) 62%); }
@media (prefers-reduced-motion: reduce) { .drop, .flake, .star, .cloud { animation: none; } body { transition: none; } }

/* ---------- Khung ---------- */
.app { position: relative; z-index: 1; max-width: 1380px; margin: 0 auto; padding: 0 24px 60px; }
/* ---------- Header = khung PVSoft (pv_header) + ô tìm kiếm / cài đặt của thời tiết ---------- */
.pvw-shell { --pv-bg: color-mix(in srgb, #050d1c 58%, var(--s1)); --pv-fg: #fff; --pv-muted: rgba(255, 255, 255, .8); --pv-line: rgba(255, 255, 255, .18); --pv-card: rgba(0, 0, 0, .24); --pv-accent: #fff; --pv-on-accent: #14233a; --pv-font: var(--body); --pv-radius: 20px; }
.pvw-shell .pv-header, .pvw-shell .pv-footer, .pvw-shell .pv-install { --pv-accent: #fff !important; }
.pvw-shell .pv-mark { background: #fff; color: #1f6fe0; box-shadow: none; }
.pvw-shell .pv-header { background: linear-gradient(var(--s1), color-mix(in srgb, var(--s1) 78%, transparent)); border-bottom: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: --s1 .9s ease; }
.pvw-shell .pv-header-in { max-width: 1380px; padding: 0 24px; height: auto; min-height: 62px; flex-wrap: wrap; row-gap: 8px; }
.pvw-shell .pv-spacer { display: none; }
.pvw-shell .pv-name { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.pvw-shell .pv-switch-btn { background: rgba(0, 0, 0, .24); border-color: transparent; color: #fff; }
.pvw-shell .pv-switch-btn:hover, .pvw-shell .pv-switch-btn[aria-expanded="true"] { background: rgba(0, 0, 0, .4); }
.pvw-shell .pv-menu { backdrop-filter: blur(16px); }
.pvw-shell .pv-app { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.search { position: relative; flex: 1; max-width: 420px; margin-inline: auto 0; }
.search input { width: 100%; height: 40px; border-radius: 99px; border: 0; padding: 0 18px 0 42px; background: rgba(0, 0, 0, .24); color: #fff; font: 500 14.5px var(--body); backdrop-filter: blur(8px); }
.search input::placeholder { color: rgba(255, 255, 255, .65); }
.search svg.i { position: absolute; left: 14px; top: 10px; opacity: .75; }
.search-results { display: none; position: absolute; left: 0; right: 0; top: 46px; flex-direction: column; background: color-mix(in srgb, var(--s1) 55%, #000); border-radius: 20px; padding: 6px; z-index: 60; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.search-item { padding: 10px 14px; border-radius: 14px; cursor: pointer; font-size: 14px; }
.search-item:hover { background: rgba(255, 255, 255, .12); }
.tools { position: relative; display: flex; align-items: center; }
.setbtn { display: none; height: 38px; padding: 0 10px 0 12px; border-radius: 99px; background: rgba(0, 0, 0, .24); font: 600 13px var(--body); align-items: center; gap: 6px; white-space: nowrap; }
.setbtn svg.i { width: 16px; height: 16px; } .setbtn .chv { width: 14px; height: 14px; opacity: .8; transform: rotate(90deg); }
.setpanel { display: flex; align-items: center; gap: 8px; }
.setrow { display: inline-flex; align-items: center; position: relative; }
.setl { display: none; }
.setpanel select { height: 38px; border-radius: 99px; border: 0; padding: 0 10px; background-color: rgba(0, 0, 0, .24); color: #fff; font: 600 13px var(--body); cursor: pointer; }
.setpanel option { color: #111; }
.instbtn { height: 38px; padding: 0 14px; border-radius: 99px; background: rgba(0, 0, 0, .24); font: 600 13px var(--body); white-space: nowrap; }
.lang-wrap .i { position: absolute; left: 11px; width: 16px; height: 16px; pointer-events: none; color: #fff; opacity: .9; }
.lang-select { padding: 0 30px 0 34px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; appearance: none; -webkit-appearance: none; max-width: 150px; }
.lang-select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.rail { position: sticky; top: 62px; z-index: 40; display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none;
    background: linear-gradient(var(--s1), color-mix(in srgb, var(--s1) 80%, transparent) 68%, transparent); margin: 0 -24px; padding-inline: 24px; }
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: none; border-radius: 99px; background: rgba(0, 0, 0, .26); padding: 7px 14px; font: 600 13px var(--body); display: flex; gap: 6px; align-items: center; text-decoration: none; transition: background .2s, color .2s; }
.rail a svg.i { width: 15px; height: 15px; }
.rail a.on { background: #fff; color: #14233a; }

.layout { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: 32px; margin-top: 10px; align-items: start; }
.hero { position: sticky; top: 118px; }
.place { display: flex; align-items: flex-start; gap: 10px; }
.place h1 { font: 700 34px/1.08 var(--display); letter-spacing: -.025em; flex: 1; min-width: 0; text-wrap: balance; }
.place small { display: block; font: 500 14px var(--body); color: var(--ink2); letter-spacing: 0; margin-top: 3px; }
.acts { display: flex; gap: 6px; flex: none; }
.ib { width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .24); display: grid; place-items: center; font-size: 16px; transition: background .2s; }
.ib:hover { background: rgba(0, 0, 0, .4); }
.ib[aria-pressed="true"] { background: #fff; color: #14233a; }
.places { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; background: rgba(0, 0, 0, .22); border-radius: 99px; overflow: hidden; font-size: 13px; }
.chip button { padding: 5px 11px; font-weight: 600; }
.chip .x { padding: 5px 9px 5px 2px; opacity: .6; }
.status { margin-top: 8px; font-size: 12.5px; color: var(--ink2); display: flex; gap: 8px; align-items: center; min-height: 18px; }
.status .off { background: #ffd27a; color: #3a2a00; border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: 11.5px; }

/* ---------- Vòng giờ ---------- */
.dialwrap { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 8px auto 0; }
.dialwrap svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline-offset: 6px; border-radius: 50%; user-select: none; -webkit-user-select: none; }
.dialwrap svg:active { cursor: grabbing; }
.center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.center .t { font: 300 88px/.9 var(--display); letter-spacing: -.055em; display: flex; justify-content: center; text-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.center .t sup { font-size: 34px; margin-top: 6px; color: var(--ink2); font-weight: 300; letter-spacing: 0; }
.center .ic { width: 54px; height: 54px; margin: 0 auto 6px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25)); }
.center .ic svg { width: 100%; height: 100%; stroke-width: 1.4; }
.center .c { font: 600 17px var(--display); margin-top: 6px; }
.center .h { font-size: 12.5px; color: var(--ink2); letter-spacing: .05em; margin-top: 2px; text-transform: uppercase; }
.nowbtn { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border-radius: 99px; background: #fff; color: #14233a; font: 700 13px var(--body); padding: 7px 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: opacity .2s, transform .2s; }
.nowbtn[hidden] { display: block !important; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }
.line { margin: 22px 6px 2px; text-align: center; font: 500 17px/1.35 var(--display); min-height: 46px; text-wrap: balance; }
.line small { display: block; font: 500 13px var(--body); color: var(--ink2); margin-top: 3px; }

/* ---------- Ô ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.tile { background: var(--tile); border-radius: var(--radius); padding: 18px 18px 16px; min-width: 0; position: relative; display: flex; flex-direction: column; backdrop-filter: blur(6px); transition: background .9s ease; }
.tile.w2 { grid-column: span 2; }
.tile .k { display: flex; align-items: center; gap: 7px; font: 700 11.5px var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink2); min-height: 20px; }
.tile .k svg.i { width: 16px; height: 16px; color: var(--ac, #fff); }
.tile .k .lk { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #fff; opacity: .9; display: inline-flex; align-items: center; gap: 2px; }
.tile .k .lk svg.i { width: 13px; height: 13px; color: #fff; }
.num { font: 300 46px/1 var(--display); letter-spacing: -.035em; }
.num small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--ink2); margin-left: 4px; }
.cap { font-size: 13px; color: var(--ink2); margin-top: 6px; line-height: 1.4; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mini > div, .kv { background: var(--tile-2); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.mini span, .kv span { display: block; font-size: 11.5px; color: var(--ink2); }
.mini b, .kv b { font: 500 21px var(--display); letter-spacing: -.01em; }
.mini b small, .kv b small { font-size: 12px; color: var(--ink2); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #1d1400; white-space: nowrap; vertical-align: middle; }
.lv1 { background: #7ad7a0; } .lv2 { background: #ffc23d; } .lv3 { background: #ff9a52; } .lv4 { background: #ff6b6b; } .lv5 { background: #c08cff; } .lv0 { background: #8cc4ff; }

/* biểu đồ trong ngày */
.chips2 { display: flex; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; }
.chips2 button { border: 1px solid rgba(255, 255, 255, .26); border-radius: 99px; padding: 5px 12px; font: 600 12.5px var(--body); color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.chips2 button[aria-pressed="true"] { background: #fff; color: #14233a; border-color: #fff; }
.chips2 i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart svg { width: 100%; display: block; margin-top: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.legend b { color: #fff; }

/* theo giờ */
.strip { display: flex; gap: 4px; overflow-x: auto; margin: 10px -6px 0; padding: 0 6px 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.strip button { flex: none; width: 60px; text-align: center; font-size: 12.5px; padding: 8px 0; border-radius: 18px; transition: background .2s; }
.strip button.on { background: rgba(255, 255, 255, .16); }
.strip button:hover { background: rgba(255, 255, 255, .1); }
.strip svg.i { width: 24px; height: 24px; margin: 5px 0; }
.strip b { display: block; font: 500 18px var(--display); }
.strip em { font-style: normal; color: var(--rain); font-size: 11.5px; min-height: 14px; display: block; }

/* 7 ngày */
.drow { display: grid; grid-template-columns: 78px 26px 38px 30px 1fr 30px; gap: 10px; align-items: center; padding: 9px 4px; width: 100%; text-align: left; border-radius: 14px; font-size: 14.5px; }
.drow:hover { background: rgba(255, 255, 255, .08); }
.drow .dn small { display: block; font-size: 11.5px; color: var(--ink2); }
.drow .lo { color: var(--ink2); text-align: right; } .drow .hi { font-weight: 700; }
.drow .rp { font-size: 12px; color: var(--rain); }
.track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); position: relative; }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #8cc4ff, #ffb36b); }

/* gió */
.windrow { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.windrow svg.cmp { width: 96px; flex: none; }
.bft { display: flex; gap: 2px; margin-top: 8px; }
.bft i { flex: 1; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.bft i.on { background: #7fe0c0; }

/* mặt trời */
.sunsvg { width: 100%; max-width: 420px; height: auto; max-height: 130px; margin: 8px auto 0; display: block; }
.moonrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

/* mưa */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 3px; background: rgba(140, 196, 255, .85); min-height: 4px; }
.bars i.dry { background: rgba(255, 255, 255, .16); }
.barx { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); margin-top: 4px; }

/* không khí */
.aqi { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 8px; }
.aqi .gauge svg { width: 100%; display: block; }
.aqi .gnum { font: 300 52px/1 var(--display); text-align: center; margin-top: -10px; letter-spacing: -.04em; }
.advice { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.advice ul { margin: 6px 0 0 18px; color: var(--ink2); }

/* radar */
.radarbox { border-radius: 20px; overflow: hidden; margin-top: 12px; height: 460px; background: #0b1a2c; position: relative; }
.radarbox iframe { width: 100%; height: 100%; border: 0; display: block; }

/* môi trường */
.li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.li:first-child { border-top: 0; }
.mag { flex: none; color: #1d1400; font-weight: 800; font-size: 13px; border-radius: 9px; padding: 3px 8px; min-width: 52px; text-align: center; }
.li b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.li small { display: block; color: var(--ink2); font-size: 12.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { border: 1px solid; border-radius: 99px; padding: 2px 11px; font-size: 12.5px; }
.kpbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 5px; }
.kpbar i { display: block; height: 100%; border-radius: 4px; }
.kprow { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.kprow b { font: 500 22px var(--display); color: #fff; }
.tide svg { width: 100%; height: 100px; display: block; margin-top: 10px; background: var(--tile-2); border-radius: 14px; }
.tide .m { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; }
.tide .hi { color: #8fe3ff; } .tide .lo { color: #ffd27a; }


/* skeleton */
.sk { position: relative; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); min-height: 16px; }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: sh 1.3s infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* cửa sổ chi tiết */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.sheet { position: relative; background: color-mix(in srgb, var(--s1) 62%, #000); border-radius: 30px; max-width: 540px; width: 100%; max-height: 88vh; overflow: auto; padding: 22px 22px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sheet .cl { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.sheet h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; margin: 0 44px 12px 0; }
.sheet .top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sheet .top svg.i { width: 56px; height: 56px; stroke-width: 1.4; }
.sheet .top b { font: 300 44px/1 var(--display); letter-spacing: -.04em; }
.sheet .top b small { font-size: 22px; color: var(--ink2); }
.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hrow { display: grid; grid-template-columns: 52px 30px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #fff; color: #14233a; padding: 10px 18px; border-radius: 99px; font: 700 14px var(--body); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Máy tính nhỏ & điện thoại ---------- */
@media (max-width: 1100px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .hero { position: static; }
    .dialwrap { width: min(100%, 360px); }
    .rail { top: 62px; }
}
@media (max-width: 720px) {
    .app { padding: 0 14px 50px; }
    .rail { margin: 0 -14px; padding-inline: 14px; top: 0; }
    .place h1 { font-size: 28px; }
    .center .t { font-size: 72px; }
    .tiles { gap: 10px; }
    .tile { border-radius: 24px; padding: 15px; }
    .tile.w2 { grid-column: span 2; }
    .aqi { grid-template-columns: 1fr; }
    .radarbox { height: 380px; }
    .drow { grid-template-columns: 62px 26px 34px 28px 1fr 28px; gap: 6px; font-size: 14px; }
    .kvs { grid-template-columns: 1fr; }
    html { scroll-padding-top: 56px; }
}

/* ---- polar (động đất, bão) ---- */
.split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 8px; }
.polar { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.sl { min-width: 0; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.spin { animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.calm { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.calm b { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(122, 215, 160, .2); color: #7ad7a0; display: grid; place-items: center; font-size: 18px; }
.calm p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.4; }
.strong { margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); display: grid; gap: 2px; }
.strong span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-weight: 700; }
.strong b { font: 800 26px var(--display); }
.strong small { color: var(--ink2); font-size: 12.5px; }
.warn { padding: 9px 12px; border-radius: 14px; background: rgba(255, 154, 82, .18); border: 1px solid rgba(255, 154, 82, .5); font-size: 14px; margin-bottom: 4px; }
/* ---- mưa ---- */
.rainhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rainhead .big { display: block; font: 800 40px/1 var(--display); letter-spacing: -.02em; }
.rainhead .big em { font: 600 18px var(--body); font-style: normal; opacity: .8; }
.rainhead .wetc { color: #8fd3ff; } .rainhead .dryc { color: #ffd27a; }
.rainhead small { display: block; color: var(--ink2); font-size: 13px; margin-top: 4px; max-width: 280px; }
.rn { display: flex; gap: 18px; } .rn div { text-align: center; } .rn b { display: block; font: 800 22px var(--display); } .rn span { font-size: 11.5px; color: var(--ink2); }
.bars.rb { height: 96px; gap: 3px; } .bars.rb i { box-shadow: none; } .bars.rb i.now { outline: 2px solid #fff; outline-offset: 1px; }
.rlegend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--ink2); } .rlegend span { display: inline-flex; align-items: center; gap: 5px; } .rlegend i { width: 10px; height: 10px; border-radius: 3px; }
.wkrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink2); }
.wk i { width: 100%; max-width: 34px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.wk i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: linear-gradient(#8fd3ff, #4aa8ff); }
.wk b { color: #fff; font-size: 12px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } .rainhead .big { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .pulse, .spin { animation: none; } }

/* ---- theo giờ chi tiết ---- */
.tile, .hero, .tiles > * { scroll-margin-top: 130px; }
.hwrap { display: flex; gap: 0; margin-top: 10px; align-items: stretch; }
.hlab { flex: none; width: 84px; font-size: 11.5px; color: var(--ink2); position: sticky; left: 0; z-index: 2; background: color-mix(in srgb, #000 30%, var(--s2)); border-radius: 14px 0 0 14px; }
.hwrap .strip { margin: 0; padding: 0 0 6px; gap: 0; flex: 1; min-width: 0; }
.hwrap .strip button { width: 58px; padding: 0; border-radius: 0; font-size: 13px; border-left: 1px solid rgba(255,255,255,.05); }
.hwrap .strip button.nd { border-left: 1px solid rgba(255,255,255,.28); }
.hwrap .strip button.on { background: rgba(255,255,255,.16); }
.hwrap .strip button > div, .hlab > div { height: 32px; display: flex; align-items: center; justify-content: center; }
.hlab > div { justify-content: flex-start; padding-left: 10px; }
.hwrap .ht, .hlab .ht { height: 38px !important; flex-direction: column; font-weight: 700; line-height: 1.1; }
.ht u { text-decoration: none; font-size: 10px; font-weight: 600; color: #ffd27a; text-transform: uppercase; }
.hwrap .hi, .hlab .hi { height: 38px !important; }
.hwrap .hi svg.i { width: 26px; height: 26px; margin: 0; }
.hwrap .hv, .hlab .hv { height: 78px !important; position: relative; align-items: flex-start; padding-top: 4px; }
.hv b { font: 600 17px var(--display); position: relative; z-index: 1; }
.hv i { position: absolute; left: 14px; right: 14px; bottom: 6px; border-radius: 8px; background: linear-gradient(#ffb36b, #ff6f61); opacity: .7; max-height: 62%; }
.hr, .hlab .hr { height: 44px !important; position: relative; }
.hr i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.hr i::after { content: ''; position: absolute; inset: auto 0 0 0; height: var(--p); background: linear-gradient(#8fd3ff, #4aa8ff); }
.hr b { position: relative; z-index: 1; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.uvd { min-width: 26px; padding: 1px 0; border-radius: 9px; color: #1b1300; font-weight: 800; font-size: 12px; text-align: center; }
.hwrap .hs { border-top: 1px solid rgba(255,255,255,.06); }
@media (max-width: 720px) { .hlab { width: 70px; font-size: 10.5px; } }

#push-btn.on { background: #7ad7a0; color: #0b2a1a; }

/* ---- cảnh báo nổi bật ---- */
.alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.alerts[hidden] { display: none; }
.al { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.14); border-left: 5px solid #ffd24d; backdrop-filter: blur(6px); }
.al.l2 { border-left-color: #ff9a52; } .al.l3 { border-left-color: #ff5d5d; background: rgba(90,10,10,.38); }
.al svg.i { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.al.l3 svg.i { color: #ff8a8a; } .al.l2 svg.i { color: #ffb36b; }
.al b { display: block; font: 700 15px var(--body); } .al span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink2); margin-top: 2px; }
.al.more { align-items: center; justify-content: center; font-weight: 700; }

/* ---- gợi ý ---- */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.tip.warn { background: rgba(255,154,82,.14); border-color: rgba(255,154,82,.35); } .tip.ok { background: rgba(122,215,160,.1); border-color: rgba(122,215,160,.28); }
.tip .em { font-size: 30px; line-height: 1; flex: none; }
.tip b { display: block; font: 700 14.5px var(--body); } .tip div span { display: block; font-size: 13px; line-height: 1.4; color: var(--ink2); margin-top: 3px; }
@media (max-width: 900px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } }

/* ---- so sánh địa điểm ---- */
.cmprow { display: grid; grid-template-columns: minmax(0, 1.6fr) 30px 56px minmax(0, 1fr) 72px minmax(0, .9fr); gap: 10px; align-items: center; width: 100%; text-align: left; padding: 11px 12px; margin-top: 8px; border-radius: 18px; background: rgba(255,255,255,.07); transition: background .2s; }
button.cmprow:hover { background: rgba(255,255,255,.14); } .cmprow.cur { background: rgba(255,255,255,.16); }
.cmprow .cn { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cmprow .cn em { display: block; font-style: normal; font-size: 11px; color: #7fe0c0; font-weight: 600; }
.cmprow svg.i { width: 26px; height: 26px; } .cmprow .ct { font: 600 22px var(--display); } .cmprow .cr, .cmprow .cw { color: var(--ink2); font-size: 13px; }
.cmprow .cp { position: relative; height: 24px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cmprow .cp i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: rgba(74,168,255,.55); }
.cmprow .cp { isolation: isolate; } .cmprow .cp i { z-index: -1; }
@media (max-width: 640px) { .cmprow { grid-template-columns: minmax(0, 1.4fr) 26px 48px 64px; } .cmprow .cr, .cmprow .cw { display: none; } }

/* ---- nội dung SEO cuối trang ---- */
.seo { margin-top: 26px; padding: 20px 22px; border-radius: 24px; background: rgba(0,0,0,.22); }
.seo h2 { font: 700 18px var(--display); margin: 0 0 8px; } .seo p { margin: 0 0 14px; color: var(--ink2); font-size: 14px; line-height: 1.6; max-width: 900px; }
.cities { display: flex; flex-wrap: wrap; gap: 6px 8px; } .cities a { font-size: 12.5px; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.08); text-decoration: none; color: var(--ink2); } .cities a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Khung PVSoft: thẻ cài app, chip địa điểm, cài đặt gọn, chân trang ---------- */
.slot { grid-column: span 2; position: relative; min-width: 0; }
.slot[hidden] { display: none; }
.slot .pv-install { margin: 0; background: rgba(0, 0, 0, .3); border-color: rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 16px 18px; backdrop-filter: blur(6px); }
.slot .pv-install-ic { background: #fff; color: #1f6fe0; }
.slot .pv-install-tx b { font: 700 16px var(--display); letter-spacing: -.01em; }
.slot .pv-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; opacity: .7; }
.slot .pv-x:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.slot .pv-x svg.i { width: 14px; height: 14px; }
.slot .pv-install:has(.pv-x) { padding-right: 40px; }
.chip button { display: inline-flex; align-items: center; gap: 5px; } .chip svg.i { width: 12px; height: 12px; opacity: .8; }
.chip.on { background: rgba(255, 255, 255, .92); color: #14233a; } .chip.on .x { opacity: .55; }
.chip.rc { background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .28); }
.datasrc { font-size: 12.5px !important; color: var(--ink3) !important; margin: 14px 0 0 !important; }
.pvw-foot { position: relative; z-index: 1; }
.pvw-foot .pv-related { background: rgba(0, 0, 0, .2); border-top: 0; margin-top: 8px; }
.pvw-foot .pv-card { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pvw-foot .pv-card em { color: #fff; }
.pvw-foot .pv-footer { background: rgba(0, 0, 0, .34); border-top: 0; }
.pvw-foot .pv-foot-bot { border-top-color: rgba(255, 255, 255, .14); }
.pvw-foot .pv-foot-col a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1100px) { .pvw-shell .pv-header-in { padding: 0 14px; } }
@media (max-width: 720px) {
    .pvw-shell .pv-header { position: relative; }
    .pvw-shell .pv-header-in { min-height: 0; padding: 7px 12px 8px; gap: 8px; }
    .pvw-shell .pv-name { display: none; }
    .pvw-shell .pv-app { padding: 9px 12px; font-size: 12.5px; }
    .pvw-shell .pv-switch-btn { padding: 7px 8px 7px 12px; }
    .search { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
    .pvw-shell .pv-header-in { position: relative; }
    .tools { margin-left: auto; position: static; }
    .setbtn { display: inline-flex; }
    .setpanel { display: none; position: absolute; right: 12px; top: 54px; z-index: 70; width: min(300px, calc(100vw - 24px)); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: 20px; background: color-mix(in srgb, #050d1c 55%, var(--s1)); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
    .setpanel.open { display: flex; }
    .setrow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; }
    .setl { display: block; font: 600 13px var(--body); color: var(--ink2); }
    .setpanel select { width: 100%; background-color: rgba(255, 255, 255, .12); }
    .lang-wrap .i { left: 108px; }
    .instbtn { background: rgba(255, 255, 255, .12); }
    .places { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding-inline: 14px; scrollbar-width: none; }
    .places::-webkit-scrollbar { display: none; } .chip { flex: none; }
    .slot .pv-install { padding: 14px; }
    .alerts { margin: 2px 0 6px; gap: 6px; } .al { padding: 8px 12px; border-radius: 16px; gap: 10px; } .al svg.i { width: 20px; height: 20px; } .al b { font-size: 14px; } .al span { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pvw-foot .pv-related { padding: 26px 0 30px; }
}
