.lib-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.lib-actions { display: flex; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.pl-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 4px; border-radius: var(--radius-s); text-align: left; }
.pl-card:hover { background: var(--surface); }
.pl-cover { width: 56px; height: 56px; border-radius: 12px; background: var(--primary-container); color: var(--on-primary-container); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.pl-head h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius-m); padding: 20px; margin-bottom: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); font-size: 28px; font-weight: 500; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.profile-nick { font-size: 22px; font-weight: 500; }
.theme-row { display: flex; gap: 8px; margin-bottom: 16px; }
.theme-row .chip { flex: 1; justify-content: center; height: 44px; }
.profile-note { font-size: 13px; color: var(--on-surface-var); margin: 8px 0 16px; }

/* вкладки библиотеки: стеклянный переключатель со скользящей пилюлей */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; margin: 4px 0 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface-var, #8884) 55%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent); box-shadow: 0 6px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.25); }
.seg-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 17px; background: var(--primary-container);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); transform: translateX(calc(var(--i) * 100%)); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.seg button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; border-radius: 17px; color: var(--on-surface-var); font-size: 12.5px; font-weight: 600; transition: color .2s; }
.seg button .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg button.active { color: var(--on-primary-container); }
.seg button em { position: absolute; top: 5px; right: 14%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--on-primary, #fff); font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
.seg button em:empty { display: none; }
.src-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.src-note { display: block; margin-top: 8px; color: var(--on-surface-var); }
.share-card { display: flex; gap: 12px; align-items: center; padding: 8px 0 14px; }
.share-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.gest-badge { position: fixed; right: 12px; top: 12px; z-index: 90; width: 64px; height: 48px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 4px 16px rgba(0,0,0,.3); opacity: .85; }
.gest-badge.seen { border-color: var(--primary); }
.gest-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.gest-badge span { position: absolute; bottom: 0; right: 3px; font-size: 14px; }
.seg.drag .seg-pill { transition: none; }
.gest-badge { right: auto; left: -200px; top: 0; width: 160px; height: 120px; opacity: 0; pointer-events: none; box-shadow: none; border: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.consent input { width: 22px; height: 22px; flex: none; accent-color: var(--primary); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tc-black .tc-prev { background: #000; }
.tc-black .tc-prev i { background: #ffb0d0; }
.theme-cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .theme-cards { grid-template-columns: repeat(4, 1fr); } }
.accent-dot.custom { position: relative; display: grid; place-items: center; color: #fff; font-size: 22px; cursor: pointer; overflow: hidden; }
.accent-dot.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.listeners { margin: 8px 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; font-size: 14px; }
.seg { touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.seg button { touch-action: manipulation; }
.set-card .theme-cards { grid-template-columns: repeat(4, 1fr); gap: 7px; }
.set-card .theme-card { padding: 7px 4px; font-size: 12.5px; border-radius: 16px; }
.set-card .tc-prev { height: 52px; padding: 6px; }
