.post-btn-go {
    user-select: none;
}

.post-btn-go.focus {
    border: 1px solid #09f9;
    border-left: 1px solid #ddd;
}

.simple-editor {
    position: relative;
    transition: box-shadow 0.2s ease !important;
    z-index: 10002;
}

.simple-editor:focus-within,
.simple-editor.simple-editor-focused {
    box-shadow: 0 0 0 1px #9100ff8a inset, 0 0 20px #9100ff36 !important;
}

.solik-editor-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    border: none;
    outline: none;
    resize: none;
}

.solik-editor-text:focus {
    outline: none;
    border: none;
}

.solik-editor-text:empty:before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
}

.solik-editor-counter {
    font-size: 12px;
    color: #ccc;
    transition: color 0.2s ease;
}

.resol-simple {
    position: relative;
    z-index: 1;
    transition: z-index 0.1s ease;
}

.resol-simple.resol-simple-focused {
    z-index: 10002;
}

.post-form { 
    min-height: 3em; 
    padding-right: 90px; 
    position: relative; 
}
.post-form-btns {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    z-index: 2;
}
.post-btn-go {
    background: linear-gradient(0, #ddd, #fff);
    border-radius: 0 5px 5px 0;
    border: 1px solid #ddd;
    cursor: pointer;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-btn-go:hover {
    background: linear-gradient(0, #eee, #fff);
}
.post-btn-go img {
    width: 50%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.post-btn-go:hover img {
    opacity: 1;
}
.post-btn-clear {
    background: url(/i/icons/close.png) 50% / 30% no-repeat;
    cursor: pointer;
    width: 36px;
    margin: 3px 1px;
    transition: .2s;
}
.post-btn-clear:hover {
    background: url(/i/icons/close.png) 50% / 30% no-repeat, #fee;
}
.post-form-btns .post-btn-go {
    opacity: 1;
    transition: opacity 200ms ease-out;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-go {
    background: linear-gradient(0, #ddd, #fff);
    opacity: 0.3;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-go img {
    opacity: 0.5;
}
.post-form:placeholder-shown + label + .post-form-btns .post-btn-clear {
    display: none;
}

.solik-list {
    margin: 0 auto;
    padding: 0 1em;
    position: relative;
}
.solik-item {
    padding-bottom: 4em;
    width: 500px;
    position: relative;
    z-index: 1;
    background: url(/i/bg/bg7l.png) #f8f8f8;
    text-align: left;
}
.popup .solik-item {
    background: #fff;
}
.solik-single {
    width: 100%;
    margin-bottom: 0;
}
.solik-list.masonry-inited {
    position: relative;
}
.solik-list.masonry-inited .solik-item {
    position: absolute;
    transition: none;
} 
.solik-manage-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3em;
    background: url(/i/icons/menu.png) 50% / 1.3em no-repeat, #00000028;
    border-left: 1px solid #0003;
    cursor: pointer;
    opacity: .3;
    z-index: 10;
}
.solik-manage-btn:hover {
    opacity: .6;
    background: url(/i/icons/menu.png) 50% / 1.3em no-repeat, #0002;
    border-left: 1px solid #0002;
}
.solik-item-actions {
    display: flex;
    justify-content: flex-start;
    font-size: 0.85em;
    white-space: nowrap;
    margin-top: .4em;
    user-select: none;
}
.solik-item-actions > * {
    margin-right: .5em;
    display: flex;
    line-height: 2em;
}

/* Базовые стили для кнопок */
.solik-item-actions > * > span {
    padding: .3em .8em .2em;
    cursor: pointer;
    border-radius: .5em;
    transition: all 200ms ease-out;
}

/* Кнопка лайка */
.solik-item-actions .solik-like-btn {
    background: url(/i/icons/outline/like-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    padding: .3em .8em .2em 2.5em;
    color: #961ea3;
    position: relative;
    border-radius: .5em 0 0 .5em;
}
.solik-item-actions .solik-like-btn:hover {
    background: url(/i/icons/outline/like-psi.png) .8em 50% / 1.3em no-repeat, #f6a1ff7d;
    color: rgb(78, 0, 87);
}
.solik-item-actions .solik-like-btn.active {
    background: url(/i/icons/outline/like-white.png) .8em 50% / 1.3em no-repeat, linear-gradient(0, #a930cf, #56076f) !important;
    color: #fff;
}
.solik-item-actions .solik-like-btn .loading {
    background: url(/i/ajax-bg-50.gif) #000;
    position: absolute;
    inset: 0;
    opacity: .1;
    border-radius: .5em 0 0 .5em;
    z-index: 2;
    display: none;
}

/* Счетчик лайков */
.solik-item-actions .solik-like-count {
    border-radius: 0 .5em .5em 0;
    background: #3331;
    color: #bbb;
    margin-left: 1px;
    padding: .3em .5em .2em;
    min-width: 2.2em;
    text-align: center;
    cursor: default;
}
.solik-item-actions .solik-like-count.clickable {
    cursor: pointer;
}
.solik-item-actions .solik-like-count.clickable:hover {
    background: #3332;
    color: #999;
}
.solik-item-actions .solik-like-count:not(.clickable) {
    cursor: default;
    opacity: .7;
}

/* Кнопка шаблона */
.solik-item-actions .solik-template-btn > span {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    color: #961ea3;
    padding: .3em .8em .2em 2.5em;
    border-radius: .5em;
}
.solik-item-actions .solik-template-btn > span:hover {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f6a1ff7d;
    color: rgb(78, 0, 87);
}

/* Кнопка ресола */
.solik-item-actions .solik-resol-btn > span:first-child {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f8bbff7d;
    color: #961ea3;
    padding: .3em .8em .2em 2.5em;
    border-radius: .5em 0 0 .5em;
}
/* Счетчик ресолов */
.solik-item-actions .solik-resol-count {
    border-radius: 0 .5em .5em 0;
    background: #3331;
    color: #bbb;
    margin-left: 1px;
    padding: .3em .5em .2em;
    min-width: 2.2em;
    text-align: center;
    cursor: default;
}
.solik-item-actions .solik-resol-count.clickable {
    cursor: pointer;
}
.solik-item-actions .solik-resol-count.clickable:hover {
    background: #3332;
    color: #999;
}
.solik-item-actions .solik-resol-count:not(.clickable) {
    cursor: default;
    opacity: .7;
}
.solik-item-actions .solik-resol-btn > span:first-child:hover {
    background: url(/i/icons/outline/solik-psi.png) .8em 50% / 1.3em no-repeat, #f6a1ff7d;
    color: rgb(78, 0, 87);
}
.solik-item-actions > * > span img {
    opacity: .5;
}
.solik-item-actions > * > span:hover img {
    opacity: 1;
}

.resol-expand-btn {
    display: none;
    user-select: none;
}
.resol-content:hover + .resol-expand-btn {
    background: #5558!important;
    backdrop-filter: blur(3px)!important;
}
.resol-expand-btn:hover {
    background: #4448!important;
    backdrop-filter: blur(3px)!important;
}
.resol-content {
    overflow: hidden;
    transition: max-height 300ms ease-out, opacity 200ms ease-out;
    opacity: .5;
    padding: 0 1.2em 1.2em;
    font-size: 0.75em;
}
.resol-container.expanded .resol-content {
    max-height: none !important;
    opacity: .8;
    overflow: visible !important;
}
.resol-container.expanded:hover .resol-content,
.resol-content.expanded:focus-within {
    opacity: 1!important;
}

/* Overlay для анимации обновления содержимого */
.solik-update-overlay {
    position: absolute;
    inset: -1em -1em 1em -1em;
    background: linear-gradient(135deg, #f8bbff40, #d642e340);
    border-radius: .5em;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1000ms ease-out;
}
.solik-update-overlay.fade-out {
    opacity: 0;
}

/* Стили для контейнера контента солика */
.solik-content {
    overflow: hidden;
    position: relative;
    transition: max-height 300ms ease-out;
}
.solik-item.expanded .solik-content {
    max-height: none !important;
    overflow: visible !important;
}

/* Кнопка раскрытия солика */
.solik-expand-btn {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4.4em;
    background: linear-gradient(to top, #555a, #5555);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: .8em;
    backdrop-filter: blur(2px);
    user-select: none;
    z-index: 5;
    transition: all 200ms ease-out;
}
.solik-content:hover + .solik-expand-btn {
    background: linear-gradient(to top, #666a, #6665);
    backdrop-filter: blur(3px);
}
.solik-expand-btn:hover {
    background: linear-gradient(to top, #777a, #7775);
    backdrop-filter: blur(3px);
}

