body.yc-moments-page .site-header,
body.yc-moments-page .blank,
body.yc-moments-page .scrollbar,
body.yc-moments-page #bar,
body.yc-moments-page #preload,
body.yc-moments-page .headertop,
body.yc-moments-page .pattern-center,
body.yc-moments-page .entry-header,
body.yc-moments-page .entry-footer,
body.yc-moments-page .site-footer,
body.yc-moments-page .toc-container,
body.yc-moments-page .post-share,
body.yc-moments-page .post-like,
body.yc-moments-page .sidebox,
body.yc-moments-page .comments,
body.yc-moments-page #comments,
body.yc-moments-page .comment-area,
body.yc-moments-page .js-search,
body.yc-moments-page .search-form--modal,
body.yc-moments-page #aplayer-float,
body.yc-moments-page #wpadminbar,
body.yc-moments-page #moblieGoTop,
body.yc-moments-page #changskin,
body.yc-moments-page .skin-menu {
    display: none !important;
}

body.yc-moments-page .blank[style] {
    padding-top: 0 !important;
    height: 0 !important;
}

html:has(body.yc-moments-page) {
    margin-top: 0 !important;
}

body.yc-moments-page,
body.yc-moments-page #main-container,
body.yc-moments-page #page,
body.yc-moments-page #content,
body.yc-moments-page #primary,
body.yc-moments-page #main,
body.yc-moments-page article:not(.yc-moments__item),
body.yc-moments-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.yc-moments-page #content {
    animation: none !important;
}

body.yc-moments-page .entry-content::before,
body.yc-moments-page .entry-content::after,
body.yc-moments-page .site-content::before,
body.yc-moments-page .site-content::after {
    content: none !important;
    display: none !important;
}

body.yc-moments-page .entry-content > :first-child,
body.yc-moments-page .entry-content > :last-child {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.yc-moments {
    --yc-theme: #07c160;
    --yc-title: #586c97;
    --yc-bg: #fff;
    --yc-soft: #f5f5f5;
    --yc-soft-strong: #f2f2f2;
    --yc-text: #282828;
    --yc-muted: #787878;
    --yc-menu: #4c5254;
    --yc-cover-ratio: 55%;
    --yc-cover-height: clamp(285px, var(--yc-cover-ratio), 320px);
    --yc-cover-position: center center;
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 0 0 18px;
    background: var(--yc-bg);
    color: var(--yc-text);
    font-size: 14px;
    line-height: 1.65;
}

.yc-moments *,
.yc-moments *::before,
.yc-moments *::after {
    box-sizing: border-box;
}

.yc-moments button,
.yc-moments input,
.yc-moments textarea {
    font: inherit;
}

.yc-moments__hero {
    width: 100%;
    margin-bottom: 10px;
}

.yc-moments__cover {
    position: relative;
    width: 100%;
    height: var(--yc-cover-height);
    min-height: 285px;
    padding-top: 0;
    background:
        linear-gradient(135deg, #8aa5a1, #364b52 55%, #20292d),
        var(--yc-soft);
    background-repeat: no-repeat;
    background-position: var(--yc-cover-position);
    background-size: cover;
}

.yc-moments__back {
    position: absolute;
    top: 10px;
    left: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    appearance: none;
    -webkit-appearance: none;
    opacity: 0.72;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.yc-moments__back:hover,
.yc-moments__back:focus-visible {
    opacity: 0.92;
}

.yc-moments__back span {
    position: relative;
    display: block;
    width: 17px;
    height: 20px;
    margin-left: 1px;
    border: 0;
    transform: none;
}

.yc-moments__back span::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 10px;
    height: 15px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 999px 0 0 999px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.32));
    transform: rotate(-6deg);
}

.yc-moments__back span::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-radius: 0 0 0 1px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.32));
    transform: rotate(45deg);
}

.yc-moments__profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 15px;
    min-height: 60px;
    margin-top: -42px;
    padding: 0 15px;
}

.yc-moments__profile-name {
    max-width: calc(100% - 95px);
    margin: 10px 0 0;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.yc-moments__profile-avatar {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 7px;
    background: var(--yc-soft);
    object-fit: cover;
}

.yc-moments__profile-link,
.yc-moments__avatar a {
    display: block;
    flex: none;
    color: inherit;
    text-decoration: none;
}

.yc-moments__profile-link {
    border-radius: 7px;
}

.yc-moments__profile-link:focus-visible,
.yc-moments__avatar a:focus-visible {
    outline: 2px solid rgba(7, 193, 96, 0.5);
    outline-offset: 2px;
}

.yc-moments__signature {
    display: -webkit-box;
    margin: 8px 15px 0 65px;
    overflow: hidden;
    color: var(--yc-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yc-moments__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 10px 24px 0 15px;
    border-bottom: 1px solid var(--yc-soft-strong);
}

.yc-moments__feed--detail .yc-moments__item {
    border-bottom: 0;
}

.yc-moments__avatar {
    padding-top: 5px;
}

.yc-moments__avatar img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--yc-soft);
    object-fit: cover;
}

.yc-moments__body {
    min-width: 0;
    padding-bottom: 15px;
}

.yc-moments__header {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 2px;
}

.yc-moments__name {
    color: var(--yc-title);
    font-size: 15px;
    font-weight: 700;
}

.yc-moments__content {
    overflow-wrap: anywhere;
    color: var(--yc-text);
    font-size: 14px;
    user-select: text;
}

.yc-moments__content p {
    margin: 0 0 6px;
}

.yc-moments__content p:last-child {
    margin-bottom: 0;
}

.yc-moments__images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 85%;
    max-width: 360px;
    margin-top: 8px;
}

.yc-moments__images--1 {
    display: block;
    width: fit-content;
    max-width: 55%;
}

.yc-moments__images--single-video {
    width: 82%;
    max-width: 390px;
}

.yc-moments__images--2,
.yc-moments__images--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 55%;
    max-width: 260px;
}

.yc-moments__image-link,
.yc-moments__video-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(245, 245, 245, 0.6);
    cursor: pointer;
}

.yc-moments__images--1 .yc-moments__image-link {
    aspect-ratio: auto;
    width: fit-content;
    max-width: 100%;
}

.yc-moments__video-wrap {
    --yc-video-ratio: 1;
    background: #111;
}

.yc-moments__images--single-video .yc-moments__video-wrap {
    aspect-ratio: var(--yc-video-ratio);
    width: 100%;
    max-height: 420px;
}

.yc-moments__images--single-video .yc-moments__video-wrap.is-portrait {
    width: min(72%, 260px);
}

.yc-moments__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.yc-moments__images--1 .yc-moments__image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.yc-moments__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
    background: #111;
    object-fit: contain;
    pointer-events: none;
}

.yc-moments__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 14px;
}

.yc-moments__time {
    color: var(--yc-muted);
    font-size: 12px;
}

.yc-moments__time-wrap {
    min-width: 0;
}

.yc-moments__location {
    display: inline-block;
    max-width: 190px;
    margin-left: 8px;
    overflow: hidden;
    color: var(--yc-title);
    font-size: 12px;
    text-overflow: ellipsis;
    vertical-align: top;
    white-space: nowrap;
}

.yc-moments__actions {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    margin-right: 4px;
}

.yc-moments__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #eef1f5;
    color: #546783;
    cursor: pointer;
}

.yc-moments__more span {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--yc-title);
}

.yc-moments__more[aria-expanded="true"],
.yc-moments__more:hover,
.yc-moments__more:focus-visible {
    background: #e3e8ef;
    outline: none;
}

.yc-moments__action-menu {
    position: absolute;
    top: 50%;
    right: 35px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0;
    height: 34px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #3f4548;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transform: translateY(-50%);
    animation: ycMomentsMenu 0.18s ease;
}

@keyframes ycMomentsMenu {
    from {
        opacity: 0;
        transform: translate(10px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.yc-moments__action-menu.is-hidden {
    display: none;
}

.yc-moments__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 74px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.yc-moments__action:hover,
.yc-moments__action:focus {
    background: #474d50;
    outline: none;
}

.yc-moments__action:first-child {
    border-radius: 4px 0 0 4px;
}

.yc-moments__action:last-child {
    margin-left: -1px;
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.yc-moments__action.is-liked {
    color: #a8e9c0;
}

.yc-moments__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
}

.yc-moments__action-text {
    line-height: 1;
}

.yc-moments__action-count {
    display: none;
}

.yc-moments__action-count:empty {
    display: none;
}

.yc-moments__action:disabled,
.yc-moments__submit:disabled,
.yc-moments__load:disabled {
    cursor: wait;
    opacity: 0.65;
}

.yc-moments__comments {
    margin-top: 5px;
}

.yc-moments__reactions {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--yc-soft);
    color: var(--yc-title);
    font-size: 14px;
}

.yc-moments__reactions.is-empty {
    display: none;
}

.yc-moments__reaction-icon {
    flex: none;
    font-size: 17px;
    line-height: 1.2;
}

.yc-moments__comment-list {
    margin-top: 1px;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--yc-soft);
}

.yc-moments__comment {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 5px 0;
}

.yc-moments__comment + .yc-moments__comment {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.yc-moments__comment-avatar img {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(245, 245, 245, 0.8);
    object-fit: cover;
}

.yc-moments__comment-main {
    min-width: 0;
}

.yc-moments__comment-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.35;
}

.yc-moments__comment-head strong {
    color: var(--yc-title);
    font-size: 13px;
}

.yc-moments__comment-head time {
    color: var(--yc-muted);
    font-size: 12px;
}

.yc-moments__comment-content {
    overflow-wrap: anywhere;
    color: var(--yc-text);
    font-size: 14px;
    line-height: 1.55;
    user-select: text;
}

.yc-moments__comment-content p {
    margin: 0;
}

.yc-moments__reply {
    margin-top: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yc-title);
    cursor: pointer;
    font-size: 12px;
}

.yc-moments__comment-children {
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid rgba(88, 108, 151, 0.12);
}

.yc-moments__comment-form {
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    background: var(--yc-soft-strong);
}

.yc-moments__comment-form.is-hidden,
.yc-moments__replybar.is-hidden,
.yc-moments__visitor-fields.is-hidden,
.yc-moments__emoji.is-hidden {
    display: none;
}

.yc-moments__replybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--yc-bg);
    color: var(--yc-title);
    font-size: 13px;
}

.yc-moments__replybar button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yc-muted);
    cursor: pointer;
}

.yc-moments__commentbox {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 4px;
    background: var(--yc-bg);
    overflow: hidden;
}

.yc-moments__visitor-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    animation: ycMomentsPanelIn 0.18s ease;
}

@keyframes ycMomentsPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yc-moments__visitor-fields label {
    display: block;
    min-width: 0;
    height: 35px;
    border-radius: 4px;
    background: var(--yc-soft);
}

.yc-moments__visitor-fields span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.yc-moments__visitor-fields input {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--yc-text);
    font-size: 12px;
    outline: none;
}

.yc-moments__visitor-fields input::placeholder {
    color: #8b8b8b;
}

.yc-moments__visitor-fields input:focus {
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.28);
}

.yc-moments__identity {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--yc-title);
    cursor: pointer;
}

.yc-moments__identity[aria-expanded="true"] {
    color: var(--yc-theme);
}

.yc-moments__identity-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: var(--yc-title);
    font-size: 0;
}

.yc-moments__identity-avatar::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}

.yc-moments__identity-avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 10px;
    height: 5px;
    border-radius: 8px 8px 0 0;
    background: currentColor;
    transform: translateX(-50%);
}

.yc-moments__identity-name {
    position: absolute;
    right: calc(100% + 6px);
    max-width: 120px;
    overflow: hidden;
    color: var(--yc-muted);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.yc-moments__identity:hover .yc-moments__identity-name,
.yc-moments__identity:focus-visible .yc-moments__identity-name {
    opacity: 1;
}

.yc-moments__commentbox textarea {
    display: block;
    width: 100%;
    min-height: 82px;
    max-height: 190px;
    padding: 9px 10px 42px;
    border: 0;
    border-radius: 4px;
    resize: vertical;
    background: transparent;
    color: var(--yc-text);
    outline: none;
}

.yc-moments__commentbox.has-emoji textarea {
    min-height: 216px;
    max-height: 260px;
    padding-bottom: 166px;
}

.yc-moments__commentbox textarea:focus {
    box-shadow: none;
}

.yc-moments__commentbox:focus-within {
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.28);
}

.yc-moments__commenttools {
    position: absolute;
    right: 8px;
    bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 30px;
    margin: 0;
    pointer-events: none;
}

.yc-moments__tool,
.yc-moments__submit,
.yc-moments__load {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.yc-moments__commenttools button {
    pointer-events: auto;
}

.yc-moments__tool,
.yc-moments__identity {
    box-shadow: none;
}

.yc-moments__tool:hover,
.yc-moments__tool:focus-visible,
.yc-moments__identity:hover,
.yc-moments__identity:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

.yc-moments__tool {
    position: relative;
    width: 30px;
    min-height: 30px;
    padding: 0;
    background: transparent;
    color: var(--yc-title);
}

.yc-moments__tool[aria-expanded="true"] {
    color: var(--yc-theme);
}

.yc-moments__tool span {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.yc-moments__tool span::before,
.yc-moments__tool span::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.yc-moments__tool span::before {
    left: 4px;
}

.yc-moments__tool span::after {
    right: 4px;
}

.yc-moments__tool::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 10px 10px;
    transform: translateX(-50%);
}

.yc-moments__submit {
    min-width: 70px;
    height: 30px;
    background: var(--yc-soft-strong);
    color: var(--yc-title);
}

.yc-moments__emoji {
    display: grid;
    position: absolute;
    right: 8px;
    bottom: 42px;
    left: 8px;
    grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
    grid-auto-rows: 28px;
    align-content: start;
    gap: 8px 4px;
    height: 116px;
    max-height: 116px;
    margin: 0;
    padding: 8px 2px;
    border: 0;
    border-radius: 0;
    background: var(--yc-bg);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    animation: ycMomentsPanelIn 0.18s ease;
}

.yc-moments__emoji::-webkit-scrollbar {
    width: 4px;
}

.yc-moments__emoji::-webkit-scrollbar-track {
    background: transparent;
}

.yc-moments__emoji::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
}

.yc-moments__emoji button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.yc-moments__emoji button:hover,
.yc-moments__emoji button:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
    transform: scale(1.08);
}

.yc-moments__emoji img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.yc-moments__emoji-inline {
    width: 25px;
    height: 25px;
    margin: 0 1px;
    vertical-align: -6px;
    object-fit: contain;
}

.yc-moments__notice {
    margin-top: 6px;
    color: var(--yc-muted);
    font-size: 13px;
}

.yc-moments__notice:empty {
    display: none;
}

.yc-moments__notice.is-success {
    color: #078942;
}

.yc-moments__notice.is-error {
    color: #d93025;
}

.yc-moments__notice.is-pending {
    color: #b06000;
}

.yc-moments__toast {
    position: fixed;
    top: auto;
    bottom: max(15vh, calc(env(safe-area-inset-bottom) + 82px));
    left: 50%;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(320px, calc(100vw - 32px));
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.yc-moments__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.yc-moments__toast.is-loading::before {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ycMomentsSpin 0.78s linear infinite;
}

.yc-moments__toast.is-success {
    background: rgba(37, 121, 74, 0.92);
}

.yc-moments__toast.is-pending {
    background: rgba(74, 82, 88, 0.92);
}

.yc-moments__toast.is-error {
    background: rgba(172, 46, 37, 0.92);
}

@keyframes ycMomentsSpin {
    to {
        transform: rotate(360deg);
    }
}

.yc-moments__load {
    display: block;
    width: 160px;
    margin: 18px auto 0;
    background: var(--yc-soft);
    color: var(--yc-title);
}

.yc-moments__empty {
    padding: 34px 10px;
    color: var(--yc-muted);
    text-align: center;
}

.yc-moments__history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px 28px;
}

.yc-moments__history-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    margin-top: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.045);
}

.yc-moments__history-item:last-child {
    border-bottom: 0;
}

.yc-moments__history-date {
    min-height: 80px;
    color: var(--yc-text);
}

.yc-moments__history-date.is-hidden {
    visibility: hidden;
}

.yc-moments__history-day {
    display: inline-block;
    margin-right: 2px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.yc-moments__history-month {
    font-size: 12px;
    line-height: 1;
}

.yc-moments__history-location {
    display: -webkit-box;
    max-width: 78px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--yc-muted);
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yc-moments__history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 80px;
    color: inherit;
    text-decoration: none;
}

.yc-moments__history-card.has-image {
    grid-template-columns: 80px minmax(0, 1fr);
}

.yc-moments__history-thumb {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef0f2;
}

.yc-moments__history-card.has-video .yc-moments__history-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2327, #3c444b);
}

.yc-moments__history-thumb img,
.yc-moments__history-img,
.yc-moments__history-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
}

.yc-moments__history-video {
    border: 0;
    background: #111;
    pointer-events: none;
}

.yc-moments__history-video-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding-left: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.yc-moments__history-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.yc-moments__history-text {
    display: -webkit-box;
    overflow: hidden;
    color: var(--yc-text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yc-moments__history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-width: 0;
}

.yc-moments__history-count,
.yc-moments__history-card-location {
    color: var(--yc-muted);
    font-size: 12px;
}

.yc-moments__history-card-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-moments__history-card:hover .yc-moments__history-text,
.yc-moments__history-card:focus-visible .yc-moments__history-text {
    color: var(--yc-title);
}

.yc-moments__lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
}

.yc-moments__lightbox.is-open {
    display: flex;
}

.yc-moments__lightbox-close {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.yc-moments__lightbox {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
}

.yc-moments__lightbox img,
.yc-moments__lightbox-video {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
}

.yc-moments__lightbox-video {
    width: auto;
    height: auto;
    background: #000;
}

.yc-moments__lightbox-video[hidden],
.yc-moments__lightbox img[hidden] {
    display: none;
}

.yc-moments__lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

@media (max-width: 600px) {
    .yc-moments {
        font-size: 14px;
    }

    .yc-moments__cover {
        min-height: 285px;
    }

    .yc-moments__item {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px 22px 0 14px;
    }

    .yc-moments__profile-name {
        max-width: calc(100% - 88px);
    }

    .yc-moments__images {
        width: 85%;
        max-width: 360px;
    }

    .yc-moments__images--2,
    .yc-moments__images--4 {
        width: 55%;
        max-width: 260px;
    }

    .yc-moments__images--1 {
        width: fit-content;
        max-width: 55%;
    }

    .yc-moments__images--single-video {
        width: 88%;
        max-width: 390px;
    }

    .yc-moments__action-menu {
        right: 35px;
    }

    .yc-moments__action {
        width: 70px;
    }

    .yc-moments__visitor-fields {
        gap: 6px;
    }

    .yc-moments__location {
        max-width: 145px;
    }

    .yc-moments__history {
        gap: 8px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .yc-moments__history-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
        padding-bottom: 18px;
    }

    .yc-moments__history-card.has-image {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .yc-moments__history-thumb {
        width: 80px;
        height: 80px;
    }

    .yc-moments__history-location {
        max-width: 72px;
    }
}

@media (max-width: 360px) {
    .yc-moments__cover {
        min-height: 265px;
    }
}

body.dark-theme .yc-moments,
body.dark .yc-moments,
.dark-theme .yc-moments {
    --yc-bg: #323335;
    --yc-soft: #3e3e3e;
    --yc-soft-strong: #404040;
    --yc-text: #fff;
    --yc-muted: #888;
    --yc-menu: #4c5254;
}
