body {
  margin: 0;
  background: #000;
  overflow: hidden;
  font-family: monospace;
  touch-action: none;
}

#globeViz {
  width: 100vw;
  height: 100vh;
  outline: none;
}

.search-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 9999;
  width: 260px;
}

.search-box {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border: 1px solid rgba(93, 162, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  width: 14px;
  height: 14px;
  margin-right: 12px;
  opacity: 0.6;
}

#countrySearch {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  outline: none;
}

#countrySearch::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-results {
  margin-top: 12px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-radius: 18px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result-item {
  padding: 14px 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}

.search-result-item:hover {
  background: rgba(93, 162, 255, 0.12);
  color: #5da2ff;
}

.country-hover-label {
  pointer-events: none;
  z-index: 100;
}

.label-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(0, -50%);
  animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(0, -30%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}

.label-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(93, 162, 255, 0.4);
  border-radius: 4px;
  text-align: center;
  color: white;
  white-space: nowrap;
}

.label-time {
  color: #5da2ff;
  font-weight: bold;
  font-size: 1.4em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.label-date {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.6);
  margin: 2px 0 6px 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.label-name {
  font-size: 0.8em;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
  width: 100%;
}

.controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(180%);
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.controls span {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: rgba(93, 162, 255, 0.2);
}

input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #5da2ff;
}

@media (max-width: 768px) {
  .search-container {
    width: calc(100% - 40px);
    top: 15px;
    left: 20px;
  }

  #countrySearch {
    font-size: 14px;
  }

  .search-results {
    max-height: 220px;
    width: 100%;
  }

  .controls {
    top: auto;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    width: fit-content;
    padding: 8px 14px;
  }

  .label-content {
    padding: 8px 16px;
    transform: scale(0.8);
  }

  .label-time {
    font-size: 1.1em;
  }
}

.app-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1px;
  pointer-events: auto;
}

.app-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-footer a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
}
