.catalog-metric-stack.social-actions {
  display: grid;
  align-items: stretch;
  gap: 6px;
  margin-top: 0;
}

.music-swipe-actions-row .catalog-metric-stack.social-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.social-btn:hover {
  border-color: rgba(255, 122, 69, 0.45);
  color: var(--text);
}

.social-ico {
  font-size: 15px;
  line-height: 1;
}

.like-btn.active {
  border-color: rgba(255, 91, 46, 0.6);
  color: #ff7a45;
  background: rgba(255, 122, 69, 0.14);
}

.save-btn.active {
  border-color: rgba(63, 214, 198, 0.55);
  color: var(--teal);
  background: rgba(63, 214, 198, 0.12);
}

.social-count {
  font-variant-numeric: tabular-nums;
}

/* Комментарии */
.comments-section {
  padding-top: 0;
}

.comments-section h2 {
  margin-bottom: 16px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-head strong {
  color: var(--text);
}

.comment-head span {
  color: var(--muted);
  font-size: 12px;
}

.comment-row p {
  color: var(--muted);
  line-height: 1.6;
}

.comments-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.comments-composer textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.comments-composer [data-comment-submit],
.comments-composer [data-comment-login] {
  margin-top: 10px;
}
.comments-composer [data-comment-login] {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background: #7c6cf5;
  color: #fff;
  box-shadow: none;
}
.comments-composer [data-comment-login]:hover {
  background: #7c6cf5;
  filter: brightness(1.07);
}
/* Примечание под композером: без глобального отрицательного margin (иначе прилипает к полю); по центру под кнопкой. */
.comments-composer .create-foot-note {
  margin-top: 12px;
  text-align: center;
}

/* ─── Вход (web auth) ─── */
.auth-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 440px;
}

.auth-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-card-head strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.auth-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.auth-provider-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.auth-provider-slot {
  min-height: 44px;
  width: 100%;
}

.auth-provider-slot .button {
  width: 100%;
}

.auth-provider-slot iframe {
  max-width: 100%;
}

.auth-error:empty {
  display: none;
}

body.create-auth-sheet-open {
  overflow: hidden;
}

body.oferta-modal-open {
  overflow: hidden;
}

.create-auth-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
}

.create-auth-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.create-auth-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 88svh;
  overflow-y: auto;
  padding: 12px 20px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #111116;
  box-shadow: 0 -22px 70px rgba(0, 0, 0, 0.65);
}

.create-auth-sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.create-auth-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.create-auth-sheet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgba(154, 124, 255, 0.35);
  border-radius: 14px;
  background: rgba(154, 124, 255, 0.16);
  color: var(--violet);
}

.create-auth-sheet h2 {
  margin: 0 44px 6px 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.create-auth-sheet > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.create-auth-sheet .auth-provider-list {
  gap: 12px;
}

.oferta-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
}

.oferta-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.oferta-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: min(88svh, 720px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #111116;
  box-shadow: 0 -24px 78px rgba(0, 0, 0, 0.68);
  overflow: hidden;
}

.oferta-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 10px;
}

.oferta-modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.oferta-modal-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.oferta-modal-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.oferta-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.oferta-modal-section {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oferta-modal-section.main {
  border-top: 0;
}

.oferta-modal-section h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.oferta-modal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.oferta-modal-tail {
  height: 16px;
}

.oferta-modal-foot {
  flex: 0 0 auto;
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(17, 17, 22, 0.82), #111116 30%);
}

.oferta-modal-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.oferta-modal-accept:disabled {
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.11);
}

.create-auth-card {
  width: 100%;
  max-width: none;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.create-auth-card .auth-provider-list {
  max-width: 320px;
}

.linked-section .section-heading {
  display: block;
  margin-bottom: 16px;
}

.linked-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.linked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.linked-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.linked-row-info strong {
  color: var(--text);
}

.linked-on {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.linked-off {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.linked-current {
  color: var(--muted);
  font-size: 13px;
}

.linked-slot {
  display: flex;
  align-items: center;
  min-height: 40px;
}

/* ===== Экран «Стихи» (как в приложении) ===== */
.poems-screen {
  max-width: 760px;
  margin: 0 auto;
  padding: 124px 16px 12px;
}

.poems-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.music-filter-toolbar {
  flex-wrap: nowrap;
}

.music-filter-toolbar .poems-seg {
  flex: 0 0 auto;
}

.music-filter-toolbar .poems-filter-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.poems-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
}

.poems-fav-btn.active {
  color: var(--accent);
  border-color: rgba(255, 122, 69, 0.5);
  background: rgba(255, 122, 69, 0.12);
}

.poems-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.poems-seg a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
}

.poems-seg a.active {
  background: var(--violet);
  color: #fff;
}

.poems-clear-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #e0463a;
  color: #fff;
  cursor: pointer;
}

.poems-filter-btn {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.poems-filter-btn.has-chip {
  background: rgba(154, 124, 255, 0.14);
  border-color: rgba(154, 124, 255, 0.42);
}

.poems-filter-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}

.poems-filter-title {
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poems-filter-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.poems-filter-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.poem-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poem-feed-foot {
  margin-top: 16px;
}

.feed-status {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.feed-status.muted {
  font-size: 13px;
  opacity: 0.8;
}

/* Карточка стихотворения */
.pcard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon main aside"
    "full full full";
  gap: 6px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.pcard.expanded {
  background: var(--surface-strong);
  border-color: rgba(154, 124, 255, 0.32);
}

.pcard.is-fav-card {
  border-color: rgba(255, 122, 69, 0.28);
}

.pcard-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
}

.pcard-icon.has-tracks {
  background: rgba(154, 124, 255, 0.16);
  color: var(--violet);
}

.pcard-icon.no-tracks {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.pcard-main {
  grid-area: main;
  min-width: 0;
}

.pcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pcard-title {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
}

.pcard-year {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pcard-author {
  margin-top: 3px;
  color: var(--accent);
  font-weight: 850;
  font-size: 14px;
}

.pcard-preview {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 14px;
}

.pcard-lang {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.pcard-lang button {
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
}

.pcard-lang button.active {
  background: rgba(154, 124, 255, 0.32);
  color: #fff;
}

.pcard-lang-spacer {
  flex: 0 0 auto;
}

.pcard-make {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 122, 69, 0.55);
  background: rgba(255, 122, 69, 0.1);
  color: var(--accent);
  font-weight: 850;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}

.pcard-make:hover {
  background: rgba(255, 122, 69, 0.18);
}

.pcard-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pcard-fav,
.pcard-expand {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.pcard-fav.is-fav {
  color: var(--accent);
  border-color: rgba(255, 122, 69, 0.5);
  background: rgba(255, 122, 69, 0.12);
}

