:root {
  --text-main: #fff;
  --text-soft: #ccc;
  --text-muted: #eee;
  --accent-warm: #e29932;
  --accent-cool: #55b5db;
  --accent-hot: #e43404;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background: #000 !important;
  overflow: hidden;
}

* {
  box-sizing: border-box;g
}

#container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
  background: transparent !important;
}

.data_container {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  padding: 14px 12px;
  background: transparent;
}

.overlay_panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}

.overlay_panel::-webkit-scrollbar {
  width: 5px;
}

.overlay_panel::-webkit-scrollbar-thumb {
  background: rgb(88, 190, 221);
  border-radius: 10px;
}

.overlay_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status_chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--hdl_fnt);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(240, 255, 250, 0.45);
}

.status_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: none;
  animation: pulse 2s infinite;
}

.overlay_title {
  margin: 4px 0 0;
  font-family: var(--hdl_fnt);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 1px 3px rgba(240, 255, 250, 0.5);
}

.clock_block {
  text-align: right;
}

#watch_date {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#watch_time {
  font-family: var(--hdl_fnt);
  font-size: 32px;
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 1px 3px rgba(240, 255, 250, 0.5);
}
#watch_time_note {
  font-family: var(--hdl_fnt);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 1px 3px rgba(240, 255, 250, 0.5);
}
.card,
.metric_box,
.watcher_item,
.tip_box,
.trend_item {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.card {
  padding: 0 0 2px;
}

.card_title {
  font-family: var(--hdl_fnt);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(240, 255, 250, 0.45);
}

.conditions_grid {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 6px;
}

.metric_label {
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric_value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 1px;
  font-family: var(--hdl_fnt);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(240, 255, 250, 0.45);
}

.unit {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.single_values_sub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}

.trend_item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.chart_block_container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.chart_block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smalltxt {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart_container {
  height: 110px;
  margin: 0;
}

.icon_temp {
  height: 25px;
  width: 25px;
  filter: none;
  opacity: 1;
  filter: invert(1);
}

.temp_arrow {
  height: 11px;
  filter: none;
  opacity: 0.7;
}

.arrow_invert {
  transform: rotate(180deg);
}

.timeline_item {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  border-bottom: none;
}

.timeline_date {
  min-width: 60px;
  color: var(--accent-warm);
  font-family: var(--hdl_fnt);
  letter-spacing: 0.02em;
  font-size: 1.6rem;
}

.timeline_text {
  color: var(--text-soft);
  font-size: 1.4rem;
}
.spacer {
  margin-top: 16px;
}
.watcher_grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 6px;
}

.watcher_label {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.watcher_value {
  color: var(--text-main);
  font-family: var(--hdl_fnt);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(240, 255, 250, 0.45);
}

.tip_box {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@media (max-width: 1100px) {
  .data_container {
    width: min(46vw, 500px);
    padding: 10px;
  }

  .chart_container {
    height: 88px;
  }
}

@media (max-width: 780px) {
  #container {
    aspect-ratio: auto;
    min-height: 100vh;
  }

  .data_container {
    position: relative;
    width: 100%;
    min-height: 100%;
  }

  .overlay_header {
    flex-direction: column;
    gap: 5px;
  }

  .clock_block {
    text-align: left;
  }
}