/* «Обложка профиля» (0.39, club-cover.js): a film's picture across the top of the mini-profile — its backdrop, else its
   poster blurred and darkened — shaded dark under the head and fading into the card, so the name, the title and the
   badges keep their contrast; the face sits on its lower edge. The same picture in the shop's preview and tile. All in
   boxes of its own (pcov-*); of the profile only the head moves down, and only while a cover is there. Still: nothing
   here moves (prefers-reduced-motion has nothing to stop). */
.pcov { position: absolute; inset: 0; overflow: hidden; background: #0d1016; }
.pcov-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pcov[data-pos="top"] .pcov-img { object-position: 50% 12%; }
.pcov[data-pos="bot"] .pcov-img { object-position: 50% 88%; }
.pcov-blur .pcov-img { filter: blur(14px) brightness(.6) saturate(1.2); transform: scale(1.2); }
.pcov.pcov-x .pcov-img { display: none; }
/* The shade: a little at the top (the close button, the film's name), clear in the middle, dark over the last 48 px —
   where the head sits, whatever the cover's height — then the card's own colour. */
.pcov::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, .4) 0, rgba(8, 10, 14, .04) 34px, rgba(8, 10, 14, .04) calc(100% - 92px), rgba(12, 14, 19, .84) calc(100% - 48px), rgba(18, 21, 28, .96) calc(100% - 16px), var(--panel-2) 100%);
}

/* The profile: the cover over the card's top (the card's own rounding and scrolling hold it), the head on its edge. */
.pcov-pp { position: absolute; top: 0; left: 0; right: 0; height: 156px; pointer-events: none; }
.pp-head.pcov-head { position: relative; margin-top: 92px; } /* the card's 20 px + 92 = 44 px above the cover's end */
.pcov-bar { position: absolute; top: 12px; left: 14px; right: 52px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcov-bar > button { pointer-events: auto; }
.pcov-film, .pcov-act {
  height: 30px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 10, 14, .58); color: #f2f3f7; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pcov-film { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pcov-film-i { flex: none; font-size: 12px; }
.pcov-film-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcov-act { flex: none; width: 30px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; font-size: 17px; line-height: 1; }
.pcov-act svg { width: 15px; height: 15px; }
.pcov-film:hover, .pcov-act:hover { background: rgba(8, 10, 14, .8); }
.pcov-film:focus-visible, .pcov-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .pcov-pp { height: 136px; }
  .pp-head.pcov-head { margin-top: 72px; }
  .pcov-bar { top: 8px; left: 10px; right: 48px; }
}
@media (max-width: 760px), (pointer: coarse) {
  .pcov-film, .pcov-act { height: 44px; }
  .pcov-act { width: 44px; }
}

/* The shop's card: the preview (a profile's top in small), the crops, the search. */
.pcov-mock { position: relative; height: 136px; margin: 10px 0 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.pcov-mock > .pcov { bottom: 30px; }
.pcov-mock.empty > .pcov-mock-st { top: 34%; text-align: center; }
.pcov-mock-st { position: absolute; top: 10px; left: 12px; right: 12px; color: var(--muted); font-size: 13px; }
.pcov-mock > .pcov ~ .pcov-mock-st { color: #e6e8ee; }
.pcov-mock-head { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcov-mock-av { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.pcov-mock-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pcov-mock-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--text); }
.pcov-mock-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* One's face here at the size asked for (club-powers.css sets every .club-face to 30 px), initials when there is no picture. */
.pcov-mock-av .club-face, .pcov-tile-av .club-face { width: var(--fs, 30px); height: var(--fs, 30px); }
.pcov-in { display: inline-grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.pcov-tile-av .pcov-in { font-size: 10px; }
.pcov-crops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pcov-crop { min-width: 0; min-height: 44px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 13.5px; cursor: pointer; }
.pcov-crop:hover:not(:disabled) { background: var(--line); }
.pcov-crop.on { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
.pcov-crop:disabled { opacity: .5; cursor: default; }
.pcov-crop:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pcov-search { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 15px; }
.pcov-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pcov-hits { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pcov-hits:empty { display: none; }
.pcov-hit { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.pcov-hit:hover, .pcov-hit:focus-visible { background: var(--line); }
.pcov-hit.on { border-color: var(--accent); background: rgba(229, 160, 13, .1); }
.pcov-hp { position: relative; flex: none; width: 32px; height: 46px; border-radius: 5px; overflow: hidden; background: var(--panel-2); }
.pcov-hp img { width: 100%; height: 100%; object-fit: cover; }
.pcov-ht small { color: var(--muted); }
.pcov-none { padding: 6px 8px; color: var(--muted); font-size: 13.5px; }
.pcov-acts { display: flex; gap: 8px; }
.pcov-acts .club-buy { flex: 1 1 0; min-width: 0; }
.pcov-acts .club-buy.club-sec { flex: 0 0 auto; width: auto; white-space: nowrap; background: var(--panel); color: var(--text); border-color: var(--line); }

/* The tile (club-shop-page.js): one's cover in small, one's face on it. */
.pcov-tile { position: relative; display: block; width: 124px; max-width: 100%; height: 60px; border-radius: 9px; overflow: hidden; }
.pcov-tile > .pcov::after { background: linear-gradient(180deg, rgba(8, 10, 14, 0) 35%, rgba(8, 10, 14, .7) 100%); }
.pcov-tile-av { position: absolute; left: 6px; bottom: 5px; display: grid; place-items: center; }
