.orloj-solar-day {
  margin-top: 1rem;
  border: 1px solid rgba(225, 182, 91, 0.25);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 160, 65, 0.1), transparent 52%),
    rgba(2, 9, 15, 0.58);
  padding: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 241, 196, 0.04);
}

.orloj-solar-day__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.orloj-solar-day__eyebrow {
  display: block;
  color: rgba(231, 207, 150, 0.62);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.orloj-solar-day h3 {
  margin: 0.15rem 0 0;
  color: #ffe7a3;
  font-size: 1rem;
  line-height: 1.15;
}

.orloj-solar-day__phase {
  flex: 0 0 auto;
  max-width: 10.5rem;
  border: 1px solid rgba(225, 182, 91, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: #f5dfaa;
  background: rgba(19, 35, 46, 0.78);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
}

.orloj-solar-day__phase.is-daylight {
  border-color: rgba(255, 215, 111, 0.58);
  color: #fff2bd;
  background: rgba(113, 73, 17, 0.58);
}

.orloj-solar-day__phase.is-morning-twilight,
.orloj-solar-day__phase.is-evening-twilight {
  border-color: rgba(203, 150, 117, 0.5);
  color: #ffe1c2;
  background: rgba(86, 48, 54, 0.55);
}

.orloj-solar-day__summary {
  margin: 0.6rem 0 0;
  color: rgba(235, 226, 203, 0.68);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  line-height: 1.45;
}

.orloj-solar-day__summary strong {
  color: #f8dda0;
  font-weight: 700;
}

.orloj-solar-day__visual {
  margin-top: 1.15rem;
}

.orloj-solar-day__track {
  position: relative;
  height: 1rem;
  overflow: visible;
  border: 1px solid rgba(240, 204, 126, 0.25);
  border-radius: 999px;
  background: #07101c;
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(204, 160, 74, 0.08);
}

.orloj-solar-day__segment {
  position: absolute;
  top: 0;
  bottom: 0;
}

.orloj-solar-day__segment.is-before-dawn {
  border-radius: 999px 0 0 999px;
}

.orloj-solar-day__segment.is-after-dusk {
  border-radius: 0 999px 999px 0;
}

.orloj-solar-day__segment.is-night {
  background: linear-gradient(180deg, #152844, #07111f);
}

.orloj-solar-day__segment.is-twilight.is-morning {
  background: linear-gradient(90deg, #233b5f, #c56f57 74%, #e3a760);
}

.orloj-solar-day__segment.is-daylight {
  background: linear-gradient(90deg, #e3a760, #f3d477 24%, #ffeaa5 50%, #f3d477 76%, #e19a59);
  box-shadow: inset 0 0 7px rgba(255, 249, 204, 0.44);
}

.orloj-solar-day__segment.is-twilight.is-evening {
  background: linear-gradient(90deg, #e19a59, #a85f61 58%, #293a5d);
}

.orloj-solar-day__event-marker {
  position: absolute;
  top: -0.22rem;
  width: 1px;
  height: 1.42rem;
  background: rgba(255, 241, 197, 0.78);
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(255, 231, 162, 0.48);
}

.orloj-solar-day__event-marker.is-noon {
  width: 2px;
  background: #fff4bf;
}

.orloj-solar-day__current {
  position: absolute;
  top: -0.65rem;
  bottom: -0.65rem;
  width: 2px;
  z-index: 4;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.92);
}

.orloj-solar-day__current::before {
  content: "";
  position: absolute;
  top: -0.15rem;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid #fff6cb;
  border-radius: 50%;
  background: #1a2a39;
  transform: translate(-50%, -50%);
}

.orloj-solar-day__current span {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  border: 1px solid rgba(255, 239, 190, 0.42);
  border-radius: 0.45rem;
  padding: 0.15rem 0.3rem;
  color: #fff3c1;
  background: rgba(2, 9, 15, 0.94);
  font: 700 0.58rem Inter, ui-sans-serif, sans-serif;
  white-space: nowrap;
  transform: translateX(-50%);
}

.orloj-solar-day__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: rgba(229, 216, 185, 0.46);
  font: 600 0.56rem Inter, ui-sans-serif, sans-serif;
}

.orloj-solar-day__events {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

.orloj-solar-day__events > div {
  min-width: 0;
  border-left: 1px solid rgba(222, 180, 93, 0.2);
  padding-left: 0.35rem;
}

.orloj-solar-day__events > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.orloj-solar-day__events dt {
  display: flex;
  min-height: 1.7rem;
  align-items: flex-start;
  gap: 0.2rem;
  color: rgba(229, 216, 185, 0.6);
  font: 600 0.55rem/1.15 Inter, ui-sans-serif, sans-serif;
}

.orloj-solar-day__events dt svg {
  flex: 0 0 auto;
  color: #d7aa54;
}

.orloj-solar-day__events dd {
  margin: 0.15rem 0 0;
  color: #ffe7a3;
  font-family: "Cormorant Garamond", ui-serif, serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.orloj-solar-day__note {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  color: rgba(231, 220, 194, 0.56);
  font: 0.62rem/1.4 Inter, ui-sans-serif, sans-serif;
}

.orloj-solar-day__note svg {
  flex: 0 0 auto;
  margin-top: 0.08rem;
  color: #c99b4e;
}

@media (max-width: 1180px) {
  .orloj-solar-day__events {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orloj-solar-day__events > div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  .orloj-solar-day {
    padding: 0.75rem;
  }

  .orloj-solar-day__header {
    display: grid;
  }

  .orloj-solar-day__phase {
    max-width: none;
    justify-self: start;
  }

  .orloj-solar-day__events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orloj-solar-day__events > div,
  .orloj-solar-day__events > div:nth-child(4) {
    border-left: 1px solid rgba(222, 180, 93, 0.2);
    padding-left: 0.35rem;
  }

  .orloj-solar-day__events > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orloj-solar-day__current {
    transition: none;
  }
}
