:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #fff;
  background: #263d46;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #ffffff40; }
#opened { min-height: 100vh; min-height: 100svh; isolation: isolate; }
/* The video remains sharp and full-screen. Only controls use backdrop blur. */
#bg, #overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bg { z-index: -3; object-fit: cover; object-position: center; }
#overlay { z-index: -2; background: linear-gradient(180deg, #09121c08, #09121c18 45%, #09121c38); }
#app { width: min(560px, calc(100% - 40px)); min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 64px 0; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
#time { margin: 0; text-align: center; font-size: clamp(88px, 10vw, 136px); font-weight: 200; line-height: 1.1; letter-spacing: -6px; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 4px 32px #08172040; user-select: none; }
#status { display: flex; align-items: center; align-self: center; flex-wrap: wrap; gap: 18px; padding: 10px 16px; margin: 15px 0 35px; background: #15202d35; border: 1px solid #ffffff18; color: #fffffff2; cursor: pointer; border-radius: 30px; font: inherit; text-align: left; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s; }
.status { display: flex; align-items: center; font-size: 12px; gap: 4px; white-space: nowrap; }
.status + .status { border-left: 1px solid #ffffff30; padding-left: 18px; }
.status svg, #weather-icon { width: 16px; height: 16px; }
.status svg { stroke-width: 1.5; }
.status small { font-size: 10px; letter-spacing: .5px; }
.status[title="UV指数"] > svg { display: none; }
#status:hover { background: #15202d60; }
#engine { position: relative; }
#search { display: flex; align-items: center; height: 62px; border: 1px solid #ffffff45; border-radius: 20px; background: #15202d55; color: #fff; box-shadow: 0 8px 32px #08172012; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: box-shadow .2s, background .2s, border-color .2s; }
#search:focus-within { border-color: #ffffff90; background: #15202d70; box-shadow: 0 0 0 3px #ffffff0a; }
.input-search-element { position: relative; width: 56px; height: 100%; flex-shrink: 0; overflow: hidden; }
.input-search-element-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#search svg { width: 19px; height: 19px; }
#search-icon svg { stroke-width: 1.7; }
.input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; padding: 0 20px 0 0; }
.input::placeholder { color: #ffffffb3; }
#suggestion { position: absolute; top: 70px; left: 0; right: 0; z-index: 10; flex-direction: column; max-height: min(320px, 40vh); padding: 7px; border: 1px solid #ffffff35; border-radius: 18px; background: #182330e8; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 16px 40px #08172025; overflow-y: auto; scrollbar-width: thin; }
.suggest { display: block; flex-shrink: 0; padding: 12px 15px; color: #fff; text-decoration: none; font-size: 14px; border-radius: 11px; overflow-wrap: anywhere; }
.suggest:hover, .suggest:focus { background: #ffffff18; }
#pin { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
#pin > a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff30; border-radius: 16px; color: #fff; background: #15202d45; text-decoration: none; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .2s, border-color .2s, transform .2s; }
#pin > a:hover { background: #ffffff25; border-color: #ffffff70; transform: translateY(-3px); }
#pin > a > svg { width: 21px; height: 21px; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.transition { transition: opacity .15s ease-out, transform .15s ease-out; }
.fade-out-up { opacity: 0; transform: translateY(-16px); }
.fade-out-down { opacity: 0; transform: translateY(16px); }
@media (max-width: 600px) {
  #time { font-size: clamp(80px, 22vw, 120px); letter-spacing: -4px; }
  #status { gap: 14px; margin-bottom: 28px; }
  .status + .status { padding-left: 14px; }
  #search { height: 58px; border-radius: 18px; }
  #suggestion { top: 66px; }
}
@media (max-height: 550px) { #app { padding-top: 30px; padding-bottom: 30px; } #time { font-size: 76px; } #status { margin-top: 8px; margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
