/* 🛍 Магазин — новая логика (#1175), ТОЛЬКО за ?preview=shop. «Тёплая сцена»: бордо/золото/крем; текст ≥14px, кнопки ≥44px, 360px. */
.sp2-ov { position: fixed; inset: 0; z-index: 3200; background: rgba(8,3,5,.66); display: flex; align-items: flex-end; justify-content: center; }
.sp2-card { width: min(100%, 520px); max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; box-sizing: border-box; background: linear-gradient(175deg, #3a0f18, #1a0b0f 60%); border-top: 1.5px solid rgba(242,196,109,.55); color: #fbf1de; }
.sp2-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sp2-h { flex: 1; margin: 0; font: 700 22px Georgia, "Times New Roman", serif; }
.sp2-x { min-width: 48px; min-height: 48px; border: 0; background: none; color: #f2c46d; font-size: 22px; }
.sp2-q { margin: 8px 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.sp2-note { margin: 6px 0; font-size: 14px; line-height: 1.4; color: #cbb89c; }
.sp2-err { margin: 6px 0; font-size: 14px; color: #ff9a8a; } .sp2-err[hidden] { display: none; }
.sp2-big { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 64px; margin: 0 0 10px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.4); background: rgba(40,19,21,.9); color: #fbf1de; text-align: left; font-family: inherit; }
.sp2-big b { font-size: 18px; } .sp2-big small { font-size: 14px; color: #cbb89c; line-height: 1.3; }
.sp2-big.is-gold { border-color: #f6d58b; background: linear-gradient(#4a2a14, #2f1a10); }
.sp2-price { display: flex; align-items: center; gap: 8px; }
.sp2-input { flex: 1; min-height: 52px; padding: 0 14px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.5); background: #1b0c10; color: #fbf1de; font: 700 22px/1 inherit; font-family: inherit; width: 100%; }
.sp2-input.is-bad { border-color: #e24a3b; }
.sp2-title { font-size: 16px; font-weight: 600; }
.sp2-bolt { font-size: 24px; }
.sp2-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.sp2-chip { min-height: 44px; min-width: 56px; padding: 0 12px; border-radius: 22px; border: 1.5px solid rgba(242,196,109,.4); background: transparent; color: #f2c46d; font: 700 16px/1 inherit; font-family: inherit; }
.sp2-opts { display: flex; flex-direction: column; gap: 8px; }
.sp2-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.28); background: rgba(40,19,21,.85); color: #fbf1de; text-align: left; font-family: inherit; }
.sp2-opt b { font-size: 16px; } .sp2-opt small { font-size: 14px; color: #cbb89c; line-height: 1.3; }
.sp2-opt.is-on { border-color: #f6d58b; background: #3a2410; }
.sp2-titlerow { margin-top: 10px; } .sp2-titlerow[hidden] { display: none; }
.sp2-go { width: 100%; min-height: 52px; margin-top: 12px; border-radius: 16px; border: 0; background: linear-gradient(#f6d58b, #e0a43a); color: #2a1a12; font: 800 17px/1 inherit; font-family: inherit; }
.sp2-go:disabled { opacity: .45; }
.sp2-back { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.4); background: transparent; color: #f2c46d; font: 700 15px/1 inherit; font-family: inherit; }
.sp2-prompt { padding: 12px 14px; border-radius: 14px; background: #1b0c10; border: 1px solid rgba(242,196,109,.3); font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 40vh; overflow: auto; }
/* водяные знаки: много имён автора, плавают по картинке */
.sp2-wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; user-select: none; -webkit-user-select: none; }
.sp2-wm-m { position: absolute; white-space: nowrap; font: 800 20px/1 inherit; color: rgba(255,255,255,.42); text-shadow: 0 0 3px rgba(0,0,0,.65), 0 1px 6px rgba(0,0,0,.5); transform: rotate(-24deg); animation: sp2-float 7s ease-in-out infinite; letter-spacing: .5px; }
.sp2-wm.is-sold .sp2-wm-m { color: rgba(255,214,150,.46); }
@keyframes sp2-float { 0%, 100% { translate: -10px 6px; } 50% { translate: 12px -8px; } }
@media (prefers-reduced-motion: reduce) { .sp2-wm-m { animation: none; } }
.sp2-sold { position: absolute; left: -34px; top: 22px; z-index: 4; width: 150px; padding: 6px 0; text-align: center; background: #c2362f; color: #fff; font: 900 15px/1 inherit; letter-spacing: 1.5px; transform: rotate(-35deg); box-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.sp2-dl-off { opacity: .45; }
/* лента: «🔒 N ⚡» в столбике */
.sp2-fdbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; min-height: 48px; background: none; border: 0; padding: 0; color: #fbf1de; font-family: inherit; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.sp2-fd-ic { font-size: 26px; line-height: 1; } .sp2-fd-tx { font-size: 14px; font-weight: 800; color: #f6d58b; }
/* списки (Купленные) */
.sp2-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(242,196,109,.14); flex-wrap: wrap; }
.sp2-th { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #0d0507; display: grid; place-items: center; font-size: 24px; flex: none; }
.sp2-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp2-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp2-t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp2-s { font-size: 14px; color: #cbb89c; }
.sp2-acts { display: flex; gap: 6px; width: 100%; }
.sp2-mini { flex: 1; min-height: 44px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.5); background: rgba(40,19,21,.9); color: #f2c46d; font: 700 14px/1.1 inherit; font-family: inherit; }
.sp2-mini:disabled { opacity: .55; }

/* #1227 видео товара: «во весь экран», знак зрителя, без скачивания */
.sp2-vbox { overflow: hidden; }
.sp2-vbox video { -webkit-touch-callout: none; }
.sp2-fsbtn { position: absolute; top: 8px; right: 8px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; touch-action: manipulation; }
.sp2-vm { position: absolute; z-index: 5; pointer-events: none; user-select: none; -webkit-user-select: none; max-width: 80%; padding: 3px 8px; border-radius: 8px; font: 800 15px/1.1 inherit; font-family: inherit; color: rgba(255,255,255,.5); text-shadow: 0 0 3px rgba(0,0,0,.7), 0 1px 5px rgba(0,0,0,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: left 1.2s ease, top 1.2s ease; }
@media (prefers-reduced-motion: reduce) { .sp2-vm { transition: none; } }
.sp2-vbox.sp2-fs { position: fixed !important; inset: 0; z-index: 2600; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; border-radius: 0 !important; background: #000; display: flex; align-items: center; justify-content: center; }
.sp2-vbox.sp2-fs video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.sp2-vbox.sp2-fs .sp2-fsbtn { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
.sp2-vbox:fullscreen { background: #000; display: flex; align-items: center; justify-content: center; }
.sp2-vbox:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.sp2-vbox video::-webkit-media-controls-fullscreen-button { display: none; }

/* #1248 лента: кнопка-«таблетка» «Купить промт · N ⚡» / «🔁 Повторить» (раньше иконка 🔒 N ⚡ без слов) */
.sp2-fdbtn { flex-direction: row; width: auto; max-width: 78vw; min-height: 44px; padding: 8px 14px; border-radius: 22px; background: rgba(27,12,16,.78); border: 1.5px solid rgba(242,196,109,.75); text-shadow: none; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.sp2-fdbtn .sp2-fd-tx { font-size: 15px; font-weight: 800; color: #f6d58b; white-space: nowrap; }

/* #1255 видео лота: «Готовим превью…» поверх обложки */
.wsh-media { position: relative; }
.wsh-wmwait { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; text-align: center; background: rgba(27,12,16,.82); color: #f6d58b; font-size: 16px; font-weight: 700; }
.sp2-total{margin:6px 0 4px;font-size:16px;font-weight:800;color:#f2c46d}

/* #1291 «Купленные» — отдельное окно на весь экран с итогами */
.sp2-full { align-items: stretch; background: #1a0b0f; }
.sp2-full .sp2-card { width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; border-top: 0; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.sp2-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.sp2-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.32); background: rgba(40,19,24,.8); min-width: 0; }
.sp2-tile.is-wide { grid-column: 1 / -1; } .sp2-tile.is-plus { border-color: #4cc08a; } .sp2-tile.is-minus { border-color: #e0a43a; }
.sp2-tl { font-size: 14px; color: #cbb89c; line-height: 1.25; }
.sp2-tn { font-size: 22px; color: #f2c46d; font-weight: 800; }
.sp2-tile.is-plus .sp2-tn { color: #8fdcae; }
.sp2-lh { margin: 6px 0 2px; font-size: 16px; color: #f2c46d; }
.sp2-tabs { display: flex; gap: 8px; margin: 0 0 8px; }
.sp2-tab { flex: 1; min-height: 48px; padding: 0 8px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.32); background: rgba(40,19,24,.8); color: #cbb89c; font: 700 15px inherit; font-family: inherit; }
.sp2-tab.is-on { border-color: #f6d58b; background: linear-gradient(#4a2a14, #2f1a10); color: #f2c46d; }

/* #1298 */
.sp2-tile.is-link { cursor: pointer; text-align: left; color: inherit; font-family: inherit; } .sp2-tile.is-link .sp2-tl { color: #f2c46d; }
.sp2-bw { padding: 6px 0 10px; border-bottom: 1px solid rgba(242,196,109,.14); }
.sp2-bw .sp2-row { border-bottom: 0; padding-bottom: 6px; } .sp2-bw .sp2-acts { margin-top: 6px; } .sp2-row.is-tap { cursor: pointer; }
.sp2-mini.is-gold, .sp2-mini.is-on { border-color: #f6d58b; background: linear-gradient(#4a2a14, #2f1a10); }
.sp2-play { margin: 4px 0; } .sp2-play img, .sp2-play video { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #0d0507; display: block; } .sp2-play audio { width: 100%; height: 48px; }
.sp2-conf { margin-top: 8px; padding: 8px; border-radius: 12px; border: 1px solid rgba(226,74,59,.5); background: rgba(226,74,59,.12); }
.sp2-bh { margin: 12px 0 2px; font-size: 16px; color: #f2c46d; }
.sp2-eye { flex: none; font-size: 20px; opacity: .8; }
.sp2-bw .sp2-play { margin-top: 2px; }

/* ✨ #1393: плашка «Промпт из канала уже вставлен» (Повторить в 1 клик) */
.rep-banner { position: fixed; left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 2000; display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.75); background: linear-gradient(180deg, #3a2410, #241114); color: #fbf1de; box-shadow: 0 6px 22px rgba(0,0,0,.5); transition: opacity .4s; }
.rep-banner.is-dim { opacity: .88; }
.rep-banner .rep-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rep-banner b { font-size: 15px; line-height: 1.3; font-weight: 700; }
.rep-banner small { font-size: 14px; color: #f2c46d; font-weight: 700; }
.rep-banner .rep-x { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: #f2c46d; font-size: 20px; }
.fd-col { align-items: flex-end !important; } .fd-col .sp2-fdbtn { align-self: flex-end; }
