/* Песни — новая версия (v3), дополняет main/v3/razdel.css. pesni/template-v3.php. 25.10.2026 */

/* Блок ИИ-песни (pozdr/pesnya), три варианта: teaser, example, form */
.ps-ai { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 20px; background: #FDE8F0; border: 1px solid #F6CFE0; }
.ps-ai::after { content: '♪'; position: absolute; right: 16px; top: 4px; font: 800 64px/1 var(--display); color: rgba(232,71,154,.16); pointer-events: none; }
.ps-ai .v3r-hand { display: block; font-size: 22px; line-height: 1.1; margin-bottom: 4px; color: #C2336F; }
.ps-ai b { display: block; font: 800 20px/1.25 var(--display); }
.ps-ai p { font-size: 15px; color: #444; margin: 6px 0 0; }
.v3r .ps-ai__go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 20px; border: 0; border-radius: 14px; background: var(--grad);
  color: #fff !important; font: 800 16px/1 var(--display); box-shadow: 0 4px 14px rgba(106,76,240,.22); cursor: pointer; transition: box-shadow .2s; }
.v3r .ps-ai__go:hover { box-shadow: var(--shadow-hover); }
.ps-ai__go .v3r-ic { width: 16px; height: 16px; }

.ps-ai--teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }

.ps-ai--example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.ps-ai--example .ps-ai__ask { margin-top: 10px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 14.5px; color: #333; }
.ps-ai__song { margin: 0; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.75); font-size: 15px; line-height: 1.6; color: #222; }
.ps-ai__song p { margin: 0; color: #222; font-size: 15px; }
.ps-ai__song p + p { margin-top: 10px; }
.ps-ai--example .ps-ai__go { justify-self: start; }
.ps-ai__note { align-self: center; font-size: 13px; color: var(--g600); }

.ps-ai__form { display: grid; gap: 12px; }
.ps-ai__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ps-ai__form legend, .ps-ai__about > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--g600); text-transform: uppercase; letter-spacing: .04em; }
.ps-ai__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-ai__opts label { cursor: pointer; }
.ps-ai__opts input { position: absolute; opacity: 0; pointer-events: none; }
.ps-ai__opts span { display: inline-block; padding: 7px 13px; border-radius: var(--pill); border: 1.5px solid #F2C6D9; background: #fff; font-size: 14px; font-weight: 700; transition: all .15s; }
.ps-ai__opts label:hover span { border-color: var(--purple); color: var(--purple); }
.ps-ai__opts input:checked + span { border-color: transparent; background: var(--grad); color: #fff; }
.ps-ai__opts input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.ps-ai__about textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #F2C6D9; border-radius: 14px; background: #fff; font: 16px/1.4 'Inter', sans-serif; resize: vertical; }
.ps-ai__about textarea:focus { outline: none; border-color: var(--purple); }
.ps-ai__form .ps-ai__go { justify-self: start; }

/* Длинная песня свёрнута до ~12 строк; копируется и печатается целиком */
.ps-fold { max-height: 20em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.v3r .ps-unfold { margin-top: 6px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-family: inherit; color: var(--purple); font-weight: 700; font-size: 15px; }
.v3r .ps-unfold:hover { text-decoration: underline; }

/* Прочее */
.ps-pg { color: var(--g400); font-size: .6em; }
.ps-subs { margin-top: 0; }
.ps-box { padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border: 1px solid #F0EEF6; }
.ps-box b { display: block; font: 800 18px/1.2 var(--display); margin-bottom: 10px; }
.ps-box .v3r-subs { margin: 0; }
.ps-box .v3r-sub { padding: 6px 13px; font-size: 14px; }
.ps-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--g600); }
.ps-rel { padding: 20px 22px; border-radius: 20px; background: #FAF8FE; }
.ps-rel a { color: var(--purple); font-weight: 600; }
.ps-rel ul { padding-left: 18px; }
.ps-empty { padding: 28px; border-radius: 20px; background: #FAF8FE; font-size: 17px; }
.ps-empty a { color: var(--purple); font-weight: 700; }

@media (max-width: 768px) {
  .ps-ai { padding: 18px; }
  .ps-ai--teaser, .ps-ai--example { display: block; }
  .ps-ai--example .ps-ai__song { margin-top: 12px; }
  .ps-ai--example .ps-ai__note { display: block; margin-top: 8px; text-align: center; }
  .v3r .ps-ai__go { width: 100%; margin-top: 14px; padding: 14px 18px; }
  .ps-ai__form .ps-ai__go { margin-top: 2px; }
  .ps-ai__opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .ps-ai__opts::-webkit-scrollbar { display: none; }
  .ps-ai__opts label { flex: none; }
}
@media print { .v3r-head, .v3r-pills, .v3r-side, .v3r-inline, .ps-ai, .v3r-sec, .v3r-foot, .v3t__acts, .v3r-pages { display: none !important; } .ps-fold { max-height: none; -webkit-mask-image: none; mask-image: none; } }
