/* «Постер со мной» (0.47, club-poster.js): the poster in a brass frame — on the profile, in the shop's card and tile,
   in «Афиши клуба» — and big over the window it was opened from. The poster is an SVG drawn at 600 × 900 and scaled:
   every box here keeps 2:3. All in boxes of its own (poster-*); nothing of the profile or the shop is restyled. The only
   motion — the big poster fading in — stops under prefers-reduced-motion. */
.poster-frame {
  display: block; padding: 3px; border-radius: 5px; line-height: 0;
  background: linear-gradient(160deg, #f3d488 0%, #b8862f 38%, #6e4a17 62%, #d9ad55 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 240, 200, .35);
}
.poster-frame > svg, .poster-lb-art > svg, .poster-tpl-art > svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 2px; background: #111; }
.poster-svg text { font-kerning: normal; }

/* --- The shop's card: the live preview, six styles, the two texts, the actions ------------------------------------ */
.poster-ed { margin-top: 12px; }
.poster-pv { display: flex; justify-content: center; margin-bottom: 14px; }
.poster-stage { display: block; width: min(232px, 68%); padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.poster-stage:focus-visible, .poster-tpl:focus-visible, .poster-pp-art:focus-visible, .poster-wall-it:focus-visible, .poster-lb-b:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.poster-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-bottom: 14px; }
.poster-tpl {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 6px; border-radius: 10px; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer;
}
.poster-tpl:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.poster-tpl.on { border-color: var(--accent); background: rgba(229, 160, 13, .14); box-shadow: inset 0 0 0 1px var(--accent); }
.poster-tpl:disabled { opacity: .6; cursor: default; }
.poster-tpl-art { flex: none; width: 34px; border-radius: 3px; overflow: hidden; line-height: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.poster-tpl-n { min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.poster-fields { display: grid; gap: 10px; }
.poster-field { position: relative; display: grid; gap: 4px; }
.poster-field-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.poster-in {
  width: 100%; min-width: 0; height: 44px; padding: 0 56px 0 12px; border-radius: 10px; box-sizing: border-box;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 15px;
}
.poster-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(229, 160, 13, .25); }
.poster-in:disabled { opacity: .6; }
.poster-count { position: absolute; right: 12px; bottom: 13px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.poster-count.over { color: #ff8f8f; font-weight: 700; }
.poster-err { margin-top: 8px; font-size: 13px; color: #ff9d9d; line-height: 1.35; }
.poster-err:empty { display: none; }
.poster-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.poster-acts .club-buy { flex: 1 1 100%; margin-top: 0; }
.poster-acts .club-buy.club-sec { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 0 10px; white-space: normal; line-height: 1.2; }

/* --- «Афиши клуба» -------------------------------------------------------------------------------------------------- */
.poster-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; margin-top: 12px; }
.poster-wall-it { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: zoom-in; border-radius: 6px; }
.poster-wall-n { font-size: 12.5px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-gal-st { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* --- The profile: a small framed poster, its title and tagline beside it -------------------------------------------- */
.poster-pp { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.poster-pp-art { flex: none; width: 62px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 5px; }
.poster-pp-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.poster-pp-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.poster-pp-t { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.poster-pp-s { font-size: 12.5px; line-height: 1.3; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }

/* --- The tile: one's own poster, small --------------------------------------------------------------------------------- */
.poster-tile { display: block; width: 42px; }
.poster-tile .poster-frame { padding: 2px; border-radius: 4px; }

/* --- The big poster, over the window it was opened from ------------------------------------------------------------ */
.poster-lb {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; box-sizing: border-box;
  background: rgba(4, 5, 8, .84); animation: poster-lb-in .16s ease-out;
}
.poster-lb-in { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.poster-lb-art { width: min(600px, calc(100vw - 32px), calc((100dvh - 128px) * 2 / 3)); border-radius: 6px; overflow: hidden; line-height: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
.poster-lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: min(600px, calc(100vw - 32px)); }
.poster-lb-who { max-width: 100%; color: rgba(255, 255, 255, .78); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-lb-b { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.poster-lb-b:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.poster-lb-b:disabled { opacity: .5; cursor: default; }
.poster-lb-b.primary { border-color: var(--accent); background: var(--accent); color: #1a1205; }
.poster-lb-b.danger { color: #ffb9b9; border-color: rgba(255, 120, 120, .45); }
@keyframes poster-lb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .poster-lb { animation: none; } }
@media (max-width: 380px) {
  .poster-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
