:root {
  color-scheme: light;
  --bg: #0b1220;
  --card: #121d33;
  --text: #e9f0ff;
  --muted: #9db0d0;
  --primary: #5ea2ff;
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #112344, #070b15 68%);
  color: var(--text);
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.row {
  display: flex;
  align-items: center;
}

.between {
  justify-content: space-between;
}

.baseline {
  align-items: baseline;
}

.gap-sm {
  gap: 8px;
}

.time {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
}

.weather-icon {
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.ghost-btn,
.link-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
}

.link-btn {
  color: var(--primary);
}

.hourly {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
}

.hour-item {
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
}

#globeContainer {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  background: #050c1c;
}

.panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 0;
}

.panel.hidden {
  display: none;
}

.panel-inner {
  background: #0e1730;
  height: 100%;
  overflow: auto;
  padding: 14px;
}

.search {
  width: 100%;
  background: #162444;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0 12px;
}

.city-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nav-top {
  position: sticky;
  top: 8px;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.tab {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 0;
}

.tab.active {
  color: var(--text);
  background: #1d2f55;
}

.continent {
  font-size: 14px;
  margin: 0;
}

.country {
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--muted);
}

#cityCountText {
  margin-bottom: 8px;
}

.city-btn {
  width: 100%;
  text-align: left;
  background: #15264a;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.site-footer {
  margin-top: 4px;
  padding: 6px 2px 14px;
  color: var(--muted);
  font-size: 12px;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  line-height: 1.6;
}

.site-footer a {
  color: #b9cff5;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.dot-sep {
  opacity: 0.6;
}
