:root {
  --ink: #0f172a; --muted: #64748b; --line: #e6edf3; --blue: #0284c7;
  --card-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #f6f9fc; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topin { display: flex; align-items: center; gap: 16px; max-width: 980px; margin: 0 auto; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand b { color: var(--blue); }
.brand:hover { text-decoration: none; }
.searchwrap { position: relative; flex: 1; max-width: 520px; }
.searchwrap input { width: 100%; padding: 11px 16px; font-size: 16px; border: 1px solid #dbe4ec; border-radius: 999px; outline: none; background: #f8fafc; transition: all .15s; }
.searchwrap input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(2,132,199,.13); }
.suggest { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.16); overflow: hidden; z-index: 60; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; color: var(--ink); }
.suggest a:hover, .suggest a.active { background: #f0f9ff; text-decoration: none; }
.suggest .sc { color: var(--muted); font-size: 13px; white-space: nowrap; }
.units { border: 1px solid #dbe4ec; background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 15px; font-weight: 600; cursor: pointer; }
.langsel { margin-left: auto; border: 1px solid #dbe4ec; background: #fff; border-radius: 999px; padding: 8px 6px; font-size: 13.5px; font-weight: 600; color: #0f2a43; cursor: pointer; max-width: 132px; }
.langsel + .units { margin-left: 0; }
.langbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14.5px; }
.langbar a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
.langbar button { border: 0; background: transparent; color: #1e40af; font-size: 15px; cursor: pointer; padding: 2px 6px; }
.units:hover { border-color: var(--blue); color: var(--blue); }
main { max-width: 980px; margin: 0 auto; padding: 22px 16px 44px; }
h1 { font-size: 32px; letter-spacing: -.02em; margin: 6px 0 18px; overflow-wrap: break-word; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 12px; overflow-wrap: break-word; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 6px; overflow-wrap: break-word; }
.dim { color: var(--muted); font-weight: 400; font-size: 14px; }
.summary { color: #334155; margin: -4px 0 12px; font-size: 15px; }
.alerts { margin-bottom: 14px; }
.alert { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 12px; padding: 11px 15px; font-size: 14.5px; margin-bottom: 8px; }
.now { color: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--card-shadow); position: relative; overflow: hidden; }
.now.g-clear { background: linear-gradient(130deg, #38bdf8, #0369a1); }
.now.g-cloud { background: linear-gradient(130deg, #7d9dbd, #3d5a76); }
.now.g-rain { background: linear-gradient(130deg, #4b6a8a, #1e3a52); }
.now.g-snow { background: linear-gradient(130deg, #93a7c9, #5b7ba6); }
.now.g-storm { background: linear-gradient(130deg, #3b3f6b, #171a33); }
.now.g-fog { background: linear-gradient(130deg, #8d99a6, #57616d); }
.nowmain { display: flex; gap: 18px; align-items: center; position: relative; z-index: 2; }
.now { --fx1: rgba(125,211,252,.55); --fx2: rgba(59,130,246,.5); --fx3: rgba(255,255,255,.32); }
.now.g-clear { --fx1: rgba(253,224,130,.6); --fx2: rgba(56,189,248,.45); --fx3: rgba(255,255,255,.38); }
.now.g-cloud { --fx1: rgba(148,184,220,.5); --fx2: rgba(100,130,170,.45); --fx3: rgba(255,255,255,.2); }
.now.g-rain { --fx1: rgba(56,150,200,.42); --fx2: rgba(23,68,110,.5); --fx3: rgba(140,190,220,.22); }
.now.g-snow { --fx1: rgba(203,213,242,.6); --fx2: rgba(148,168,220,.42); --fx3: rgba(255,255,255,.5); }
.now.g-storm { --fx1: rgba(99,102,190,.38); --fx2: rgba(38,40,88,.55); --fx3: rgba(150,150,220,.16); }
.now.g-fog { --fx1: rgba(190,200,210,.42); --fx2: rgba(130,145,160,.38); --fx3: rgba(255,255,255,.22); }
.fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 1; }
.fxblob { position: absolute; border-radius: 50%; filter: blur(28px); will-change: transform; }
.fxblob.b1 { width: 58%; padding-top: 58%; right: -8%; top: -58%; background: radial-gradient(circle at center, var(--fx1), transparent 65%); animation: fxdrift1 34s ease-in-out infinite alternate; }
.fxblob.b2 { width: 46%; padding-top: 46%; right: 22%; bottom: -75%; background: radial-gradient(circle at center, var(--fx2), transparent 65%); animation: fxdrift2 42s ease-in-out infinite alternate; }
.fxblob.b3 { width: 34%; padding-top: 34%; left: 30%; top: -42%; background: radial-gradient(circle at center, var(--fx3), transparent 65%); animation: fxdrift1 48s ease-in-out infinite alternate-reverse; }
.fxsheen { position: absolute; inset: 0; background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.1) 48%, rgba(255,255,255,.03) 54%, transparent 66%); transform: translateX(-130%); animation: fxsheenmove 13s ease-in-out infinite; }
.fxrain { position: absolute; top: -44px; width: 1px; border-radius: 1px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0)); animation: fxfall linear infinite; }
.fxsnow { position: absolute; top: -10px; border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(.4px); animation: fxsway ease-in-out infinite; }
.fxmist { position: absolute; left: -10%; width: 120%; height: 26px; border-radius: 50%; background: rgba(255,255,255,.13); filter: blur(12px); animation: fxmistmove 16s ease-in-out infinite alternate; }
.fxmist.slow { animation-duration: 23s; }
@keyframes fxdrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-46px, 26px) scale(1.12); } }
@keyframes fxdrift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(38px, -20px) scale(.94); } }
@keyframes fxsheenmove { 0% { transform: translateX(-130%); } 22% { transform: translateX(130%); } 100% { transform: translateX(130%); } }
@keyframes fxfall { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .8; } 88% { opacity: .8; } 100% { transform: translateY(280px); opacity: 0; } }
@keyframes fxsway { 0% { transform: translate(0, -10px); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(14px, 115px); } 90% { opacity: 1; } 100% { transform: translate(-6px, 235px); opacity: 0; } }
@keyframes fxmistmove { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@media (prefers-reduced-motion: reduce) { .fx * { animation: none !important; } }
.bigtemp { font-size: 72px; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.cond { font-size: 21px; font-weight: 650; margin-top: 4px; }
.place { opacity: .92; margin-top: 2px; font-size: 16px; }
.feels { opacity: .85; font-size: 14px; margin-top: 5px; }
.delta { display: inline-block; margin-top: 9px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; box-shadow: var(--card-shadow); }
.hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.hour { min-width: 66px; text-align: center; padding: 10px 4px; border-radius: 12px; background: #f6f9fc; border: 1px solid #eef3f8; }
.hour .hh { font-size: 13px; color: var(--muted); }
.hour .ht { font-size: 17px; font-weight: 700; margin-top: 2px; }
.hour .hp { font-size: 12px; color: var(--blue); min-height: 15px; }
#radar { height: 330px; border-radius: 12px; overflow: hidden; background: #e8eef4; position: relative; z-index: 1; }
.radarload { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
.days { display: flex; flex-direction: column; }
.day { display: grid; grid-template-columns: 158px 34px 1fr 220px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.day > * { min-width: 0; }
.dlabel { overflow-wrap: break-word; }
.day:last-child { border-bottom: none; }
.dname { font-weight: 600; font-size: 15px; }
.dlabel { color: #475569; font-size: 14px; }
.drange { display: flex; align-items: center; gap: 8px; }
.dbar { position: relative; flex: 1; height: 6px; background: #e8eef4; border-radius: 3px; }
.dbar span { position: absolute; top: 0; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #f59e0b); }
.dlo { color: var(--muted); } .dhi { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 22px; margin: 0; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stats dd { margin: 3px 0 0; font-size: 16.5px; font-weight: 650; }
details summary { cursor: pointer; font-weight: 650; font-size: 16px; }
.htablewrap { overflow-x: auto; margin-top: 12px; }
.htable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.htable th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.htable td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.htable tr:last-child td { border-bottom: none; }
.aqrow { display: flex; align-items: center; gap: 16px; }
.aqbadge { color: #fff; font-weight: 800; font-size: 24px; border-radius: 14px; padding: 12px 18px; min-width: 74px; text-align: center; }
.aqlabel { font-weight: 700; font-size: 17px; }
.aqsub { color: #475569; font-size: 14px; margin-top: 2px; }
.aqnote { color: #475569; font-size: 14px; margin: 12px 0 0; }
.qa h3 { font-size: 16px; margin: 16px 0 4px; }
.qa:first-of-type h3 { margin-top: 2px; }
.qa p { margin: 0; color: #334155; line-height: 1.55; }
.citylist { columns: 3; column-gap: 28px; }
.citylist a { display: block; padding: 5px 0; color: var(--ink); font-size: 15px; border-bottom: 1px solid #f4f7fa; }
.citylist a:hover { color: var(--blue); text-decoration: none; }
.citylist .cp { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .citylist { columns: 2; } }
@media (max-width: 480px) { .citylist { columns: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #f0f9ff; border: 1px solid #d8ecfa; color: #0369a1; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 550; }
.chip:hover { background: #e0f2fe; text-decoration: none; }
.nearp { margin-top: 14px; }
.foot { max-width: 980px; margin: 0 auto; padding: 8px 16px 36px; color: var(--muted); font-size: 13px; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 6px; }
@media (max-width: 640px) {
  .topin { flex-wrap: wrap; row-gap: 10px; }
  .searchwrap { order: 3; flex-basis: 100%; max-width: none; }
  .day { grid-template-columns: 108px 30px 1fr; }
  .drange { grid-column: 1 / -1; }
  .bigtemp { font-size: 56px; }
  .nowmain { gap: 12px; }
  .nowmain .wic { width: 64px; height: 64px; }
  h1 { font-size: 26px; }
  #radar { height: 260px; }
  .now { padding: 20px; }
  .card { padding: 16px; }
  .aqbadge { min-width: 62px; font-size: 20px; padding: 10px 12px; }
}
