/* Небо меняется от погоды и времени суток, карточки лежат на нём.
   Цвета неба заданы по парам data-sky и data-time, весь остальной интерфейс берёт их через токены. */
@property --sky-a { syntax: '<color>'; inherits: true; initial-value: #6f8ba6; }
@property --sky-b { syntax: '<color>'; inherits: true; initial-value: #9db2c4; }
@property --sky-c { syntax: '<color>'; inherits: true; initial-value: #c6d2db; }

:root {
  --sky-a: #6f8ba6; --sky-b: #9db2c4; --sky-c: #c6d2db;
  --on-sky: #fff;
  --on-sky-soft: rgba(255, 255, 255, .86);
  --sky-shadow: 0 1px 12px rgba(20, 40, 70, .28);
  --glass: rgba(255, 255, 255, .2);
  --glass-strong: rgba(255, 255, 255, .3);
  --card: rgba(255, 255, 255, .95);
  --card-2: #eef2f6;
  --sheet: #fff;
  --ink: #16202b;
  --ink-2: #4d5a68;
  --ink-3: #6f7c8a;
  --line: rgba(22, 32, 43, .09);
  --wet: #1f78e0;
  --dry: #e29a00;
  --good: #0a8f5b;
  --bad: #d13b3b;
  --accent: #1f78e0;
  --series-fact: #d9480f;
  --series-fc: #2f6fde;
  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
  transition: --sky-a 1.1s ease, --sky-b 1.1s ease, --sky-c 1.1s ease;
}

[data-sky='clear'][data-time='day'] { --sky-a: #2277d6; --sky-b: #5aa7ec; --sky-c: #b4dcf7; }
[data-sky='partly'][data-time='day'] { --sky-a: #3f85ca; --sky-b: #7fb2dc; --sky-c: #c3dbec; }
[data-sky='cloudy'][data-time='day'] { --sky-a: #5f7f9f; --sky-b: #8ea8bf; --sky-c: #bccbd8; }
[data-sky='overcast'][data-time='day'] { --sky-a: #66737f; --sky-b: #8a96a1; --sky-c: #aeb7bf; }
[data-sky='fog'][data-time='day'] { --sky-a: #8d979f; --sky-b: #acb4ba; --sky-c: #cdd2d5; }
[data-sky='rain'][data-time='day'] { --sky-a: #3f5163; --sky-b: #5a6e81; --sky-c: #8295a6; }
[data-sky='storm'][data-time='day'] { --sky-a: #262a3e; --sky-b: #3d3d59; --sky-c: #5c5a78; }
[data-sky='snow'][data-time='day'] { --sky-a: #7f9ab6; --sky-b: #aec3d6; --sky-c: #dce6ee; }

[data-sky='clear'][data-time='twilight'] { --sky-a: #2d4a80; --sky-b: #b77a79; --sky-c: #f4b780; }
[data-sky='partly'][data-time='twilight'] { --sky-a: #3a4f79; --sky-b: #a57a80; --sky-c: #eab08a; }
[data-sky='cloudy'][data-time='twilight'] { --sky-a: #44526c; --sky-b: #7f7a86; --sky-c: #bc9f98; }
[data-sky='overcast'][data-time='twilight'], [data-sky='fog'][data-time='twilight'] { --sky-a: #4a5362; --sky-b: #6e7180; --sky-c: #9b9293; }
[data-sky='rain'][data-time='twilight'] { --sky-a: #303c4f; --sky-b: #4b5468; --sky-c: #76707c; }
[data-sky='storm'][data-time='twilight'] { --sky-a: #1f2134; --sky-b: #35324e; --sky-c: #5a4f68; }
[data-sky='snow'][data-time='twilight'] { --sky-a: #5d6d8e; --sky-b: #93a0b7; --sky-c: #d3c8c7; }

[data-sky='clear'][data-time='night'] { --sky-a: #081430; --sky-b: #10254a; --sky-c: #1e3c68; }
[data-sky='partly'][data-time='night'] { --sky-a: #0f1b33; --sky-b: #1a2c49; --sky-c: #2c4362; }
[data-sky='cloudy'][data-time='night'], [data-sky='overcast'][data-time='night'], [data-sky='fog'][data-time='night'] { --sky-a: #171f2a; --sky-b: #232d3a; --sky-c: #36424f; }
[data-sky='rain'][data-time='night'] { --sky-a: #101823; --sky-b: #1a2533; --sky-c: #2b3a4a; }
[data-sky='storm'][data-time='night'] { --sky-a: #0b0b18; --sky-b: #17152a; --sky-c: #2a2642; }
[data-sky='snow'][data-time='night'] { --sky-a: #1b2638; --sky-b: #2d3c52; --sky-c: #4b5e78; }


/* Тёмные карточки: ночь, гроза и астровкладка */
[data-time='night'], [data-sky='storm'] {
  --card: rgba(22, 28, 40, .86);
  --sheet: #1a212e;
  --card-2: rgba(255, 255, 255, .07);
  --ink: #eef2f8;
  --ink-2: #b6c1cf;
  --ink-3: #93a0b0;
  --line: rgba(255, 255, 255, .12);
  --good: #4bd597;
  --bad: #ff8a8a;
  --series-fact: #e06a24;
  --series-fc: #5a93ea;
  color-scheme: dark;
}
[data-time='night'], [data-sky='storm'] { --wet: #66adff; --dry: #f4bd45; --accent: #66adff; }

/* На светлом снеге и тумане белый текст не читается */
[data-sky='snow'][data-time='day'], [data-sky='fog'][data-time='day'] {
  --on-sky: #17222e;
  --on-sky-soft: rgba(23, 34, 46, .8);
  --sky-shadow: none;
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .62);
}

* { box-sizing: border-box; }
html { background: var(--sky-a); }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 15px/1.45 var(--text);
  color: var(--on-sky);
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 52%, var(--sky-c)) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--on-sky); outline-offset: 2px; border-radius: 8px; }
.card :focus-visible { outline-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-block: env(safe-area-inset-top, 0px) 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.top { display: flex; align-items: center; gap: 12px 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 16px/1 var(--display); text-decoration: none; letter-spacing: -.01em; text-shadow: var(--sky-shadow); }
.search { position: relative; flex: 0 1 230px; min-width: 130px; }
.search input {
  width: 100%; padding: 8px 14px; border: 0; border-radius: 999px; font: inherit; color: var(--on-sky);
  background: var(--glass); backdrop-filter: blur(10px);
}
.search input::placeholder { color: var(--on-sky-soft); }
.search input:focus { outline: 0; background: var(--card); color: var(--ink); }
.city-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-end: 0; width: min(300px, 88vw); margin: 0; padding: 6px; list-style: none;
  background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 40px rgba(10, 20, 40, .28); backdrop-filter: blur(16px);
}
.city-list button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: start; border-radius: 10px; cursor: pointer; }
.city-list button:hover, .city-list button:focus { background: var(--card-2); }
.city-list small { display: block; color: var(--ink-3); }

/* Главный блок */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: end; padding-block: 18px 22px; }
.hero h1 { font: 500 17px/1.3 var(--text); color: var(--on-sky-soft); text-shadow: var(--sky-shadow); }
.temp-row { display: flex; align-items: center; gap: 14px; margin-top: 2px; flex-wrap: wrap; }
.temp { font: 300 clamp(72px, 13vw, 124px)/1.02 var(--display); letter-spacing: -.05em; text-shadow: var(--sky-shadow); }
.hero .wx { filter: drop-shadow(0 4px 12px rgba(20, 40, 70, .25)); }
.cond { font: 600 clamp(20px, 3vw, 27px)/1.2 var(--text); text-shadow: var(--sky-shadow); text-wrap: balance; }
.cond-note { margin-top: 5px; color: var(--on-sky-soft); text-shadow: var(--sky-shadow); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { padding: 4px 11px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); font-size: 13.5px; white-space: nowrap; }
.back { margin-top: 12px; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--glass-strong); cursor: pointer; }

.card { background: var(--card); color: var(--ink); border-radius: 22px; padding: 18px; backdrop-filter: blur(18px); min-width: 0; }
.card h2 { font: 600 16.5px/1.3 var(--text); }
.card .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }

/* Шанс */
.chance-head { display: flex; align-items: flex-end; gap: 12px; }
.chance-num { font: 400 50px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chance-word { font-weight: 600; font-size: 15px; line-height: 1.25; padding-bottom: 3px; }
.chance-word small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.meter { position: relative; height: 8px; border-radius: 999px; margin-top: 12px; background: var(--card-2); overflow: hidden; }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: var(--accent); transition: width .5s ease; }
.votes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.vote { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; cursor: default; }
.vote svg { width: 11px; height: 11px; }
.vote.wet { background: var(--wet); color: #fff; }
.vote.dry { background: var(--dry); color: #fff; }
.vote.wait { background: var(--card-2); }
.vote-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: 13px; color: var(--ink-2); }

/* Выбранный день по часам: ползунок наверху страницы */
.dayline { padding-bottom: 12px; }
.dl-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 16px; margin-top: 12px; }
.dl-read { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: auto 44px auto minmax(0, 1fr) auto; grid-template-areas: "time ic temp txt now"; align-items: center; column-gap: 10px; }
.dl-read .dt-time { grid-area: time; font: 400 26px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 3.1em; }
.dl-ic { grid-area: ic; display: grid; place-items: center; width: 44px; height: 44px; }
.dl-temp { grid-area: temp; font: 400 32px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dl-txt { grid-area: txt; min-width: 0; display: grid; gap: 2px; font-weight: 600; font-size: 15px; line-height: 1.25; }
.dl-meta { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.dl-read .dt-now { grid-area: now; }
.dl-uv { flex: 1 1 300px; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 16px; background: var(--card-2); }
.dl-uvv { flex: none; display: grid; grid-template-columns: auto; justify-items: start; min-width: 4.6em; line-height: 1.15; }
.dl-uvv small { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.dl-uvnum { font: 400 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.dl-uvlvl { font-size: 12.5px; font-weight: 600; }
.dl-uv .prots { flex: 1; min-width: 0; margin-top: 0; }
.dl-uv .prot-ic { width: 36px; height: 36px; }
.dayline .dt-box { margin-top: 12px; padding-top: 0; }
/* Небо дня над шкалой (skystrip.js): холст на всю ширину, ось времени с теми же полями 11px, что у шкалы */
.dl-sky { position: relative; height: 176px; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: linear-gradient(#3f6fa8, #9cc3e2 70%, #2c6a95 70%); box-shadow: inset 0 0 0 1px var(--line); }
.dl-sky canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .dl-sky { height: 136px; border-radius: 13px; } }
.dl-chart { position: relative; height: 54px; margin-inline: 11px; }
.dl-col { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; padding: 2px 4px 3px; border-radius: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .2s ease; }
.dl-col .wx { display: block; }
.dl-col.on { background: var(--card-2); }
.dl-bars { position: relative; height: 16px; margin: 2px 11px 3px; border-bottom: 1px solid var(--line); }
.dl-bars i { position: absolute; bottom: 0; border-inline: 1px solid transparent; background: var(--wet); background-clip: padding-box; border-radius: 3px 3px 0 0; }
@media (max-width: 1100px) { .dl-col:not(.k3) { display: none; } .dl-col.on { background: none; } .dl-col.on3 { background: var(--card-2); } }
@media (max-width: 560px) {
  .dl-read { grid-template-columns: auto 44px minmax(0, 1fr) auto; grid-template-areas: "time ic temp now" "txt txt txt txt"; row-gap: 6px; }
  .dl-read .dt-time { font-size: 24px; }
  .dl-uv { max-width: none; padding: 6px 8px; gap: 6px; }
  .dl-uv .prot-cap { font-size: 11px; }
}

/* Сетка */
.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }

/* Дни */
.days { padding: 10px; }
.days > .head { padding: 8px 8px 6px; }
.day {
  display: grid; grid-template-columns: 74px 34px minmax(0, 1fr) 52px minmax(90px, 150px); align-items: center; gap: 8px; width: 100%;
  padding: 8px; border: 0; background: none; text-align: start; border-radius: 13px; cursor: pointer; color: var(--ink);
}
.day:hover { background: var(--card-2); }
.day[aria-pressed='true'] { background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.day .when b { display: block; font-weight: 600; }
.day .when small { color: var(--ink-3); font-size: 12.5px; }
.day.weekend .when b { color: var(--bad); }
.day .what { min-width: 0; font-size: 14px; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.day .what small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { justify-self: center; padding: 2px 7px; border-radius: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--card-2); }
.chip.high { color: var(--good); }
.chip.low { color: var(--bad); }
.range { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.range span:first-child { color: var(--ink-3); text-align: end; }
.range span:last-child { font-weight: 600; }
.range .track { position: relative; height: 5px; border-radius: 3px; background: var(--card-2); }
.range .track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #6fb6ff, #ffb648); }
.day .temps-short { display: none; }

/* Сейчас и источники */
.now-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 22px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.now-row:first-of-type { border-top: 0; }
.now-row b { font-weight: 600; }
.now-row small { display: block; color: var(--ink-2); font-size: 13px; }
.now-row.fact { background: var(--card-2); margin-inline: -10px; padding-inline: 10px; border-radius: 10px; border-top: 0; }
.now-row .deg { text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.mark svg { width: 13px; height: 13px; }
.mark.yes { color: var(--good); }
.mark.no { color: var(--bad); }

.soft { color: var(--ink-3); }

details.how { margin-top: 16px; }
details.how summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: '+'; color: var(--ink-3); }
details.how[open] summary::after { content: '−'; }
details.how p, details.how li { margin-top: 8px; color: var(--ink-2); max-width: 72ch; }
details.how ul { padding-left: 18px; margin: 0; }

/* Архив */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card-2); margin-inline-start: auto; flex-wrap: wrap; }
.seg button { padding: 5px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 13.5px; }
.seg button[aria-pressed='true'] { background: var(--card); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font: 400 30px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13.5px; }


.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.legend i { display: inline-block; vertical-align: middle; width: 14px; height: 3px; border-radius: 2px; margin-right: 5px; }
.chart { width: 100%; display: block; margin-top: 6px; overflow: visible; }
.chart text { font: 12px var(--text); fill: var(--ink-3); }
.chart .lbl { fill: var(--ink); font-weight: 600; }

.rank { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 76px; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.rank:first-of-type { border-top: 0; }
.rank .bar { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 4px; background: var(--wet); }
.rank.top b { color: var(--accent); }
.rank .val { text-align: end; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.rank .val b { color: var(--ink); }

.notice { padding: 14px 16px; border-radius: 16px; background: var(--glass); margin-top: 12px; }
.skeleton { color: var(--ink-3); padding: 28px 8px; text-align: center; }
.err { color: var(--bad); }
.btn { padding: 7px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; }


.tip {
  position: fixed; z-index: 50; max-width: 260px; padding: 8px 11px; border-radius: 11px; pointer-events: none;
  background: #111924; color: #eef2f8; font-size: 13px; line-height: 1.35; box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.tip b { font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 8px 16px; align-items: start; }
}
@media (max-width: 560px) {
  .top { gap: 10px; }
  .brand { order: 1; }
  .search { order: 2; flex: 1 1 130px; }
    .day { grid-template-columns: 54px 30px minmax(0, 1fr) 42px 38px; gap: 5px; padding: 8px 3px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat b { font-size: 25px; }
  .day .range { display: none; }
  .day .temps-short { display: block; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
  .day .temps-short small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
  .day .what small { display: none; }
  .card { padding: 14px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { :root { transition: none; } .meter i { transition: none; } }

/* Шапка */
.top .search { margin-inline-start: auto; }

/* Панель дня справа */
.detail { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: thin; }
.desc { margin-top: 6px; font-size: 15px; color: var(--ink); }
.src-group { margin-top: 14px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.src-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 66px 66px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.src-group + .src-row { border-top: 0; }
.src-row .who { min-width: 0; }
.src-row .who b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.src-row .who small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; }
.src-row .what2 { display: flex; align-items: center; gap: 5px; min-width: 0; line-height: 1.25; }
.src-row .what2 .wx { flex: none; }
.src-row .nums { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.src-row .nums small { display: block; white-space: normal; overflow-wrap: anywhere; color: var(--ink-3); font-size: 12px; }
.src-row .none { grid-column: 2 / 5; color: var(--ink-3); font-size: 13px; }
.src-row .mark { margin-inline-start: auto; }

/* Окно дня на телефоне */
.sheet {
  width: 100%; max-width: 640px; max-height: 86dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0;
  background: var(--sheet); color: var(--ink); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: rise .22s ease-out; }
.sheet::backdrop { background: rgba(8, 14, 24, .5); }
.sheet-head { display: flex; justify-content: flex-end; padding: 10px 12px 0; }
.sheet-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 0 16px max(18px, env(safe-area-inset-bottom, 0px)); }
.sheet-body h2 { font: 600 16.5px/1.3 var(--text); }
.sheet-body .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.sheet-hint { margin-top: 12px; color: var(--ink-3); font-size: 13px; }
html:has(.sheet[open]) { overflow: hidden; }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }

/* Календарь с архивом */
.card[data-sec='cal'] { overflow: hidden; touch-action: pan-y pinch-zoom; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.month-nav { display: flex; gap: 4px; }
.month-nav button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.month-nav button:disabled { opacity: .35; cursor: default; }
.month-title { font-weight: 600; font-size: 16.5px; text-transform: capitalize; }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.cal { margin-top: 4px; }
.cell { position: relative; display: grid; gap: 1px; align-content: start; justify-items: start; min-height: 72px; min-width: 0; padding: 5px; border: 0; border-radius: 11px; background: var(--card-2); color: var(--ink); text-align: start; cursor: pointer; font-size: 13px; }
.cell:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.cell[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.cell .n { color: var(--ink-3); font-size: 12px; }
.cell.is-today .n { color: var(--accent); font-weight: 700; }
.cell .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.cell .wx { margin-block: 1px; }
.cell .mark { position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; }
.cell .mark svg { width: 12px; height: 12px; }
.cell .ch { position: absolute; top: 4px; inset-inline-end: 5px; font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cell.future { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.cell.future[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.blank { background: none; cursor: default; }
.cell.blank:hover { box-shadow: none; }
.below { margin-top: 16px; display: grid; gap: 16px; }
.pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.big-mark { width: 54px; height: 54px; flex: none; }
.big-mark svg { width: 34px; height: 34px; }

[lang='ar'] * { letter-spacing: 0 !important; }

@media (max-width: 1040px) {
  .day { grid-template-columns: 74px 34px minmax(0, 1fr) 52px 44px; }
  .day .range { display: none; }
  .day .temps-short { display: block; text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
  .day .temps-short small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
}
@media (max-width: 900px) {
  .grid, .pair { grid-template-columns: minmax(0, 1fr); }
  .detail { display: none; }
}
@media (max-width: 560px) {
  .day { grid-template-columns: 54px 30px minmax(0, 1fr) 42px 38px; gap: 5px; padding: 8px 3px; }
  .top { gap: 8px; }
  .search { order: 4; flex: 1 1 100%; }
  .cell { min-height: 64px; padding: 4px; font-size: 12px; }
  .cell .wx { width: 22px; height: 22px; }
  .cell .ch { display: none; }
  .seg { margin-inline-start: 0; }
  .src-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 56px 56px; gap: 6px; font-size: 13px; }
}

/* Короткая строка дня в календаре: только на телефоне, на компьютере описание справа */
.cal-note { display: none; }
@media (max-width: 900px) {
  .cal-note {
    display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; margin-block: 2px 4px; padding: 8px 10px;
    border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--accent); font-size: 13.5px; line-height: 1.3;
  }
  .cal-note .wx { flex: none; }
  .cal-note-text { flex: 1; min-width: 0; }
  .cal-note-text b { display: block; font-weight: 600; }
  .cal-note-text small { display: block; color: var(--ink-2); font-size: 12.5px; }
  .cal-more { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--card); color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer; }
}
@media (max-width: 560px) {
  .cal-sub { display: none; }
  .cal-head { margin-top: 8px; font-size: 12px; }
  .cal, .cal-head { gap: 3px; }
  .cell { min-height: 56px; padding: 3px 4px; border-radius: 9px; }
  .cell .n { font-size: 11px; }
  .cell .wx { width: 20px; height: 20px; margin-block: 0; }
  .cell .t { font-size: 12px; }
  .cell .mark { top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; }
  .cell .mark svg { width: 10px; height: 10px; }
}

/* Выбор языка с флагами */
.lang { position: relative; order: 3; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; color: var(--on-sky);
  background: var(--glass); backdrop-filter: blur(10px); cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { background: var(--glass-strong); }
.lang-caret { font-size: 11px; opacity: .8; }
.flag { display: block; flex: none; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.lang-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-end: 0; width: 220px; max-height: min(420px, 70dvh); margin: 0; padding: 6px; overflow-y: auto; list-style: none;
  background: var(--sheet); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 40px rgba(10, 20, 40, .28);
}
.lang-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: start; cursor: pointer; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--card-2); outline: 0; }
.lang-list button[aria-selected='true'] { background: var(--card-2); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 560px) {
  .lang-name { display: none; }
  .lang-btn { padding-inline: 10px; }
}

/* Единый календарь: дальние дни и легенда */
.cell.far { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.cell.far.long { border: 1.5px dashed var(--line); box-shadow: none; }
.cell.far.norm { border: 1.5px dotted var(--line); box-shadow: none; color: var(--ink-2); }
.cell.far[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.cell .pw { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cell .pw svg { width: 10px; height: 10px; color: var(--wet); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.lg.fact { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.lg.near { box-shadow: inset 0 0 0 1px var(--ink-3); }
.lg.long { border: 1.5px dashed var(--ink-3); }
.lg.norm { border: 1.5px dotted var(--ink-3); }

/* Плитки дня */
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.w { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.w-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.w-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.w-col .w-body { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.w-gfx { flex: none; line-height: 0; }
.w-col .w-gfx { width: 100%; }
.w-wide { display: block; width: 100%; max-width: 150px; height: auto; margin-inline: auto; }
.w-text { flex: 1 1 96px; min-width: 0; }
.w-col .w-text { flex: none; }
.w-value { font-size: 17px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.w-value small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.w-sub:empty { display: none; }
.w-sub { margin-top: 2px; font-size: 12.5px; line-height: 1.25; color: var(--ink-2); overflow-wrap: break-word; }
.w-scale { position: relative; height: 10px; margin-block: 6px 4px; border-radius: 5px; }
.w-scale i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--sheet); }

/* Общий ползунок времени над плитками: при прокрутке остаётся сверху, пока плитки на экране */
.daytime { grid-column: 1 / -1; position: sticky; top: max(8px, env(safe-area-inset-top, 0px)); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 7px 12px 5px; border-radius: 16px; background: var(--sheet); box-shadow: 0 6px 22px rgba(15, 25, 45, .22), 0 0 0 1px var(--line); }
.dt-time { flex: none; width: 3.1em; font: 400 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.dt-box { flex: 1; min-width: 0; padding-block: 6px 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 10px; }
.dt-box.dragging { cursor: grabbing; }
.dt-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dt-rail { position: relative; height: 14px; margin-inline: 11px; }
.dt-track { position: absolute; inset: 2px -11px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(20, 30, 50, .12); }
.dt-mark { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: .55; }
.dt-thumb { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(15, 25, 45, .45), inset 0 0 0 1.5px rgba(27, 36, 51, .55); }
.dt-box.dragging .dt-thumb { transform: scale(1.12); }
.dt-hours { position: relative; height: 14px; margin: 3px 11px 0; font-size: 11px; line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dt-hours span { position: absolute; transform: translateX(-50%); }
/* Место под кнопку занято всегда: иначе шкала сужалась бы прямо под пальцем */
.dt-now { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--accent); cursor: pointer; visibility: hidden; }
.dt-now.on { visibility: visible; }
.w-cursor { pointer-events: none; }
.widgets-flow { display: none; }
.widgets-flow .widgets { margin-top: 8px; }
@media (max-width: 900px) { .widgets-flow { display: block; } }
@media (max-width: 560px) {
  .cell .pw { font-size: 10px; }
  .cell .pw svg { width: 8px; height: 8px; }
  .cal-legend { font-size: 12px; }
}

/* Солнце и УФ */
.sunuv { grid-column: 1 / -1; padding: 10px; }
.sunuv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 0 2px 8px; }
.sunuv-day { font-size: 12.5px; color: var(--ink-3); }
.sunuv-scene { border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; background: linear-gradient(180deg, #2f7cc4, #d4ecf8 68%); }
.sunuv-scene svg { display: block; width: 100%; height: auto; }
.sunuv-scene text { fill: #fff; font-family: var(--text); paint-order: stroke; stroke: rgba(20, 30, 50, .35); stroke-width: 2px; stroke-linejoin: round; }
.uv-small { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.uv-num { font: 400 38px var(--display) !important; }
.uv-level { font-size: 13.5px; font-weight: 600; }
.uv-time { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sunuv-scene text.uv-edge { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; fill: #1b2433; stroke: none; }
.sunuv-scene.night text.uv-edge { fill: #dfe7f5; }
.sun-spin { animation: sun-spin 70s linear infinite; }
@keyframes sun-spin { to { transform: rotate(360deg); } }
.prots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.prot { display: grid; justify-items: center; gap: 3px; color: var(--ink-3); opacity: .5; transition: opacity .25s ease, color .25s ease; }
.prot-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); transform: scale(.92); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s ease, box-shadow .25s ease; }
.prot-cap { font-size: 12px; line-height: 1.2; text-align: center; }
.prot .tint { fill: transparent; transition: fill .25s ease; }
.spf-num { font: 700 7.500px var(--text); fill: currentColor; }
.prot.on { color: var(--ink); opacity: 1; }
.prot.on .prot-cap { font-weight: 600; }
.prot.on .prot-ic { background: #ffc928; color: #1b2433; box-shadow: none; transform: none; }
.prot.on .tint { fill: rgba(255, 255, 255, .55); }
.prot[data-prot='shade'].on .prot-ic { background: #ff7a45; }
@media (prefers-reduced-motion: reduce) { .sun-spin { animation: none; } .prot, .prot-ic, .prot .tint { transition: none; } }
.foot { margin-top: 26px; font-size: 13px; color: var(--on-sky-soft); text-shadow: var(--sky-shadow); max-width: 90ch; }
.foot a { color: inherit; }

/* Появление при прокрутке и наклон плиток */
.rv { opacity: 0; transform: perspective(1100px) translate3d(0, 26px, 0) rotateX(7deg); transform-origin: 50% 0; }
/* На телефоне разворот расширил бы карточку за край экрана, и страница стала бы шире окна */
@media (max-width: 900px) { .rv { transform: translate3d(0, 22px, 0); } }
.rv.rv-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .75s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) {
  .w, .card.stat, .hero .card { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; }
  .tilting { transform: perspective(820px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(10px); transition-duration: .12s, .3s; box-shadow: 0 18px 38px rgba(10, 22, 44, .26); position: relative; z-index: 2; }
}
.hero .temp-row .wx { animation: wx-float 7s ease-in-out infinite; transform-origin: 50% 60%; will-change: transform; }
@keyframes wx-float {
  0%, 100% { transform: perspective(300px) translate3d(0, 0, 0) rotateY(-9deg) rotateX(3deg); }
  50% { transform: perspective(300px) translate3d(0, -7px, 14px) rotateY(9deg) rotateX(-3deg); }
}

/* Смена дня */
::view-transition-group(root) { animation-duration: .3s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
html::view-transition { pointer-events: none; }
.hero { view-transition-name: hero; }
::view-transition-old(hero) { animation: vt-out .22s ease both; }
::view-transition-new(hero) { animation: vt-in .42s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(hero) { animation-duration: .3s; }
::view-transition-group(planet), ::view-transition-old(planet), ::view-transition-new(planet) { animation: none; }
::view-transition-old(planet) { display: none; }
@keyframes vt-out { to { opacity: 0; transform: perspective(900px) translateY(-10px) rotateX(-6deg); } }
@keyframes vt-in { from { opacity: 0; transform: perspective(900px) translateY(16px) rotateX(8deg); } }

/* Порядок блоков: наверху сводка и «По часам» с небом дня, глобус внизу перед «Как это работает».
   Глобус стоит вне #view и не перерисовывается вместе со страницей */
.page { display: flex; flex-direction: column; min-height: 100dvh; }
.page > .top { order: -1; }
#view { display: contents; }
#view > * { order: 3; min-width: 0; }
#view > .notice { order: 0; }
#view > .hero, #view > .dayline { order: 1; }
#view > .how { order: 5; }
.page > .foot { order: 6; }

/* Кнопка в шапке */
.planet-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border: 0; border-radius: 999px; background: var(--glass); color: var(--on-sky); backdrop-filter: blur(10px); cursor: pointer; font-size: 14px; }
.planet-btn[hidden] { display: none; }
.planet-btn:hover { background: var(--glass-strong); }
.mini-globe { width: 20px; height: 20px; flex: none; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 78%, rgba(4, 16, 48, .75), rgba(4, 16, 48, 0) 62%), linear-gradient(115deg, #2a8ce0 0 18%, #49b56d 18% 36%, #2a8ce0 36% 60%, #49b56d 60% 74%, #2a8ce0 74% 100%); background-size: 100% 100%, 100% 100%, 200% 100%; animation: mini-spin 9s linear infinite; box-shadow: 0 0 8px rgba(120, 190, 255, .6); }
@keyframes mini-spin { to { background-position: 0 0, 0 0, 200% 0; } }

/* Планета */
.planet { order: 4; margin-top: 16px; min-width: 0; view-transition-name: planet; }
.planet[hidden] { display: none; }
.pl-slot { height: clamp(520px, 72vh, 680px); }
.pl-box { position: relative; height: 100%; border-radius: 22px; overflow: hidden; isolation: isolate; color: #eef3fb; background: #03060e; box-shadow: 0 14px 44px rgba(6, 14, 30, .32); font-size: 14px; }
.pl-box.full { position: fixed; inset: 0; z-index: 60; height: auto; border-radius: 0; box-shadow: none; }
html.pl-lock { overflow: hidden; }
.pl-box .pl-map { position: absolute; inset: 0; visibility: hidden; }
.has-map .pl-box .pl-map { visibility: visible; }
.pl-gl, .pl-labels { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pl-gl { cursor: grab; touch-action: pan-y; outline: 0; }
.is-grabbing .pl-gl { cursor: grabbing; }
.is-full .pl-gl, .is-map .pl-gl { touch-action: none; }
.pl-labels { pointer-events: none; }
.pl-gl[hidden] { display: none; }
/* Вид планеты: плоская карта или глобус. Стоит в столбце кнопок масштаба, под ними */
.pl-mode { display: grid; gap: 2px; width: 38px; margin-top: 4px; padding: 3px; border-radius: 19px; background: rgba(255, 255, 255, .13); backdrop-filter: blur(10px); }
.pl-mode[hidden] { display: none; }
.pl-mode button { height: 28px; padding: 0; border: 0; border-radius: 14px; background: none; color: rgba(255, 255, 255, .86); font: 600 12px/1 var(--text); letter-spacing: .02em; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pl-mode button:hover { background: rgba(255, 255, 255, .16); }
.pl-mode button[aria-checked='true'] { background: #fff; color: #0b1526; }
.is-map .pl-mode, .is-flat .pl-mode { background: rgba(10, 16, 28, .62); }
/* Плоская карта светлее космоса вокруг шара: кнопкам нужна тёмная подложка, как над картой города */
.is-flat .pl-btn:not(.pl-play) { background: rgba(10, 16, 28, .62); }
.is-flat .pl-btn:not(.pl-play):hover { background: rgba(10, 16, 28, .82); }
.is-flat .pl-layers .pl-chip:not([aria-checked='true']) { background: rgba(10, 16, 28, .5); }
.is-flat .pl-layers .pl-chip:not([aria-checked='true']):hover { background: rgba(10, 16, 28, .72); }
.is-flat .pl-head { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.pl-toast { position: absolute; top: 14px; inset-inline-end: 62px; z-index: 5; max-width: min(320px, calc(100% - 130px)); padding: 9px 13px; border-radius: 14px; background: rgba(10, 16, 28, .86); color: #fff; font-size: 13px; line-height: 1.35; backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgba(0, 0, 0, .35); animation: pl-pop .32s cubic-bezier(.2, .9, .3, 1.1); }
.pl-toast[hidden] { display: none; }
/* Плоская карта нажата: тонкая рамка показывает, что колесо и палец теперь двигают карту, а не страницу */
.pl-box::after { content: ''; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.is-active .pl-box::after { opacity: 1; }
.is-active .pl-2d { touch-action: none; }
.pl-hint { position: absolute; top: 46%; left: 50%; z-index: 5; max-width: calc(100% - 40px); padding: 10px 18px; border-radius: 999px; background: rgba(10, 16, 28, .84); color: #fff; font-size: 14px; line-height: 1.3; text-align: center; backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, -50%) scale(.96); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.pl-hint.on { opacity: 1; transform: translate(-50%, -50%); }

.pl-head { position: absolute; top: 18px; inset-inline-start: 20px; max-width: min(320px, 62%); pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.pl-title { font: 400 27px/1.1 var(--display); letter-spacing: -.02em; color: #fff; }
.pl-sub { margin-top: 8px; color: rgba(232, 240, 252, .78); font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.is-full .pl-sub { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.is-full .pl-title { font-size: 19px; }

.pl-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); transition: background .2s ease, transform .2s ease; }
.pl-btn:hover { background: rgba(255, 255, 255, .24); }
.pl-btn:active { transform: scale(.92); }
.pl-box :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pl-expand { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
.pl-ic-close { display: none; }
.is-full .pl-ic-open { display: none; }
.is-full .pl-ic-close { display: inline; }
.pl-zoom { position: absolute; top: 62px; inset-inline-end: 14px; z-index: 3; display: flex; gap: 8px; flex-direction: column; }
.pl-zoom { align-items: flex-end; }
.pl-places { display: inline-flex; width: auto; gap: 6px; padding: 0 13px 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pl-places:hover { background: rgba(255, 255, 255, .24); }
.pl-out { display: none; }
.is-map .pl-out { display: grid; }
.is-map .pl-head { opacity: 0; transform: translateY(-8px); }
.is-map .pl-btn:not(.pl-play) { background: rgba(10, 16, 28, .62); }
.is-map .pl-btn:not(.pl-play):hover { background: rgba(10, 16, 28, .82); }
.pl-here { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; display: flex; align-items: center; gap: 9px; max-width: min(340px, calc(100% - 82px)); padding: 7px 15px 7px 9px; border: 0; border-radius: 18px; background: rgba(10, 16, 28, .78); color: #fff; font: inherit; text-align: start; cursor: pointer; backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgba(0, 0, 0, .35); animation: pl-pop .32s cubic-bezier(.2, .9, .3, 1.1); }
.pl-here[hidden] { display: none; }
.pl-here svg { flex: none; }
.pl-here b { flex: none; font: 400 25px/1 var(--display); letter-spacing: -.03em; }
.pl-here span { min-width: 0; display: grid; gap: 1px; }
.pl-here strong { font-size: 14px; font-weight: 600; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-here small { font-size: 12px; line-height: 1.28; color: rgba(232, 240, 252, .78); }
.pl-attrib { display: none; grid-column: 1; grid-row: 1; align-self: end; min-width: 0; color: rgba(232, 240, 252, .78); font-size: 11px; line-height: 1.3; text-shadow: 0 1px 3px #000; }
.pl-attrib a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 2px; }
.has-map .pl-attrib { display: block; }

.pl-bottom { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: end; padding: 54px 18px 12px; pointer-events: none; background: linear-gradient(to top, rgba(3, 6, 14, .82), rgba(3, 6, 14, .52) 55%, rgba(3, 6, 14, 0)); }
.pl-bottom > * { pointer-events: auto; }
.pl-layers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.pl-layers::-webkit-scrollbar { display: none; }
.pl-chip { flex: none; padding: 7px 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #eef3fb; font: inherit; font-size: 13.5px; cursor: pointer; backdrop-filter: blur(10px); transition: background .2s ease, color .2s ease, transform .2s ease; }
.pl-chip:hover { background: rgba(255, 255, 255, .22); }
.pl-chip[aria-checked='true'] { background: #fff; color: #0b1526; font-weight: 600; }
.pl-side { grid-column: 2; grid-row: 1; display: grid; gap: 5px; justify-items: end; pointer-events: none; }
.pl-read { color: rgba(240, 245, 252, .92); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.pl-read[hidden] { display: none; }
.pl-legend { display: grid; gap: 4px; width: 250px; }
.pl-leg-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: start; font-size: 11.5px; color: rgba(232, 240, 252, .85); }
.pl-leg-row > span { line-height: 8px; }
.pl-leg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; min-width: 0; }
.pl-leg-bar { height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pl-leg em { grid-column: 2; grid-row: 1 / 3; align-self: end; font-style: normal; font-size: 11px; color: rgba(232, 240, 252, .8); white-space: nowrap; }
.pl-leg-ticks { position: relative; height: 14px; grid-column: 1; font-size: 10.5px; color: rgba(232, 240, 252, .75); font-variant-numeric: tabular-nums; }
.pl-leg-ticks span { position: absolute; top: 1px; transform: translateX(-50%); white-space: nowrap; }

.pl-time { grid-column: 1 / -1; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.pl-play { width: 42px; height: 42px; background: #fff; color: #0b1526; }
.pl-play:hover { background: #fff; transform: scale(1.06); }
.pl-ic-pause { display: none; }
.is-playing .pl-ic-pause { display: inline; }
.is-playing .pl-ic-play { display: none; }
.pl-track { min-width: 0; }
.pl-clock { display: flex; align-items: center; gap: 10px; min-height: 22px; font-variant-numeric: tabular-nums; }
.pl-when { font-weight: 600; font-size: 14.5px; }
.pl-nowbtn { padding: 1px 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.pl-nowbtn[hidden] { display: none; }
.pl-spin { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .28); border-top-color: #fff; border-radius: 50%; animation: pl-spin .8s linear infinite; }
.pl-spin[hidden] { display: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-range { position: relative; height: 38px; }
.pl-buffer { position: absolute; inset-inline: 9px; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .17); overflow: hidden; }
.pl-buffer i { position: absolute; inset-block: 0; background: rgba(255, 255, 255, .55); }
.pl-slider { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; touch-action: none; }
.pl-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 2px 8px rgba(0, 0, 0, .5); }
.pl-slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 2px 8px rgba(0, 0, 0, .5); }
.pl-slider::-moz-range-track { background: transparent; }
.pl-ticks { position: absolute; inset-inline: 9px; top: 18px; height: 20px; pointer-events: none; }
.pl-ticks i { position: absolute; top: 0; width: 1px; height: 5px; background: rgba(255, 255, 255, .4); font-style: normal; }
.pl-ticks span { position: absolute; top: 6px; inset-inline-start: 3px; color: rgba(232, 240, 252, .72); font-size: 11.5px; white-space: nowrap; }

.pl-note { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; pointer-events: none; }
.pl-note[hidden] { display: none; }
.pl-note p { text-shadow: 0 1px 8px #000; }
.pl-note button { pointer-events: auto; }

.pl-pop { position: absolute; top: 0; left: 0; z-index: 4; width: 252px; padding: 14px 15px; border-radius: 18px; background: rgba(12, 19, 33, .88); backdrop-filter: blur(18px); box-shadow: 0 16px 44px rgba(0, 0, 0, .5); animation: pl-pop .32s cubic-bezier(.2, .9, .3, 1.15); will-change: transform; }
.pl-pop[hidden] { display: none; }
@keyframes pl-pop { from { opacity: 0; scale: .9; } }
.pl-pop h3 { margin: 0; padding-inline-end: 22px; font: 600 16px/1.25 var(--text); color: #fff; overflow-wrap: anywhere; }
.pl-pop-reg, .pl-pop-when { margin-top: 2px; font-size: 12.5px; color: rgba(226, 234, 246, .72); }
.pl-pop-load, .pl-pop-empty { padding: 6px 0; color: rgba(226, 234, 246, .8); }
.pl-pop-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.pl-pop-main { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.pl-pop-main b { display: block; font: 400 27px/1.05 var(--display); letter-spacing: -.03em; color: #fff; }
.pl-pop-main span { font-size: 13px; color: rgba(232, 240, 252, .88); }
.pl-pop-rows { display: grid; gap: 3px; margin: 10px 0 0; font-size: 13px; }
.pl-pop-rows div { display: flex; justify-content: space-between; gap: 10px; }
.pl-pop-rows dt { color: rgba(226, 234, 246, .68); }
.pl-pop-rows dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.pl-pop-go { width: 100%; margin-top: 11px; background: #fff; color: #0b1526; font-weight: 600; }
.pl-pop-go:hover { background: #dfe9f7; }
.pl-pop-near { width: 100%; margin-top: 7px; }

@media (max-width: 720px) {
  .pl-slot { height: max(560px, min(150vw, 660px)); }
  .pl-head { top: 14px; inset-inline-start: 16px; max-width: calc(100% - 76px); }
  .pl-title { font-size: 22px; }
  .pl-sub { font-size: 13px; }
  .pl-bottom { grid-template-columns: minmax(0, 1fr); padding: 40px 12px 8px; gap: 8px; }
  .pl-side { grid-column: 1; grid-row: 2; justify-items: start; }
  .pl-layers { grid-column: 1; grid-row: 1; }
  .pl-legend { width: min(100%, 300px); }
  .pl-read { display: none; }
  .pl-attrib { position: absolute; grid-area: auto; top: 18px; inset-inline-start: 14px; }
  .pl-time { grid-row: 3; }
  .pl-pop { top: auto; left: 10px; right: 10px; bottom: 182px; width: auto; padding: 12px 14px; transform: none !important; }
  .pl-pop-rows { margin-top: 7px; gap: 1px; }
  .pl-pop-main { margin-top: 5px; }
  .pl-pop-go { margin-top: 8px; }
  .is-full .pl-zoom { top: auto; bottom: 200px; }
  .planet-btn { padding: 6px; }
  #planetBtnText { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero .temp-row .wx, .mini-globe, .pl-spin, .pl-pop, .pl-toast { animation: none; }
}
