body.astrolet-meteo-page {
  background: #03060c;
  color: #e9f1ff;
}

.astrolet-meteo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(154, 215, 255, 0.26), transparent 30rem),
    radial-gradient(circle at 72% 12%, rgba(18, 42, 78, 0.34), transparent 34rem),
    linear-gradient(160deg, #03060c 0%, #0b1326 50%, #13203b 100%);
}

.astrolet-meteo-page .starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

.astrolet-meteo-page .star {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--color);
  opacity: var(--opacity);
  box-shadow: 0 0 var(--glow) var(--color);
  transform: translate3d(var(--x), var(--y), 0);
  will-change: transform, opacity;
  animation: meteoStarTwinkle var(--twinkle-duration) ease-in-out var(--twinkle-delay) infinite alternate;
}

.astrolet-meteo-page .star-blue,
.astrolet-meteo-page .star-red {
  opacity: calc(var(--opacity) * 0.82);
}

.astrolet-meteo-page .star-orange {
  opacity: calc(var(--opacity) * 0.9);
}

.astrolet-meteo-page .star.no-twinkle {
  animation: none;
}

.astrolet-meteo-page #menu_wrapper,
.astrolet-meteo-page #header_wrapper {
  display: none;
}

.astrolet-meteo-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(3, 6, 12, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.astrolet-meteo-topbar * {
  box-sizing: border-box;
}

.astrolet-meteo-header {
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: 0;
  border-bottom: 0;
  background: transparent;
}

.astrolet-meteo-header::before,
.astrolet-meteo-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astrolet-meteo-header::before {
  opacity: 0;
}

.astrolet-meteo-header::after {
  display: none;
}

.astrolet-meteo-stars {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0.8;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(122,167,255,0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,178,122,0.75) 0 1px, transparent 1.4px);
  background-position: 12px 18px, 80px 44px, 160px 18px;
  background-size: 170px 130px, 230px 170px, 280px 210px;
  pointer-events: none;
}

.astrolet-meteo-nav,
.astrolet-meteo-hero {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.astrolet-meteo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 85px;
  padding: 1rem 0;
}

.astrolet-meteo-brand {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.astrolet-meteo-brand span,
.astrolet-meteo-hero p {
  color: #9ad7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.astrolet-meteo-brand strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.astrolet-meteo-links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 0.9vw, 0.8rem);
  justify-content: flex-end;
  float: none;
}

.astrolet-meteo-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 46px;
  border: 1px solid rgba(141, 163, 192, 0.2);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  color: #f8fbff;
  background: rgba(255,255,255,0.02);
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.astrolet-meteo-menu-toggle::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1.08rem;
  color: inherit;
  background:
    linear-gradient(currentColor, currentColor) top center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 33% / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 66% / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) bottom center / 100% 3px no-repeat;
  opacity: 0.86;
}

.astrolet-meteo-links a {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.56rem clamp(0.58rem, 0.85vw, 0.82rem);
  color: #b8c7dd;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.astrolet-meteo-links a:hover,
.astrolet-meteo-links a.active {
  color: #100b03;
  background: linear-gradient(135deg, #f3c66d, #ffd8a2);
  box-shadow: 0 10px 26px rgba(243, 198, 109, 0.18);
  transform: translateY(-1px);
}

.astrolet-meteo-hero {
  padding: 1.7rem 0 2.35rem;
  text-align: left;
}

.astrolet-meteo-hero h1 {
  max-width: 760px;
  margin: 0.25rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.astrolet-meteo-hero span {
  display: block;
  max-width: 680px;
  color: #b8c5d9;
  font-size: 1.04rem;
  line-height: 1.65;
}

.astrolet-meteo-hero span::after {
  content: none;
}

.astrolet-meteo-page .roztahovak-vrsek {
  position: relative;
  z-index: 1;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.astrolet-meteo-page #tri {
  background: transparent;
  padding-top: 22px;
  padding-bottom: 24px;
}

.astrolet-meteo-page #tri > .container {
  position: relative;
  border: 1px solid rgba(154, 215, 255, 0.16);
  border-radius: 8px;
  padding: 1rem !important;
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.78), rgba(8, 11, 20, 0.58)),
    linear-gradient(90deg, rgba(154, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(154, 215, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.astrolet-meteo-page #tri > .container::before {
  content: "Aktuální meteorologická data";
  position: absolute;
  left: 1rem;
  top: -0.78rem;
  border: 1px solid rgba(154, 215, 255, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  color: #9ad7ff;
  background: #07101c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.astrolet-meteo-page .sloupekAktualne,
.astrolet-meteo-page .drivetoutodobouted,
.astrolet-meteo-page #tri .tabulkaVHlavicce {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.astrolet-meteo-page .sloupekAktualne {
  background: rgba(7, 10, 18, 0.64);
}

.astrolet-meteo-page .aktualne,
.astrolet-meteo-page .aktualnejen,
.astrolet-meteo-page .aktualneMensi {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.astrolet-meteo-page .aktualne::after,
.astrolet-meteo-page .aktualnejen::after,
.astrolet-meteo-page .aktualneMensi::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(154, 215, 255, 0.4), rgba(243, 198, 109, 0.55), rgba(112, 214, 165, 0.42));
}

.astrolet-meteo-page .aktua,
.astrolet-meteo-page .aktuajen,
.astrolet-meteo-page .aktuamens {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.04em;
}

.astrolet-meteo-page #tri .tabulkaVHlavicce {
  margin-top: 8px;
  background: rgba(242, 242, 242, 0.96);
}

.astrolet-meteo-page #hlavni {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 1px solid rgba(154, 215, 255, 0.16);
  border-radius: 8px;
  padding: 1rem !important;
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.78), rgba(8, 11, 20, 0.58)),
    linear-gradient(90deg, rgba(154, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(154, 215, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.astrolet-meteo-page #hlavni::before {
  content: "Datový panel";
  position: absolute;
  left: 1rem;
  top: -0.78rem;
  border: 1px solid rgba(154, 215, 255, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  color: #9ad7ff;
  background: #07101c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  z-index: 2;
}

.astrolet-meteo-page #oblastzalozek {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: rgba(242, 242, 242, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.astrolet-meteo-page ul.tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 0.35rem;
  float: none !important;
  box-sizing: border-box;
  overflow: visible !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.55rem !important;
  background: #07101c;
}

.astrolet-meteo-page ul.tabs li {
  display: block !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.astrolet-meteo-page ul.tabs a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  box-sizing: border-box;
  width: 100% !important;
  height: auto;
  min-height: 48px;
  border: 1px solid rgba(154, 215, 255, 0.18);
  border-radius: 6px;
  padding: 0.8rem 0.7rem;
  margin: 0 !important;
  color: #dce9fb;
  background: rgba(154, 215, 255, 0.08);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  top: auto !important;
}

.astrolet-meteo-page ul.tabs a:hover,
.astrolet-meteo-page ul.tabs a.current {
  color: #07101c;
  background: #d9f2ff;
}

.astrolet-meteo-page .panely > div {
  clear: both;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,242,242,0.98));
}

.astrolet-meteo-page .tabulkaVHlavicce,
.astrolet-meteo-page .tabulkaDnes,
.astrolet-meteo-page #hlavni table {
  color: #34495e;
}

.astrolet-meteo-page .tabulkaVHlavicce td,
.astrolet-meteo-page .tabulkaDnes td,
.astrolet-meteo-page #hlavni table td {
  color: #34495e;
}

.astrolet-meteo-page .zelenyRadek td,
.astrolet-meteo-page .radekVelky,
.astrolet-meteo-page .radekVelky td,
.astrolet-meteo-page td.radek,
.astrolet-meteo-page .modryRadek td {
  color: #ffffff !important;
}

.astrolet-meteo-page .radekDnes,
.astrolet-meteo-page .radekDnes *,
.astrolet-meteo-page .sedaBunka,
.astrolet-meteo-page .sedaBunka *,
.astrolet-meteo-page #rocni-statistiky table tr:not(.zelenyRadek):not(.modryRadek) td:not(.radek):not(.radekVelky),
.astrolet-meteo-page #mesicni-statistiky table tr:not(.zelenyRadek):not(.modryRadek) td:not(.radek):not(.radekVelky),
.astrolet-meteo-page #denni-statistiky table tr:not(.zelenyRadek):not(.modryRadek) td:not(.radek):not(.radekVelky),
.astrolet-meteo-page #historieTab table tr:not(.zelenyRadek):not(.modryRadek) td:not(.radek):not(.radekVelky) {
  color: #26384c !important;
}

.astrolet-meteo-page .radekDnes .zelena,
.astrolet-meteo-page .radekDnes.font25,
.astrolet-meteo-page .radekDnes .font25 {
  color: #00a186 !important;
}

.astrolet-meteo-page .tabulkaVHlavicce a,
.astrolet-meteo-page #hlavni table tr:not(.zelenyRadek):not(.modryRadek) a {
  color: #23384e;
}

.astrolet-meteo-page .roztahovak-modry {
  height: auto;
  background: transparent;
}

.astrolet-meteo-page .paticka p {
  margin: 0;
  width: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 10, 18, 0.92);
}

@media (max-width: 820px) {
  .astrolet-meteo-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    min-height: 86px;
    padding: 0.75rem 0;
  }

  .astrolet-meteo-brand {
    min-width: 0;
    padding-top: 0.05rem;
  }

  .astrolet-meteo-brand span {
    font-size: 0.7rem;
  }

  .astrolet-meteo-brand strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .astrolet-meteo-menu-toggle {
    display: inline-flex;
  }

  .astrolet-meteo-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 1px solid rgba(141, 163, 192, 0.2);
    border-radius: 18px;
    padding: 0.75rem;
    background: rgba(6, 8, 16, 0.95);
    box-shadow: 0 24px 60px rgba(7, 9, 16, 0.35);
  }

  .astrolet-meteo-links.open {
    display: flex;
  }

  .astrolet-meteo-links a {
    justify-content: center;
    width: 100%;
  }

  .astrolet-meteo-hero {
    padding-top: 1.2rem;
  }

  .astrolet-meteo-page ul.tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem !important;
  }

  .astrolet-meteo-page ul.tabs a {
    min-height: 44px;
    padding: 0.65rem 0.45rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 340px) {
  .astrolet-meteo-page ul.tabs {
    grid-template-columns: 1fr;
  }
}

@keyframes meteoStarTwinkle {
  from {
    opacity: calc(var(--opacity) * 0.5);
  }
  to {
    opacity: var(--opacity);
  }
}

/* Keep the meteostation top menu aligned with the shared Astrolet header. */
.astrolet-meteo-topbar {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  min-height: 86px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(3, 6, 12, 0.86) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.astrolet-meteo-topbar * {
  box-sizing: border-box;
}

.astrolet-meteo-topbar .astrolet-meteo-nav {
  width: min(1120px, calc(100% - 2rem)) !important;
  min-height: 85px;
  padding: 1rem 0;
  gap: 0.75rem;
}

.astrolet-meteo-topbar .astrolet-meteo-brand {
  flex: 1 1 210px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.astrolet-meteo-topbar .astrolet-meteo-brand span {
  color: #f3c66d !important;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.44px;
  line-height: 1.6;
  text-transform: uppercase;
}

.astrolet-meteo-topbar .astrolet-meteo-brand strong {
  color: #f8fbff;
  font-size: 19.2px;
  font-weight: 700;
  line-height: 1.6;
}

.astrolet-meteo-topbar .astrolet-meteo-links {
  flex: 0 1 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 0.9vw, 0.8rem);
}

.astrolet-meteo-topbar .astrolet-meteo-links a {
  min-height: 0;
  border: 0 !important;
  padding: 0.56rem clamp(0.58rem, 0.85vw, 0.82rem);
  color: #b8c7dd;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.6;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.astrolet-meteo-topbar .astrolet-meteo-links a:hover,
.astrolet-meteo-topbar .astrolet-meteo-links a.active {
  color: #100b03;
  background: linear-gradient(135deg, #f3c66d, #ffd8a2);
  box-shadow: 0 10px 26px rgba(243, 198, 109, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .astrolet-meteo-topbar .astrolet-meteo-nav {
    gap: 0.5rem;
  }

  .astrolet-meteo-topbar .astrolet-meteo-brand {
    flex-basis: 170px;
  }

  .astrolet-meteo-topbar .astrolet-meteo-brand strong {
    font-size: 1.05rem;
  }

  .astrolet-meteo-topbar .astrolet-meteo-links {
    gap: 0.28rem;
  }

  .astrolet-meteo-topbar .astrolet-meteo-links a {
    padding: 0.5rem 0.55rem;
    font-size: 0.92rem;
  }
}
