.afisha-matrix-defs { position:absolute; width:0; height:0; pointer-events:none; }
.afisha-supermatrix-face { display:none; }
.afisha-matrix-spill { display:none; }
[aria-pressed="true"] .afisha-matrix-spill { display:inline; fill:var(--calendar-selected,#38c9eb); opacity:.15; }
.afisha-matrix-ink { fill:url(#afisha-silver-diodes); }
[aria-pressed="true"] .afisha-matrix-ink { fill:url(#afisha-ice-diodes); filter:url(#afisha-lit-bloom); }
html[data-appearance] .afisha-calendar .afisha-calendar-strip[data-afisha-strip] {
  --date-width: clamp(52px, calc((100vw - 36px) / 6.30), 76px);
  background: var(--calendar-backdrop,#03090c8c);
  overflow-anchor: none;
  gap: 0;
  padding: 2px 0 3px;
  margin-inline: 0;
  scrollbar-width: none;
}
html[data-appearance] .afisha-calendar-strip::-webkit-scrollbar { display: none; }
html[data-appearance] .afisha-calendar .afisha-calendar-day {
  display: grid;
  grid-template-rows: auto auto 1em;
  place-items: center;
  align-content: start;
  gap: 1px;
  padding: 0;
  flex: 0 0 var(--date-width);
  min-width: var(--date-width);
  width: var(--date-width);
  height: auto;
  font: 400 11px/1 system-ui, sans-serif;
  appearance: none;
  clip-path: none;
  isolation: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-appearance] .afisha-calendar .afisha-calendar-day::before,
html[data-appearance] .afisha-calendar .afisha-calendar-day::after { content: none; }
html[data-appearance] .afisha-calendar .afisha-calendar-day .afisha-day-weekday {
  grid-row: 1;
  color: #d8e8ee;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(10px, 2.95vw, 13px);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}
html[data-appearance] .afisha-supermatrix-face {
  grid-row: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  overflow: hidden;
}
html[data-appearance] .afisha-calendar .afisha-calendar-day :is(.afisha-day-number, .afisha-day-empty) { display:none; }
html[data-appearance] .afisha-calendar .afisha-calendar-day .afisha-day-count {
  display: block;
  grid-row: 3;
  padding: 0;
  min-width: 0;
  height: auto;
  background: none;
  color: #d9edf5;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 500 clamp(11px, 2.8vw, 12px)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
html[data-appearance] .afisha-calendar .afisha-calendar-day:focus-visible {
  outline: 2px solid #c6f8ff;
  outline-offset: -2px;
}
@media (forced-colors:active) {
  html[data-appearance] .afisha-supermatrix-face { display:none; }
html[data-appearance] .afisha-calendar .afisha-calendar-day .afisha-day-number { display:block; grid-row:2; }
html[data-appearance] .afisha-calendar .afisha-calendar-day[aria-pressed="true"] {outline:2px solid Highlight;}
}
.afisha-program-count {color:var(--muted,#adbdc5);font-size:13px;font-weight:550;white-space:nowrap;line-height:1.3}

@media (hover:hover) and (pointer:fine) {
html[data-appearance] .afisha-calendar-strip > [data-afisha-day] {cursor:grab; user-select:none;}
html[data-appearance] .afisha-calendar-strip.is-dragging,
html[data-appearance] .afisha-calendar-strip.is-dragging > [data-afisha-day] {cursor:grabbing;}
}

html[data-appearance] .afisha-calendar-nav [data-afisha-step]:disabled { opacity:.5; cursor:default; }

html[data-appearance] .afisha-calendar[data-matrix-fx] { position:relative; }
.calendar-fx-canvas { position:absolute; top:0; left:0; width:0; height:0; pointer-events:none; z-index:1; }
.afisha-calendar[data-matrix-fx="off"] .calendar-fx-canvas { display:none; }
@media (prefers-reduced-motion:reduce), (forced-colors:active) {
  .afisha-calendar[data-matrix-fx] .calendar-fx-canvas {display:none;}
}

#afisha-silver-light stop { stop-color:var(--calendar-digits,#e2f0f8); }
#afisha-silver-light stop:first-child { stop-color:color-mix(in srgb,var(--calendar-digits,#e2f0f8),white 40%); }
#afisha-silver-light stop:last-child { stop-color:color-mix(in srgb,var(--calendar-digits,#e2f0f8),black 18%); }
#afisha-ice-light stop { stop-color:var(--calendar-selected,#70efff); }
#afisha-ice-light stop:first-child { stop-color:color-mix(in srgb,var(--calendar-selected,#70efff),white 72%); }
#afisha-lit-bloom feFlood { flood-color:var(--calendar-selected,#70efff); }
#afisha-well stop { stop-color:color-mix(in srgb,var(--calendar-strip-bg,#03090c),#bad7df 12%); }

.afisha-supermatrix-face > rect { fill-opacity:var(--calendar-opacity,.55); }
