/* Plakaten, som skærmen viser den. Bruges af afspilleren og af forhåndsvisningerne i /klinik/.
   Rammen (.vs-frame) er en container; plakaten skalerer efter den korte side (cqmin), så
   den samme plakat virker stående (9:16), liggende (16:9) og på en smal skranke (32:9). */

.vs-frame {
  container: vs / size;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #18202e;
}

.vs-poster {
  --c: #1d5fd1;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 8.9cqmin 8.1cqmin 6.7cqmin;
  overflow: hidden;
  background: var(--c);
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
}

.vs-poster::before,
.vs-poster::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.vs-poster::before {
  top: -22cqmin;
  right: -26cqmin;
  width: 78cqmin;
  height: 78cqmin;
  background: rgba(255, 255, 255, 0.1);
}
.vs-poster::after {
  top: 22cqmin;
  right: 11cqmin;
  width: 28cqmin;
  height: 28cqmin;
  background: rgba(255, 255, 255, 0.14);
}

.vs-kicker {
  position: relative;
  font-size: 2.8cqmin;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.vs-main {
  position: relative;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4.4cqmin;
  min-width: 0;
}

.vs-title {
  margin: 0;
  font-size: 11.85cqmin;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.vs-body {
  margin: 0;
  max-width: 78cqmin;
  font-size: 4.45cqmin;
  line-height: 1.4;
  opacity: 0.92;
  white-space: pre-line;
}

.vs-hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 1.2cqmin 5cqmin;
  margin: 0;
  font-size: 4.2cqmin;
  font-variant-numeric: tabular-nums;
}
.vs-hours dd {
  margin: 0;
  font-weight: 600;
}

.vs-foot {
  position: relative;
  margin-top: 10.4cqmin;
  padding-top: 3.7cqmin;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqmin;
  font-size: 3cqmin;
  font-weight: 600;
}

.vs-logo {
  display: block;
  max-height: 6cqmin;
  max-width: 30cqmin;
  object-fit: contain;
}

.vs-dots {
  display: flex;
  gap: 1.1cqmin;
}
.vs-dots i {
  width: 1.5cqmin;
  height: 1.5cqmin;
  border-radius: 1cqmin;
  background: rgba(255, 255, 255, 0.4);
}
.vs-dots i.on {
  width: 4.4cqmin;
  background: #fff;
}

.vs-clock {
  font-variant-numeric: tabular-nums;
}

/* Liggende 16:9: samme opbygning, lidt mindre titel og bredere tekst. */
@container vs (aspect-ratio > 1.2) {
  .vs-poster {
    padding: 8.9cqmin 10.4cqmin 6.7cqmin;
  }
  .vs-title {
    font-size: 11.1cqmin;
    max-width: 150cqmin;
  }
  .vs-body {
    max-width: 130cqmin;
  }
  .vs-foot {
    margin-top: 6cqmin;
  }
}

/* Smal skranke 32:9: kun kicker og titel til venstre, ur og prikker til højre. */
@container vs (aspect-ratio > 2.4) {
  .vs-poster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 8cqmin;
    padding: 9cqmin 15cqmin;
  }
  .vs-poster::before {
    top: -40cqmin;
    right: -20cqmin;
    width: 120cqmin;
    height: 120cqmin;
  }
  .vs-poster::after {
    display: none;
  }
  .vs-kicker {
    grid-column: 1;
    font-size: 5.5cqmin;
  }
  .vs-main {
    grid-column: 1;
    margin-top: 2cqmin;
    align-self: start;
  }
  .vs-title {
    font-size: 20cqmin;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vs-body,
  .vs-hours,
  .vs-name,
  .vs-logo {
    display: none;
  }
  .vs-foot {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 0;
    border: 0;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 4cqmin;
  }
  .vs-clock {
    font-size: 14.8cqmin;
    font-weight: 700;
  }
  .vs-dots {
    gap: 2cqmin;
  }
  .vs-dots i {
    width: 3cqmin;
    height: 3cqmin;
    border-radius: 2cqmin;
  }
  .vs-dots i.on {
    width: 8cqmin;
  }
}

/* Hurtig besked: et bånd øverst; plakaten rykker ned under det. */
.vs-banner {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 3cqmin 8cqmin;
  background: #fff;
  color: #18202e;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 4cqmin;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 1cqmin 4cqmin rgba(0, 0, 0, 0.18);
}
@container vs (aspect-ratio > 2.4) {
  .vs-banner {
    padding: 2.5cqmin 15cqmin;
    font-size: 7cqmin;
  }
}

/* Infobjælken nederst: dato, vejr og klinikkens faste linjer – én ad gangen. */
.vs-ticker {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 3cqmin;
  padding: 2.6cqmin 8.1cqmin;
  background: #18202e;
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 3.4cqmin;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.vs-ticker[hidden] {
  display: none;
}
.vs-ticker__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: vs-ticker-in 0.6s ease-out both;
}
.vs-ticker small {
  margin-left: auto;
  font-size: 0.6em;
  font-weight: 500;
  opacity: 0.6;
}
@keyframes vs-ticker-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vs-ticker__text {
    animation: none;
  }
}
@container vs (aspect-ratio > 1.2) {
  .vs-ticker {
    padding: 2.4cqmin 10.4cqmin;
    font-size: 3.6cqmin;
  }
}
@container vs (aspect-ratio > 2.4) {
  .vs-ticker {
    padding: 2.2cqmin 15cqmin;
    font-size: 6cqmin;
  }
}

/* «Eget design»: klinikkens eget billede. Hele billedet vises (contain) over en sløret kopi,
   så et billede i et lidt andet format ikke giver sorte kanter. Ét billede pr. format. */
.vs-design {
  padding: 0;
  background: #000;
}
.vs-design::before,
.vs-design::after {
  display: none;
}
.vs-design__slot {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}
.vs-design__slot--portrait {
  display: block;
}
.vs-design__bg,
.vs-design__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vs-design__bg {
  object-fit: cover;
  filter: blur(4cqmin) brightness(0.8);
  transform: scale(1.15);
}
.vs-design__img {
  object-fit: contain;
}
@container vs (aspect-ratio > 1.2) {
  .vs-design__slot--portrait {
    display: none;
  }
  .vs-design__slot--landscape {
    display: block;
  }
}
@container vs (aspect-ratio > 2.4) {
  .vs-design__slot--landscape {
    display: none;
  }
  .vs-design__slot--narrow {
    display: block;
  }
}
