* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --transition-duration: 1.2s;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-duration) ease-in-out;
}

.slide.active {
  opacity: 1;
}

#message {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  display: none;
}

#message.visible {
  display: block;
}

#weather {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: max-content;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  padding: 18px 22px;
  color: #fff;
  font-family: system-ui, sans-serif;
  backdrop-filter: blur(4px);
}

#weather-current {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 12px;
}

#weather-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.weather-temp-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
  min-width: 0;
}

#weather-temp {
  font-size: 30px;
  font-weight: 600;
  white-space: nowrap;
}

#weather-desc {
  font-size: 13px;
  text-transform: capitalize;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#weather-location {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#weather-forecast {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  gap: 2px;
}

.weather-day img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  margin: 2px 0;
}

.weather-day .hi {
  font-weight: 600;
  white-space: nowrap;
}

.weather-day .lo {
  opacity: 0.7;
  white-space: nowrap;
}
