/* hovercard.css — one card on hover for every thing of the afisha (her mockups «Афиша 2: страницы целиком», 15.11,
   and her rule of 17.11: one element looks and works the same on every page). The right columns (a host .hc-it with
   its card .hc inside, hovercard.js) and the calendar's bars (afisha2.js) draw the same card: the picture, «kind ·
   genre · place» with the label, the name, how it runs with its bar, what it is, then «Подробнее →», the thing's own
   site ↗ and ♡. A laptop with a mouse only; a phone and a tablet never see it. Colours from styles.css, both themes. */
.hc { display: none; width: 400px; max-width: calc(100vw - 32px); background: var(--s1); color: var(--txt); border-radius: 14px; box-shadow: 0 18px 40px rgba(18, 18, 17, .18), 0 0 0 1px rgba(var(--ink), .12); font-family: Geologica, system-ui, sans-serif; font-weight: 400; text-align: left; white-space: normal; }
:root.dark .hc { box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(var(--ink), .14); }
.hc.hc-on { display: block; animation: hc-in .15s ease-out; }
@keyframes hc-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hc.hc-on { animation: none; } }
.hc-it > .hc { position: fixed; z-index: 80; }
.hc p, .hc h4 { margin: 0; }
.hc-pic { display: block; }
.hc-pic img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 14px 14px 0 0; background: var(--s2); }
.hc-b { padding: 14px 18px 16px; }
.hc-k { font-size: 13px; line-height: 18px; color: var(--mut); }
/* the label is the site's one «для кого» pill (styles.css .aud-tag): the same colours as in the lists */
.hc-au { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--s2); color: var(--txt2); font: 500 12px/1 Geologica, system-ui, sans-serif; white-space: nowrap; vertical-align: 1px; }
.hc-au[data-aud="Все свои"], .hc-au[data-aud="На русском"] { background: var(--lbl-ru); color: var(--lbl-ru-fg); }
.hc-au[data-aud="International"] { background: var(--lbl-int); color: var(--lbl-int-fg); }
.hc-au[data-aud="Местное"] { background: var(--lbl-nl); color: var(--lbl-nl-fg); }
.hc-au[data-aud="Все свои"] { font-size: 0; }
.hc-au[data-aud="Все свои"]::after { content: "На русском"; font-size: 12px; }
.hc h4 { margin: 2px 0 6px; font-size: 19px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; }
.hc h4 a { color: inherit; text-decoration: none; }
.hc h4 a:hover { color: var(--acc); }
/* the label after the name (hovercard.js moves it there): the pill sits on the name's line, a step down from 19px */
.hc h4 .hc-au { margin-left: 4px; vertical-align: 3px; }
.hc-run { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; line-height: 20px; }
.hc-run b { font-weight: 600; }
.hc-run span { color: var(--mut); }
.hc-run .hc-red { color: var(--red); }
.hc-pg { display: block; height: 4px; margin: 8px 0 2px; background: var(--s2); border-radius: 2px; overflow: hidden; }
.hc-pg > i { display: block; height: 100%; background: var(--acc); border-radius: 2px; }
.hc-d { margin-top: 8px !important; font-size: 14px; line-height: 20px; color: var(--txt2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hc-f { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px !important; font-size: 14px; line-height: 20px; }
.hc-f a { font-weight: 500; color: var(--txt); text-decoration: none; white-space: nowrap; }
.hc-f a:hover { color: var(--acc); }
.hc-free { color: var(--mut); }
.hc-fav { margin: -5px -5px -5px auto; flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mut); cursor: pointer; }
.hc-fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-fav:hover { background: rgba(var(--ink), .06); color: var(--txt); }
.hc-fav:not([aria-pressed]) { display: none; } /* a ♡ the platform has not taken as a heart keeps nothing: not shown */
.hc-fav[aria-pressed="true"] { color: var(--fav-on); }
.hc-fav[aria-pressed="true"] svg { fill: currentColor; }
.hc a:focus-visible, .hc-fav:focus-visible, .hc-it:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* The thing whose card is open (art direction, 17.11): no frame, no corner. It rises on the same white sheet the
   card is made of — a quiet underlay inside its own place, the lines around it gone, its run bar turned violet like
   the card's — and the card stands beside it on the same top line with the same radius: two parts of one sheet.
   Nothing moves or is cut: the column keeps 12px on the right for the underlay and the focus ring. */
@media (min-width: 1101px) { .ll-shelf { padding-right: 12px; } }
.hc-it { position: relative; --hc-pt: 0px; --hc-pb: 6px; --hc-px: 8px; --hc-r: 12px; }
.hc-it + .hc-it:has(> .ll-p) { --hc-pt: 8px; }
.hc-it:has(> .ll-ex) { --hc-pt: 2px; --hc-pb: 2px; }
li.hc-it { --hc-pt: 0px; --hc-pb: 0px; }
.hc-it::before { content: ""; position: absolute; z-index: 0; pointer-events: none; top: var(--hc-pt); bottom: var(--hc-pb); left: calc(-1 * var(--hc-px)); right: calc(-1 * var(--hc-px)); border-radius: var(--hc-r); background: var(--s1); box-shadow: 0 0 0 1px rgba(var(--ink), .07), 0 1px 2px rgba(var(--ink), .06); opacity: 0; transition: opacity .15s ease-out, box-shadow .15s ease-out; }
:root.dark .hc-it::before { box-shadow: 0 0 0 1px rgba(var(--ink), .08); }
.hc-it > :not(.hc) { position: relative; z-index: 1; }
.hc-it.hc-hov::before { opacity: 1; }
.hc-it > .ll-p, .hc-it > .ll-ex { transition: border-color .15s ease-out; }
.hc-it.hc-hov > .ll-p, .hc-it.hc-hov + .hc-it > .ll-p, .hc-it.hc-hov > .ll-ex, .hc-it.hc-hov + .hc-it > .ll-ex { border-top-color: transparent; }
/* one accent: the card's violet run, repeated on the thing */
.hc-it.hc-hov .ll-bar > i { background: var(--acc); }
.hc-it.hc-hov .ll-exd { color: var(--acc); }
li.hc-it.hc-hov .a2-dt b { color: var(--acc); }
/* the keyboard: the same underlay with a ring */
.hc-it a:focus-visible, li.hc-it:focus-visible { outline: none; }
.hc-it:has(:focus-visible):not(:has(.hc :focus-visible))::before, li.hc-it:focus-visible::before { opacity: 1; box-shadow: 0 0 0 2px var(--acc); }
.hc-it > .hc { border-radius: var(--hc-r); }
.hc-it > .hc .hc-pic img { border-radius: var(--hc-r) var(--hc-r) 0 0; }
@media (prefers-reduced-motion: reduce) { .hc-it::before, .hc-it > .ll-p, .hc-it > .ll-ex { transition: none; } }
