/* ЮГИД — витрина организатора (/g/{адрес}): бизнес-профиль, вкладки, лента как в Instagram
   (ПК — сетка плиток и окно поста, телефон — лента полных постов), страница поста. Токены — tokens.css / home.css */

.yg-sc { font-family: var(--yg-font-body); color: var(--yg-ink); padding-bottom: 80px; }
.yg-sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yg-sc-badge { display: inline-block; margin: 0 4px; padding: 1px 7px; border-radius: 999px; background: var(--yg-sun); color: var(--yg-ink); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.yg-sc .yg-btn:focus-visible, .yg-pm .yg-btn:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 3px; }

/* ---------- Профиль ----------
   Шкала: заголовок 24 Unbounded; цифры и имена 16 Manrope 700; текст 15/14; подписи 13/12. Иконки — линия 1.75 */
.yg-pf__wrap { width: 100%; max-width: 975px; margin: 0 auto; padding: 0 20px; }
.yg-pf { background: #fff; box-shadow: 0 1px 0 var(--yg-border); }
.yg-pf__cover { position: relative; height: 200px; background: linear-gradient(120deg, var(--yg-ink), var(--yg-sea)); overflow: hidden; }
.yg-pf__cover img { width: 100%; height: 100%; object-fit: cover; }
.yg-pf__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 46, 69, 0) 55%, rgba(11, 46, 69, .35)); }
.yg-pf__card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 28px; align-items: start; padding-bottom: 26px; }
.yg-pf__ava { justify-self: center; position: relative; margin-top: -52px; width: 150px; height: 150px; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, var(--yg-sun), var(--yg-sea), var(--yg-ink), var(--yg-sun)); }
.yg-pf__ava span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); border: 4px solid #fff; font: 800 52px/1 var(--yg-font-body); }
.yg-pf__main { padding-top: 22px; min-width: 0; }
.yg-pf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.yg-pf__main h1 { margin: 0; font: 600 24px/1.25 var(--yg-font-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.yg-pf__ok { display: inline-flex; margin-left: 6px; vertical-align: -2px; color: var(--yg-sea); }
.yg-pf__ok svg { width: 20px; height: 20px; fill: var(--yg-sea); stroke: #fff; }
.yg-pf__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-pf__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--yg-sky); color: var(--yg-ink); font: 700 14px/1 var(--yg-font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.yg-pf__btn:hover { background: #cde8f8; color: var(--yg-ink); }
.yg-pf__btn--main { background: var(--yg-sun); }
.yg-pf__btn--main:hover { background: var(--yg-sun-dark); }
.yg-pf__btn:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }
.yg-pf__stats { display: flex; flex-wrap: wrap; gap: 6px 36px; margin: 18px 0 16px; padding: 0; list-style: none; font-size: 16px; color: var(--yg-ink); }
.yg-pf__stats b { font-weight: 700; }
.yg-pf__star { color: var(--yg-sun-dark); }
.yg-pf__bio { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; max-width: 560px; }
.yg-pf__bio p { margin: 0; }
.yg-pf__kind { font-weight: 700; color: var(--yg-ink); }
.yg-pf__text { color: var(--yg-ink-soft); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yg-pf__text.is-open { display: block; }
.yg-pf__since { color: var(--yg-muted); font-size: 13px; margin-top: 4px !important; }

/* Экскурсии кружками — как «актуальное» */
.yg-pf-hl { padding: 6px 0 22px; }
.yg-pf-hl ul { display: flex; gap: 22px; margin: 0; padding: 4px 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.yg-pf-hl ul::-webkit-scrollbar { display: none; }
.yg-pf-hl a { display: grid; justify-items: center; gap: 8px; width: 88px; color: var(--yg-ink); text-decoration: none; }
.yg-pf-hl__ring { width: 80px; height: 80px; padding: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--yg-border); background: #fff; transition: box-shadow .15s; }
.yg-pf-hl__ring img, .yg-pf-hl__ring > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--yg-sky); color: var(--yg-sea); }
.yg-pf-hl__ring svg { width: 26px; height: 26px; stroke-width: 1.75; }
.yg-pf-hl__ring--all > span { background: var(--yg-sky-soft); }
.yg-pf-hl a:hover .yg-pf-hl__ring { box-shadow: inset 0 0 0 2px var(--yg-sea); }
.yg-pf-hl a:focus-visible { outline: none; }
.yg-pf-hl a:focus-visible .yg-pf-hl__ring { box-shadow: 0 0 0 3px var(--yg-sun-dark); }
.yg-pf-hl__name { font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Вкладки */
.yg-pf-tabs { position: sticky; top: 64px; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--yg-border); }
.yg-pf-tabs .yg-pf__wrap { display: flex; justify-content: center; gap: 44px; }
.yg-pf-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 52px; padding: 0 2px; color: var(--yg-muted); font: 700 14px/1 var(--yg-font-body); text-decoration: none; box-shadow: inset 0 2px 0 transparent; transition: color .15s, box-shadow .15s; }
.yg-pf-tabs a svg { width: 17px; height: 17px; stroke-width: 1.75; }
.yg-pf-tabs a small { font-size: 13px; font-weight: 600; color: var(--yg-muted); }
.yg-pf-tabs a:hover { color: var(--yg-ink); }
.yg-pf-tabs a[aria-selected="true"] { color: var(--yg-ink); box-shadow: inset 0 2px 0 var(--yg-ink); }
.yg-pf-tabs a:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: -3px; }
.yg-pf-body { padding-top: 4px; }
#pane-tours, #pane-reviews { padding-top: 24px; }
.yg-pf-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 16px; text-align: center; color: var(--yg-muted); font-size: 14px; }
.yg-pf-empty svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--yg-ink); color: var(--yg-ink); stroke-width: 1.5; }
.yg-pf-empty b { color: var(--yg-ink); font: 600 20px/1.3 var(--yg-font-head); }
.yg-pf-empty p { margin: 0; max-width: 420px; }
.yg-pf-more { display: flex; justify-content: center; margin-top: 22px; }
.yg-pf-more [aria-busy] { opacity: .6; pointer-events: none; }

/* Отзывы */
.yg-pf-reviews { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.yg-pf-score { position: sticky; top: 140px; display: grid; gap: 4px; padding: 22px; border-radius: var(--yg-radius); background: var(--yg-ink); color: #fff; }
.yg-pf-score b { font: 600 48px/1 var(--yg-font-head); }
.yg-pf-score .yg-pf__star { color: var(--yg-sun); letter-spacing: 2px; }
.yg-pf-score small { color: rgba(255, 255, 255, .75); }
.yg-pf-reviews ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.yg-pf-review { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; background: #fff; border-radius: var(--yg-radius); box-shadow: var(--yg-shadow); }
.yg-pf-review p { margin: 0; }
.yg-pf-review__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.yg-pf-review__head span { color: var(--yg-sun-dark); letter-spacing: 1px; }
.yg-pf-review__head i { font-style: normal; color: var(--yg-border); }
.yg-pf-review__meta { font-size: 13px; color: var(--yg-muted); margin-top: 2px !important; }
.yg-pf-review__text { margin-top: 10px !important; color: var(--yg-ink-soft); line-height: 1.55; white-space: pre-line; }
.yg-pf-review__reply { margin-top: 12px !important; padding: 10px 14px; border-left: 3px solid var(--yg-sea); border-radius: 0 12px 12px 0; background: var(--yg-sky-soft); color: var(--yg-ink-soft); }
.yg-pf-review__reply b { display: block; color: var(--yg-ink); font-size: 13px; }

/* ---------- Аватарки и действия поста ---------- */
.yg-ig__ava { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); font: 800 14px/1 var(--yg-font-body); text-decoration: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yg-sun); }
.yg-ig__ava--sm { width: 32px; height: 32px; font-size: 14px; box-shadow: none; }
.yg-ig__ava.is-guest { background: var(--yg-sky); color: var(--yg-sea-dark); }
.yg-ig__bar { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.yg-ig__bar form { margin: 0; }
.yg-ig__act { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--yg-ink); cursor: pointer; text-decoration: none; transition: color .15s, background-color .15s; }
.yg-ig__act svg { width: 24px; height: 24px; stroke-width: 1.75; }
.yg-ig__act:hover { color: var(--yg-sea); background: var(--yg-sky-soft); }
.yg-ig__act:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 0; }

.yg-ig__heart.is-on { color: var(--yg-coral); }
.yg-ig__heart.is-on svg { fill: currentColor; }
.yg-ig__heart.is-pop svg { animation: yg-pop .35s var(--yg-ease); }
@keyframes yg-pop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.yg-ig__likes { margin: 0; font-size: 14px; }
.yg-ig__likes b { font-weight: 700; }
.yg-ig__date { display: block; font-size: 12px; color: var(--yg-muted); }
.yg-ig__more { padding: 0; min-height: 28px; border: 0; background: none; color: var(--yg-muted); font-weight: 700; cursor: pointer; }

/* ---------- Листалка ---------- */
.yg-car { position: relative; background: var(--yg-ink); }
.yg-car__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.yg-car__track::-webkit-scrollbar { display: none; }
.yg-car__track:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: -3px; }
.yg-car__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: center; scroll-snap-stop: always; }
.yg-car__slide img, .yg-car__slide video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--yg-ink); }
/* Видео в ленте: играет без звука само, тап — полный экран со звуком; значок «без звука» в углу */
.yg-car__slide { position: relative; }
.yg-car__slide video[data-feed-video] { cursor: pointer; }
/* Автозапуск запрещён (энергосбережение iPhone, настройки Safari) — значок ▶ поверх обложки, нажатие запускает видео */
.yg-car__slide.is-blocked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
    background: rgba(4, 18, 28, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") no-repeat 55% 50% / 30px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.yg-car__slide.is-blocked .yg-car__vtag { display: none; }
.yg-car__vtag { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(4, 18, 28, .55); color: #fff; pointer-events: none;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.yg-car__vtag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yg-car--fit .yg-car__slide img, .yg-car--fit .yg-car__slide video { object-fit: contain; }
.yg-car__nav { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--yg-ink); cursor: pointer; box-shadow: 0 2px 10px rgba(11, 46, 69, .25); transition: opacity .15s; }
.yg-car__nav svg { width: 18px; height: 18px; }
.yg-car__nav--prev { left: 10px; } .yg-car__nav--prev svg { transform: rotate(90deg); }
.yg-car__nav--next { right: 10px; } .yg-car__nav--next svg { transform: rotate(-90deg); }
.yg-car.is-first .yg-car__nav--prev, .yg-car.is-last .yg-car__nav--next { opacity: 0; pointer-events: none; }
.yg-car__nav:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 2px; }
.yg-car__count { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(11, 46, 69, .7); color: #fff; font-size: 12px; font-weight: 700; }
.yg-car__dots { position: absolute; left: 0; right: 0; bottom: -20px; display: flex; justify-content: center; gap: 4px; }
.yg-car__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--yg-border); transition: background-color .2s; }
.yg-car__dots i.on { background: var(--yg-sea); }

/* ---------- Лента: телефон — полные посты ---------- */
.yg-ig-feed { display: grid; gap: 22px; max-width: 470px; margin: 0 auto; }
.yg-ig { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--yg-shadow); overflow: hidden; }
.yg-ig__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.yg-ig__who { display: grid; min-width: 0; line-height: 1.25; }
.yg-ig__who b { font-size: 14px; }
.yg-ig__who a { font-size: 12px; color: var(--yg-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-ig__who a:hover { color: var(--yg-sea); }
.yg-ig__textonly { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 28px; background: linear-gradient(135deg, var(--yg-ink), var(--yg-sea)); color: #fff; }
.yg-ig__textonly p { margin: 0; font: 600 17px/1.45 var(--yg-font-body); }
.yg-ig__body { display: grid; gap: 4px; padding: 6px 14px 14px; }
.yg-ig .yg-car { margin-bottom: 20px; background: #fff; }
.yg-ig__caption { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--yg-ink-soft); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.yg-ig__caption.is-open { display: block; }
.yg-ig__caption b { color: var(--yg-ink); margin-right: 4px; }
.yg-ig__more { justify-self: start; }
.yg-ig__comments { color: var(--yg-muted); font-size: 14px; text-decoration: none; }
.yg-ig__comments:hover { color: var(--yg-sea); }
.yg-ig__tile { display: none; }

/* ---------- Лента: ПК — сетка плиток ---------- */
@media (min-width: 768px) {
    .yg-ig-feed { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .yg-ig { border-radius: 4px; box-shadow: none; aspect-ratio: 3 / 4; }
    .yg-ig__head, .yg-ig__body, .yg-ig .yg-car__nav, .yg-ig .yg-car__count, .yg-ig .yg-car__dots { display: none; }
    .yg-ig .yg-car, .yg-ig .yg-car__track { height: 100%; margin: 0; overflow: hidden; }
    .yg-ig .yg-car__slide { height: 100%; aspect-ratio: auto; }
    .yg-ig .yg-car__slide video { pointer-events: none; }
    .yg-ig__textonly { height: 100%; aspect-ratio: auto; }
    .yg-ig__textonly p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
    .yg-ig__tile { position: absolute; inset: 0; display: block; color: #fff; }
    .yg-ig__tile:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: -3px; }
    .yg-ig__kind { position: absolute; top: 10px; right: 10px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
    .yg-ig__kind svg { width: 22px; height: 22px; fill: #fff; }
    .yg-ig__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; background: rgba(11, 46, 69, .45); font-weight: 800; font-size: 17px; opacity: 0; transition: opacity .2s; }
    .yg-ig__hover > span { display: inline-flex; align-items: center; gap: 7px; }
    .yg-ig__hover svg { width: 22px; height: 22px; fill: #fff; }
    .yg-ig__tile:hover .yg-ig__hover, .yg-ig__tile:focus-visible .yg-ig__hover { opacity: 1; }
    .yg-ig .yg-car__slide img { transition: transform .4s var(--yg-ease); }
    .yg-ig:hover .yg-car__slide:first-child img { transform: scale(1.03); }
}


/* ---------- Полный пост: окно на ПК и страница поста ---------- */
.yg-pv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--yg-shadow); height: min(88vh, 860px); }
.yg-pv__media { position: relative; display: flex; align-items: center; background: var(--yg-sky); min-width: 0; }
.yg-pv__media .yg-car { width: 100%; height: 100%; }
.yg-pv__media .yg-car__track { height: 100%; }
.yg-pv__media .yg-car__slide { aspect-ratio: auto; height: 100%; }
.yg-pv__media .yg-car__dots { bottom: 14px; }
.yg-pv__media .yg-car__dots i { background: rgba(255, 255, 255, .45); }
.yg-pv__media .yg-car__dots i.on { background: #fff; }
.yg-pv__media .yg-car__nav { width: 40px; height: 40px; margin-top: -20px; }
.yg-pv__textonly { display: grid; place-items: center; width: 100%; height: 100%; padding: 40px; background: linear-gradient(135deg, var(--yg-ink), var(--yg-sea)); color: #fff; font: 600 18px/1.5 var(--yg-font-body); white-space: pre-line; }
.yg-pv__side { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.yg-pv__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--yg-border); }
.yg-pv__author { display: block; font-weight: 700; font-size: 14px; color: var(--yg-ink); text-decoration: none; }
.yg-pv__route { display: block; font-size: 13px; color: var(--yg-muted); text-decoration: none; }
.yg-pv__author:hover, .yg-pv__route:hover { color: var(--yg-sea); }
.yg-pv__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; display: grid; align-content: start; gap: 14px; overscroll-behavior: contain; }
.yg-pv__line { display: grid; grid-template-columns: 32px 1fr; gap: 12px; scroll-margin-top: 20px; }
.yg-pv__line p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--yg-ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.yg-pv__line p b { color: var(--yg-ink); margin-right: 4px; }
.yg-pv__line time { font-size: 12px; color: var(--yg-muted); }
.yg-pv__line.is-org .yg-ig__ava--sm { background: var(--yg-ink); color: var(--yg-sun); }
.yg-pv__comments { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.yg-pv__meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--yg-muted); }
.yg-pv__meta form { margin: 0; }
.yg-pv__meta button { padding: 0; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--yg-muted); cursor: pointer; }
.yg-pv__meta button:hover { color: var(--yg-coral); }
.yg-pv__empty { margin: 0; color: var(--yg-muted); font-size: 14px; }
.yg-pv__foot { flex: none; display: grid; gap: 4px; padding: 8px 16px 14px; border-top: 1px solid var(--yg-border); }
.yg-pv__reply { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--yg-border); scroll-margin-top: 140px; }
.yg-pv__reply textarea { flex: 1; min-height: 40px; max-height: 120px; padding: 9px 0; border: 0; background: none; resize: none; font: 500 15px/1.4 var(--yg-font-body); color: var(--yg-ink); }
.yg-pv__reply textarea:focus { outline: none; }
.yg-pv__reply:focus-within { border-top-color: var(--yg-sea); }
.yg-pv__reply button { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--yg-sea); font-weight: 800; cursor: pointer; }
.yg-pv__reply textarea:placeholder-shown + button { opacity: .45; }
.yg-pv__login { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--yg-sea); font-weight: 800; text-decoration: none; scroll-margin-top: 140px; }
.yg-sc-route { display: grid; grid-template-columns: 20px 1fr 18px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--yg-sky-soft); box-shadow: inset 0 0 0 1px var(--yg-border); color: var(--yg-ink); text-decoration: none; transition: box-shadow .15s; }
.yg-sc-route:hover { box-shadow: inset 0 0 0 1.5px var(--yg-sea); color: var(--yg-ink); }
.yg-sc-route svg { width: 18px; height: 18px; color: var(--yg-sea); }
.yg-sc-route small { display: block; font-size: 12px; color: var(--yg-muted); font-weight: 600; }
.yg-sc-route b { display: block; font-size: 14px; line-height: 1.3; }
.yg-sc-postpage { padding-top: 20px; }
.yg-sc-postpage .yg-pv { margin-top: 10px; }

/* Окно поста */
.yg-pm { width: min(1240px, calc(100vw - 140px)); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; }
.yg-pm::backdrop { background: rgba(11, 46, 69, .78); }
.yg-pm__body { min-height: 200px; }
.yg-pm.is-loading .yg-pm__body { display: grid; place-items: center; height: min(88vh, 860px); border-radius: 20px; background: rgba(255, 255, 255, .06); }
.yg-pm.is-loading .yg-pm__body::after { content: ''; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: var(--yg-sun); animation: yg-spin .8s linear infinite; }
@keyframes yg-spin { to { transform: rotate(360deg); } }
.yg-pm__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.yg-pm__close svg { width: 28px; height: 28px; }
.yg-pm__step { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--yg-ink); cursor: pointer; box-shadow: var(--yg-shadow); }
.yg-pm__step svg { width: 20px; height: 20px; }
.yg-pm__step--prev { left: -56px; } .yg-pm__step--prev svg { transform: rotate(90deg); }
.yg-pm__step--next { right: -56px; } .yg-pm__step--next svg { transform: rotate(-90deg); }
.yg-pm__close:focus-visible, .yg-pm__step:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 2px; }
.yg-pm__step[hidden] { display: none; }

.yg-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; z-index: 1000; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: var(--yg-ink); color: #fff; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.yg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
    .yg-pf-reviews { grid-template-columns: 1fr; }
    .yg-pf-score { position: static; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
    .yg-pf-score b { grid-row: 1 / 3; }
    .yg-pv { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
    .yg-pv__media .yg-car__slide { aspect-ratio: 4 / 5; height: auto; }
    .yg-pv__scroll { overflow: visible; }
}
@media (max-width: 767.98px) {
    .yg-pf__wrap { padding: 0 16px; }
    .yg-pf__cover { height: 130px; }
    .yg-pf__card { grid-template-columns: 1fr; padding-bottom: 14px; }
    .yg-pf__ava { justify-self: start; width: 96px; height: 96px; margin-top: -48px; padding: 3px; }
    .yg-pf__ava span { font-size: 36px; border-width: 3px; }
    .yg-pf__main { padding-top: 10px; }
    .yg-pf__main h1 { font-size: 20px; }
    .yg-pf__row { display: grid; gap: 12px; }
    .yg-pf__actions { order: 3; flex-wrap: nowrap; }
    .yg-pf__btn { flex: 1 1 0; min-height: 38px; padding: 0 10px; }
    .yg-pf__stats { justify-content: space-between; gap: 6px 12px; margin: 14px 0 12px; padding: 10px 0; border-top: 1px solid var(--yg-border); border-bottom: 1px solid var(--yg-border); font-size: 14px; }
    .yg-pf-hl { padding-bottom: 14px; }
    .yg-pf-hl ul { gap: 14px; }
    .yg-pf-hl a { width: 72px; }
    .yg-pf-hl__ring { width: 66px; height: 66px; }
    .yg-pf-tabs { top: 56px; }
    .yg-pf-tabs .yg-pf__wrap { justify-content: space-around; gap: 0; padding: 0; }
    .yg-pf-tabs a { flex: 1; justify-content: center; }
    .yg-pf-tabs a small { display: none; }
    .yg-pv { border-radius: 16px; }
    .yg-pm { display: none; }
    /* Лента во всю ширину экрана, как в Instagram */
    .yg-ig-feed { margin: 0 -16px; gap: 0; max-width: none; }
    .yg-ig { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--yg-border); }
    .yg-pf-body { padding-top: 0; }
    #pane-tours, #pane-reviews { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-ig__heart.is-pop svg { animation: none; }
    .yg-ig .yg-car__slide img, .yg-ig__hover, .yg-toast, .yg-car__nav { transition: none; }
    .yg-pm.is-loading .yg-pm__body::after { animation-duration: 2s; }
}

/* ---------- Кабинет: витрина ---------- */
.yg-scc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.yg-scc h2, .yg-scc-h { margin: 0 0 14px; font: 800 18px/1.3 var(--yg-font-body); }

/* Обложка витрины */
.yg-scc-cover { background: #fff; border-radius: var(--yg-radius); box-shadow: var(--yg-shadow); overflow: hidden; scroll-margin-top: 100px; }
.yg-scc-cover__img { position: relative; aspect-ratio: 4 / 1; background: linear-gradient(120deg, var(--yg-ink), var(--yg-sea)); }
.yg-scc-cover__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yg-scc-cover__ava { position: absolute; left: 24px; bottom: -30px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); border: 4px solid #fff; font: 800 28px/1 var(--yg-font-body); }
.yg-scc-cover__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 24px 18px 112px; }
.yg-scc-cover__bar h2 { margin: 0 0 2px !important; font-size: 16px !important; }
.yg-scc-cover__bar p { margin: 0; font-size: 13px; color: var(--yg-muted); max-width: 520px; }
.yg-scc-cover__bar .yg-err { margin-top: 6px; color: var(--yg-coral); font-weight: 700; }
.yg-scc-cover__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.yg-scc-cover__acts form { margin: 0; }
.yg-scc-cover__pick { position: relative; gap: 6px; cursor: pointer; }
.yg-scc-cover__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yg-scc-cover__pick:focus-within { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }
.yg-scc-cover__pick.is-busy { opacity: .7; pointer-events: none; }

/* Итоги */
.yg-scc-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.yg-scc-totals li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 16px 18px; background: #fff; border-radius: var(--yg-radius); box-shadow: var(--yg-shadow); }
.yg-scc-totals li:first-child { background: var(--yg-ink); color: #fff; grid-template-columns: 1fr; }
.yg-scc-totals li:first-child span { color: rgba(255, 255, 255, .75); }
.yg-scc-totals svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--yg-sea); }
.yg-scc-totals b { font: 800 24px/1.1 var(--yg-font-body); font-variant-numeric: tabular-nums; }
.yg-scc-totals span { font-size: 13px; color: var(--yg-muted); font-weight: 700; }

/* Редактор поста */
.yg-cmp { padding: 0 !important; overflow: hidden; }
.yg-cmp__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 20px 24px 0; }
.yg-cmp__head h2 { margin: 0 !important; font-size: 20px !important; }
.yg-cmp__head p { margin: 0; font-size: 14px; color: var(--yg-muted); }
.yg-cmp > .yg-alert { margin: 14px 24px 0; }
.yg-cmp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin-top: 18px; border-top: 1px solid var(--yg-border); }
.yg-cmp__media { display: grid; align-content: start; gap: 12px; padding: 20px 24px; background: var(--yg-sky-soft); border-right: 1px solid var(--yg-border); min-width: 0; }
.yg-cmp__drop { position: relative; display: block; margin: 0; cursor: pointer; }
.yg-cmp__drop[hidden] { display: none; }
.yg-cmp__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.yg-cmp__drop-in { display: grid; justify-items: center; align-content: center; gap: 8px; aspect-ratio: 4 / 5; max-height: 520px; width: 100%; padding: 24px; border-radius: 18px; border: 2px dashed var(--yg-border); background: #fff; text-align: center; transition: border-color .15s, background-color .15s; }
.yg-cmp__drop-in b { font-size: 18px; }
.yg-cmp__drop-in small { color: var(--yg-muted); max-width: 320px; }
.yg-cmp__drop-ico { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--yg-sky); color: var(--yg-sea); }
.yg-cmp__drop-ico svg { width: 34px; height: 34px; }
.yg-cmp__drop:hover .yg-cmp__drop-in, .yg-cmp.is-dropping .yg-cmp__drop-in, .yg-cmp__drop input:focus-visible + .yg-cmp__drop-in { border-color: var(--yg-sea); background: var(--yg-sky); }
.yg-cmp.is-dropping .yg-cmp__stage { outline: 3px dashed var(--yg-sea); outline-offset: 4px; border-radius: 18px; }
.yg-cmp__stage[hidden], .yg-cmp__strip[hidden] { display: none; }
.yg-cmp__stage .yg-car { border-radius: 18px; overflow: hidden; max-height: 560px; }
.yg-cmp__stage .yg-car__slide { max-height: 560px; }
.yg-cmp__stage .yg-car__slide img, .yg-cmp__stage .yg-car__slide video { object-fit: contain; }
.yg-cmp__stage .yg-car__nav[hidden], .yg-cmp__stage .yg-car__count[hidden] { display: none; }
/* Видео в превью, пока сжимается и грузится: по центру — колесо, что происходит и процент, снизу полоса (над обложкой — затемнение) */
.yg-cmp__busy { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; background: var(--yg-ink); color: #fff; text-align: center; pointer-events: none; }
.yg-cmp__busy.has-poster { background: rgba(11, 46, 69, .62); }
.yg-cmp__busy[hidden] { display: none; }
.yg-cmp__busy b { font: 700 15px/1.3 var(--yg-font-body); }
.yg-cmp__spin { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--yg-sun); border-radius: 50%; animation: yg-cmp-spin .9s linear infinite; }
.yg-cmp__bar { width: min(220px, 70vw); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.yg-cmp__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--yg-sun); transition: width .3s var(--yg-ease); }
@keyframes yg-cmp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .yg-cmp__spin { animation-duration: 2.4s; } .yg-cmp__bar i { transition: none; } }
.yg-cmp__strip { display: flex; gap: 8px; align-items: stretch; overflow-x: auto; padding: 2px 2px 6px; }
.yg-cmp__thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yg-cmp__thumb { position: relative; flex: none; width: 92px; height: 115px; border-radius: 12px; overflow: hidden; background: var(--yg-ink); box-shadow: inset 0 0 0 0 transparent; cursor: grab; }
.yg-cmp__thumb > img, .yg-cmp__thumb > video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.yg-cmp__thumb.is-current { outline: 3px solid var(--yg-sun); outline-offset: -3px; }
.yg-cmp__thumb.is-drag { opacity: .5; }
.yg-cmp__pick { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; }
.yg-cmp__pick:focus-visible { outline: 3px solid var(--yg-sea); outline-offset: -3px; }
.yg-cmp__num { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(11, 46, 69, .8); color: #fff; font-size: 12px; font-weight: 800; pointer-events: none; }
.yg-cmp__cover { position: absolute; top: 32px; left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--yg-sun); color: var(--yg-ink); font-size: 11px; font-weight: 800; pointer-events: none; }
.yg-cmp__kind { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.yg-cmp__ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(180deg, transparent, rgba(11, 46, 69, .85)); }
.yg-cmp__ctrl button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--yg-ink); font: 800 16px/1 var(--yg-font-body); cursor: pointer; }
.yg-cmp__ctrl button[data-act="del"] { color: var(--yg-coral); }
.yg-cmp__ctrl button:disabled { opacity: .35; cursor: default; }
.yg-cmp__ctrl button:focus-visible { outline: 2px solid var(--yg-sun); outline-offset: 1px; }
.yg-cmp__add { flex: none; width: 92px; height: 115px; display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed var(--yg-border); border-radius: 12px; background: #fff; color: var(--yg-sea); font-weight: 800; font-size: 13px; cursor: pointer; }
.yg-cmp__add svg { width: 24px; height: 24px; }
.yg-cmp__add:hover { border-color: var(--yg-sea); background: var(--yg-sky); }
.yg-cmp__add[hidden] { display: none; }
.yg-cmp__status { margin: 0; font-size: 13px; color: var(--yg-muted); min-height: 18px; }
/* Миниатюра: у видео — кадр-обложка; в правом верхнем углу — состояние: кольцо с процентом (сжатие, загрузка), ✓ готово, ↻ ошибка */
.yg-cmp__thumb > img.is-video:not([src]) { visibility: hidden; }
.yg-cmp__thumb.is-err { outline: 3px solid var(--yg-coral); outline-offset: -3px; }
.yg-cmp__state { position: absolute; top: 6px; right: 6px; z-index: 2; }
.yg-cmp__st.is-run { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(4, 18, 28, .72); color: #fff; }
.yg-cmp__st.is-run i { position: absolute; inset: 2px; border-radius: 50%;
    background: conic-gradient(var(--yg-sun) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .2) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); transition: background .2s; }
.yg-cmp__st.is-run b { position: relative; font-size: 10px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.yg-cmp__st.is-wait i { animation: yg-cmp-spin 1.2s linear infinite; background: conic-gradient(var(--yg-sun) 25%, rgba(255, 255, 255, .2) 0); }
@keyframes yg-cmp-spin { to { transform: rotate(1turn); } }
.yg-cmp__st.is-done { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yg-sea); color: #fff; font-size: 12px; font-weight: 800; }
.yg-cmp__st.is-err { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--yg-coral); color: #fff; font: 800 16px/1 var(--yg-font-body); cursor: pointer; }
.yg-cmp__st.is-err::before { content: ""; position: absolute; inset: -7px; }   /* цель касания ~44 px */
.yg-cmp__st.is-err:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 2px; }
.yg-cmp__thumb:has(.yg-cmp__st.is-run) .yg-cmp__kind { display: none; }
@media (prefers-reduced-motion: reduce) { .yg-cmp__st.is-run i { transition: none; } .yg-cmp__st.is-wait i { animation-duration: 3s; } }

/* Обрезка видео: полоса времени с выделенным фрагментом и два ползунка-края */
.yg-cmp__trim { display: grid; gap: 8px; padding: 12px 14px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border); }
.yg-cmp__trim[hidden] { display: none; }
.yg-cmp__trim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.yg-cmp__trim-head b { font-size: 14px; }
.yg-cmp__trim-head span { font-size: 13px; font-weight: 800; color: var(--yg-sea); font-variant-numeric: tabular-nums; }
.yg-cmp__trim small { font-size: 12.5px; color: var(--yg-muted); }
.yg-cmp__trim-range { position: relative; height: 44px; }
.yg-cmp__trim-range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--yg-sky); }
.yg-cmp__trim-range i { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--yg-sea); }
.yg-cmp__trim-range input { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.yg-cmp__trim-range input::-webkit-slider-runnable-track { height: 44px; background: none; }
.yg-cmp__trim-range input::-moz-range-track { background: none; }
.yg-cmp__trim-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; margin-top: 8px; border-radius: 50%; background: #fff; border: 3px solid var(--yg-ink); box-shadow: 0 4px 10px -4px rgba(11, 46, 69, .5); cursor: grab; }
.yg-cmp__trim-range input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--yg-ink); cursor: grab; }
.yg-cmp__trim-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(3, 105, 161, .3); }

.yg-cmp__side { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; min-width: 0; }
.yg-cmp__who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--yg-border); }
.yg-cmp__field { display: grid; gap: 6px; }
.yg-cmp__field label { font-size: 13px; font-weight: 800; color: var(--yg-ink-soft); }
.yg-cmp__field textarea, .yg-cmp__field select, .yg-scc-edit textarea, .yg-scc-edit select { width: 100%; padding: 12px 14px; border: 1px solid var(--yg-border); border-radius: 14px; background: var(--yg-sky-soft); font: 500 15px/1.5 var(--yg-font-body); color: var(--yg-ink); }
.yg-cmp__field select, .yg-scc-edit select { min-height: 46px; }
.yg-cmp__field textarea { resize: vertical; min-height: 160px; }
.yg-cmp__field textarea:focus, .yg-cmp__field select:focus, .yg-scc-edit textarea:focus, .yg-scc-edit select:focus { outline: none; border-color: var(--yg-sea); background: #fff; box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.yg-cmp__field small { font-size: 12px; color: var(--yg-muted); }
.yg-cmp__counter { justify-self: end; }
.yg-cmp__publish { display: grid; gap: 8px; margin-top: auto; }
.yg-cmp__publish small { text-align: center; font-size: 13px; color: var(--yg-muted); }
.yg-cmp__publish .yg-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.yg-cmp__progress { height: 6px; border-radius: 999px; background: var(--yg-sky); overflow: hidden; }
.yg-cmp__progress[hidden] { display: none; }
.yg-cmp__progress i { display: block; height: 100%; width: 0; background: var(--yg-sea); transition: width .2s; }

/* Мои посты */
.yg-scc-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.yg-scc-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 14px; background: #fff; border-radius: var(--yg-radius); box-shadow: var(--yg-shadow); scroll-margin-top: 100px; }
.yg-scc-item.is-hidden { box-shadow: inset 0 0 0 2px var(--yg-coral); }
.yg-scc-item:target { box-shadow: 0 0 0 3px var(--yg-sun), var(--yg-shadow); }
.yg-scc-item__pic { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--yg-ink); }
.yg-scc-item__pic img, .yg-scc-item__pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yg-scc-item__pic i { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.yg-scc-item__pic i svg { width: 18px; height: 18px; fill: #fff; }
.yg-scc-item__main { display: grid; align-content: start; gap: 8px; min-width: 0; }
.yg-scc-item__main p { margin: 0; }
.yg-scc-item__meta { font-size: 13px; color: var(--yg-muted); }
.yg-scc-item__flag { font-size: 13px; font-weight: 800; color: var(--yg-coral); }
.yg-scc-item__text { color: var(--yg-ink-soft); line-height: 1.5; overflow-wrap: anywhere; }
.yg-scc-item__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yg-scc-item__stats li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--yg-sky-soft); font-size: 14px; }
.yg-scc-item__stats svg { width: 16px; height: 16px; color: var(--yg-sea); }
.yg-scc-item__acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; padding-top: 6px; border-top: 1px solid var(--yg-border); }
.yg-scc-item__acts > a, .yg-scc-item__acts summary, .yg-scc-item__del { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--yg-sea); font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; list-style: none; }
.yg-scc-item__acts summary::-webkit-details-marker { display: none; }
.yg-scc-item__acts svg { width: 16px; height: 16px; }
.yg-scc-item__acts details { flex-basis: auto; min-width: 0; max-width: 100%; }
.yg-scc-item__acts details[open] { flex-basis: 100%; order: 5; }
.yg-scc-item__acts details[open] summary { color: var(--yg-ink); }
.yg-scc-item__acts > form { margin: 0 0 0 auto; }
.yg-scc-item__del { color: var(--yg-muted); }
.yg-scc-item__del:hover { color: var(--yg-coral); }
.yg-scc-edit { display: grid; gap: 8px; padding: 12px 0 4px; }
.yg-scc-edit label { font-size: 13px; font-weight: 800; color: var(--yg-ink-soft); }
.yg-scc-edit .yg-btn { justify-self: start; }
.yg-scc-edit small { color: var(--yg-muted); font-size: 12px; }
.yg-scc-comments { display: grid; gap: 12px; padding: 10px 0 4px; }
.yg-scc-comment { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.yg-scc-comment p { font-size: 14px; color: var(--yg-ink-soft); line-height: 1.45; overflow-wrap: anywhere; }
.yg-scc-comment p b { color: var(--yg-ink); margin-right: 4px; }

/* Ссылка и QR */
.yg-scc-link { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; padding: 22px 24px; border-radius: var(--yg-radius); background: var(--yg-ink); color: #fff; }
.yg-scc-link h2 { color: #fff; }
.yg-scc-url { display: flex; gap: 8px; }
.yg-scc-url input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 16px var(--yg-font-body); }
.yg-scc-url input:focus { outline: 3px solid var(--yg-sun); outline-offset: 1px; }
.yg-scc-url .yg-btn { background: var(--yg-sun); color: var(--yg-ink); gap: 6px; }
.yg-scc .yg-btn svg { width: 17px; height: 17px; }
.yg-scc-link__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yg-scc-link .yg-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); gap: 6px; }
.yg-scc-link .yg-btn--ghost:hover { color: var(--yg-sun); box-shadow: inset 0 0 0 1.5px var(--yg-sun); }
.yg-scc-addr { margin-top: 14px; }
.yg-scc-addr summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--yg-sun); font-weight: 700; cursor: pointer; }
.yg-scc-addr label { display: block; margin: 6px 0; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.yg-scc-addr__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yg-scc-addr__host { color: rgba(255, 255, 255, .7); font-weight: 600; }
.yg-scc-addr input { flex: 1 1 180px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--yg-ink); font: 700 16px var(--yg-font-body); }
.yg-scc-addr input:focus { outline: 3px solid var(--yg-sun); outline-offset: 1px; }
.yg-scc-addr .yg-hint { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.yg-scc-addr .yg-err { margin: 6px 0 0; color: var(--yg-sun); font-weight: 700; }
.yg-scc-qr { display: grid; justify-items: center; gap: 10px; margin: 0; text-align: center; }
.yg-scc-qr__img { width: 168px; padding: 10px; border-radius: 16px; background: #fff; }
.yg-scc-qr__img svg { display: block; width: 100%; height: auto; }
.yg-scc-qr figcaption { display: grid; justify-items: center; gap: 6px; }
.yg-scc-qr small { font-size: 12px; color: rgba(255, 255, 255, .7); line-height: 1.4; }

@media (max-width: 1199.98px) {
    .yg-cmp__grid { grid-template-columns: 1fr; }
    .yg-cmp__media { border-right: 0; border-bottom: 1px solid var(--yg-border); }
}
@media (max-width: 767.98px) {
    .yg-scc-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yg-scc-cover__img { aspect-ratio: 3 / 1; }
    .yg-scc-cover__ava { width: 56px; height: 56px; font-size: 22px; left: 16px; bottom: -24px; }
    .yg-scc-cover__bar { padding: 34px 16px 16px; }
    .yg-cmp__head, .yg-cmp__media, .yg-cmp__side { padding-left: 16px; padding-right: 16px; }
    .yg-cmp__drop-in { aspect-ratio: auto; min-height: 260px; }
    .yg-scc-item { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .yg-scc-link { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .yg-scc-qr { justify-self: start; justify-items: start; text-align: left; grid-template-columns: 120px 1fr; align-items: center; }
    .yg-scc-qr__img { width: 120px; }
    .yg-scc-qr figcaption { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-cmp__progress i, .yg-cmp__drop-in { transition: none; }
}

/* ---------- Пожаловаться (showcase/_report) ---------- */
.yg-rep { position: relative; }
.yg-rep > summary { list-style: none; cursor: pointer; }
.yg-rep > summary::-webkit-details-marker { display: none; }
.yg-pv__meta .yg-rep > summary { font-size: 12px; font-weight: 700; color: var(--yg-muted); }
.yg-pv__meta .yg-rep > summary:hover, .yg-pv__meta .yg-rep[open] > summary { color: var(--yg-ink); }
.yg-rep--menu { margin-left: auto; }
.yg-rep--menu > summary { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; border-radius: 50%; color: var(--yg-ink-soft); }
.yg-rep--menu > summary:hover, .yg-rep--menu[open] > summary { background: var(--yg-sky-soft); color: var(--yg-ink); }
.yg-rep--menu > summary svg { width: 22px; height: 22px; }
.yg-rep > summary:focus-visible { outline: 2px solid var(--yg-sea); outline-offset: 2px; }
.yg-rep__form { display: grid; gap: 10px; margin: 8px 0 0; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--yg-shadow-lg); font-size: 14px; color: var(--yg-ink); }
.yg-rep--menu .yg-rep__form { position: absolute; right: -6px; top: calc(100% + 4px); z-index: 30; width: min(320px, calc(100vw - 32px)); }
.yg-pv__meta .yg-rep[open] { flex-basis: 100%; }
.yg-pv__meta:has(.yg-rep[open]) { flex-wrap: wrap; }
.yg-rep__form fieldset { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.yg-rep__form legend { margin-bottom: 6px; padding: 0; font-weight: 800; font-size: 15px; }
.yg-rep__opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.yg-rep__opt:hover { background: var(--yg-sky-soft); }
.yg-rep__opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--yg-sea); }
.yg-rep__more { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--yg-muted); }
.yg-rep__more textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--yg-border); border-radius: 10px; font: 500 15px/1.4 var(--yg-font-body); color: var(--yg-ink); resize: vertical; }
.yg-rep__more textarea:focus { outline: none; border-color: var(--yg-sea); box-shadow: 0 0 0 3px rgba(3, 105, 161, .15); }
.yg-pv__meta .yg-rep__send, .yg-rep__send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--yg-ink); color: #fff; font: 800 14px var(--yg-font-body); cursor: pointer; }
.yg-pv__meta .yg-rep__send:hover, .yg-rep__send:hover { background: var(--yg-sea-dark); color: #fff; }
.yg-rep__send svg { width: 16px; height: 16px; }
.yg-rep__note { margin: 0; font-size: 12px; color: var(--yg-muted); text-align: center; }
/* Пост в одну колонку: карточка обрезает выпадающее — меню жалобы раскрывается под шапкой во всю ширину */
@media (max-width: 991.98px) {
    .yg-pv__head:has(.yg-rep--menu[open]) { flex-wrap: wrap; }
    .yg-rep--menu[open] { display: contents; }
    .yg-rep--menu[open] > summary { margin-left: auto; }
    .yg-rep--menu .yg-rep__form { position: static; width: 100%; flex-basis: 100%; margin: 4px 0 0; box-shadow: none; padding: 4px 0 0; }
}
/* Правка подписи своего поста — то же раскрывающееся меню, что у жалобы */
.yg-pv__edit + .yg-pv__del, .yg-pv__edit + form { margin-left: 0; }
.yg-pv__edit-text { width: 100%; padding: 10px 12px; border: 1px solid var(--yg-border); border-radius: 12px; font: 500 15px/1.45 var(--yg-font-body); color: var(--yg-ink); resize: vertical; }
.yg-pv__edit-text:focus { outline: none; border-color: var(--yg-sea); box-shadow: 0 0 0 3px rgba(3, 105, 161, .15); }

/* Переход «к комментариям» из ленты — блок не уезжает под липкую шапку */
.yg-pv__side { scroll-margin-top: max(76px, calc(var(--yg-hdr, 0px) + var(--yg-bar, 0px) + 12px)); }

/* ---------- Медиа поста без полей (листалка .yg-car--adapt) ---------- */
/* ПК: колонка фиксированной высоты — по краям не синий фон, а размытый этот же кадр */
.yg-car--adapt .yg-car__slide { overflow: hidden; isolation: isolate; }
.yg-car--adapt .yg-car__slide::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--bg, none) center / cover; filter: blur(28px) saturate(1.1) brightness(.8); transform: scale(1.06); }
.yg-car--adapt .yg-car__slide img, .yg-car--adapt .yg-car__slide video { background: transparent; }
/* Телефон: высота области — по пропорциям кадра (задаёт showcase.js), кадр заполняет её целиком */
@media (max-width: 991.98px) {
    .yg-pv__media, .yg-pv__media .yg-car--adapt { background: var(--yg-sky-soft); }
    .yg-pv__media .yg-car--adapt .yg-car__track { aspect-ratio: var(--ar, .8); }
    .yg-pv__media .yg-car--adapt .yg-car__slide { aspect-ratio: auto; height: 100%; }
    .yg-pv__media .yg-car--adapt .yg-car__slide::before { content: none; }
    .yg-pv__media .yg-car--adapt .yg-car__slide img, .yg-pv__media .yg-car--adapt .yg-car__slide video { object-fit: cover; }
}

/* Загрузка медиа как в Instagram: пока кадр не готов — светлый бегущий блик, готов (is-loaded, showcase.js) — фото
   или видео плавно проявляется. Тёмной подложки под медиа нет — при прокрутке ничего не «мигает» синим */
@keyframes yg-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.yg-js .yg-car, .yg-js .yg-car__slide img, .yg-js .yg-car__slide video { background: transparent; }
.yg-js .yg-car__slide { background: var(--yg-sky); }
.yg-js .yg-car__slide:not(.is-loaded) { background: linear-gradient(100deg, var(--yg-sky) 30%, var(--yg-sky-soft) 50%, var(--yg-sky) 70%) 0 0 / 300% 100%; animation: yg-sk 1.4s ease-in-out infinite; }
.yg-js .yg-car__slide img, .yg-js .yg-car__slide video { opacity: 0; transition: opacity .4s ease; }
.yg-js .yg-car__slide.is-loaded img, .yg-js .yg-car__slide.is-loaded video { opacity: 1; }
/* Значок «нажмите, чтобы смотреть» и метка звука — видны и до загрузки кадра */
.yg-js .yg-car__slide:not(.is-loaded) .yg-car__vtag { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
    .yg-js .yg-car__slide:not(.is-loaded) { animation: none; }
    .yg-js .yg-car__slide img, .yg-js .yg-car__slide video { transition: none; }
}
