/* First Class: "Now over" tab rising from the bottom band (or hanging from it when the bars are flipped). */
.airshow-now-over {
  --ano-tab-top: rgba(255, 255, 255, 0.13);
  --ano-tab-bottom: rgba(255, 255, 255, 0.08);
  position: fixed;
  left: 50%;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 260px);
  height: 40px;
  margin-bottom: -1px;
  padding: 0 18px 0 10px;
  transform: translateX(-50%);
  border-radius: 12px 12px 0 0;
  background-color: var(--airshow-theme-color, #1d0d78);
  background-image: linear-gradient(180deg, var(--ano-tab-top), var(--ano-tab-bottom));
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--airshow-theme-panel-text-color, #ffffff);
  font-family: var(--airshow-ui-font-family, "Pretendard Variable", sans-serif);
  text-shadow: var(--airshow-bottombar-text-shadow);
  white-space: nowrap;
  pointer-events: auto;
}
.airshow-now-over[hidden] {
  display: none;
}
/* Concave fillets where the tab meets the band. */
.airshow-now-over::before,
.airshow-now-over::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.airshow-now-over::before {
  left: -12px;
  background: radial-gradient(circle at 0 0, transparent 11.5px, color-mix(in oklab, var(--airshow-theme-color, #1d0d78) 92%, #ffffff) 12px);
}
.airshow-now-over::after {
  right: -12px;
  background: radial-gradient(circle at 100% 0, transparent 11.5px, color-mix(in oklab, var(--airshow-theme-color, #1d0d78) 92%, #ffffff) 12px);
}
.airshow-now-over.is-below-band {
  margin: -1px 0 0;
  border-radius: 0 0 12px 12px;
  background-image: linear-gradient(0deg, var(--ano-tab-top), var(--ano-tab-bottom));
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}
.airshow-now-over.is-below-band::before,
.airshow-now-over.is-below-band::after {
  top: 0;
  bottom: auto;
}
.airshow-now-over.is-below-band::before {
  background: radial-gradient(circle at 0 100%, transparent 11.5px, color-mix(in oklab, var(--airshow-theme-color, #1d0d78) 92%, #ffffff) 12px);
}
.airshow-now-over.is-below-band::after {
  background: radial-gradient(circle at 100% 100%, transparent 11.5px, color-mix(in oklab, var(--airshow-theme-color, #1d0d78) 92%, #ffffff) 12px);
}
.ano-tag {
  padding: 4px 7px 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font-size: calc(11px * var(--airshow-ui-font-size-scale, 1));
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}
.ano-place {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 160ms ease, translate 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ano-place.is-changing {
  opacity: 0;
  translate: 0 4px;
}
.ano-primary {
  font-size: calc(18px * var(--airshow-ui-font-size-scale, 1));
  font-weight: 750;
}
.ano-secondary {
  font-size: calc(16px * var(--airshow-ui-font-size-scale, 1));
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}
.ano-secondary:not(:empty)::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.ano-weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: calc(15px * var(--airshow-ui-font-size-scale, 1));
  cursor: default;
}
.ano-weather[hidden] {
  display: none;
}
.ano-wx-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ano-wx-station {
  padding: 2px 5px 1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-size: calc(11px * var(--airshow-ui-font-size-scale, 1));
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ano-wx-name {
  color: rgba(255, 255, 255, 0.8);
}
.ano-wx-temp {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ano-wx-text {
  color: rgba(255, 255, 255, 0.8);
}

/* Phone landscape and other short screens. */
@media (max-height: 520px) {
  .airshow-now-over {
    gap: 8px;
    height: 24px;
    max-width: calc(100vw - 120px);
    padding: 0 10px 0 5px;
    border-radius: 8px 8px 0 0;
  }
  .airshow-now-over.is-below-band {
    border-radius: 0 0 8px 8px;
  }
  .ano-tag {
    padding: 2px 4px 1px;
    font-size: 8px;
    border-radius: 3px;
  }
  .ano-place {
    gap: 5px;
  }
  .ano-primary {
    font-size: 11px;
  }
  .ano-secondary {
    font-size: 10px;
  }
  .ano-secondary:not(:empty)::before {
    margin-right: 5px;
  }
  .ano-weather {
    gap: 4px;
    padding-left: 8px;
    font-size: 10px;
  }
  .ano-wx-icon {
    width: 13px;
    height: 13px;
  }
  .ano-wx-station {
    font-size: 8px;
    padding: 1px 3px 0;
  }
}

/* The welcome card hides the bottom band, so the tab hides with it. */
body.airshow-navigate-intro-active .airshow-now-over {
  visibility: hidden !important;
}
/* Phone: the tab is wide enough to reach the map credit line, so lift that line just clear of the tab.
   The app positions the credit with inline styles, hence !important. */
html.airshow-mobile-runtime body.airshow-now-over-shown:not(.ui-vertical-flip):not(.airshow-navigate-intro-active):not(.airshow-phone-card-layout) #map-credit-anchor {
  bottom: 76px !important;
}
html.airshow-mobile-runtime body.airshow-now-over-shown.ui-vertical-flip:not(.airshow-navigate-intro-active):not(.airshow-phone-card-layout) #map-credit-anchor {
  top: 78px !important;
}

@media (prefers-reduced-motion: reduce) {
  .ano-place {
    transition: none;
    translate: none !important;
  }
}
