/* =========================================================
   SINGLE BASE (статьи + открытки)
========================================================= */

.single .entry-title {
    font-size: 20px;
    margin: 5px 0;
}

/* растягивание открытки */
.pmv2-postcard-wrap {
	width: 100%;
	max-width: 100%;
}

.pmv2-postcard-media {
	width: 100%;
	max-width: 100%;
}

.pmv2-postcard-image {
	display: block;
	width: 100%;
	height: auto;
}

/* ===== SHARE ===== */

.pmv2-share-wrap {
  margin-top: 12px;
}

.pmv2-share-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
  position: relative;
}

/* кнопка копировать */
.pmv2-copy-link-btn {
  flex: 1 1 80%;
  height: 36px;
  border: 1px solid #d0d0d0;
  background: #f3f3f3;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
}

/* toggle */
.pmv2-share-toggle-wrapper {
  flex: 0 0 52px;
}

/* dropdown */
.pmv2-share-links {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
}

/* реклама */
.pmv2-ad-slot {
  margin: .5rem 0;
  text-align: center;
}


/* контейнер "закрепления карточка" должен быть позиционирован */
.pmv2-card__thumb {
	position: relative;
}



/* TEST — проверка отображения */
.pmv2-pin-badge {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 30px;
	background: red;
	z-index: 9999;
}


/* === POSTCARD CONTROLS LAYOUT === */

/* Строка управления открыткой: плеер + поиск + поделиться. */
.pmv2-audio-share {
    position: relative;
    margin-top: 5px;
}

/* Верхняя строка держит элементы в одну линию. */
.pmv2-audio-share__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Плеер занимает всё доступное место. */
.pmv2-audio-share__player {
    flex: 1 1 auto;
    min-width: 0;
}

/* Кнопки поиска и share имеют фиксированный размер. */
.pmv2-audio-share__search,
.pmv2-audio-share__toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    background: #f3f3f3;
    border-radius: 4px;
    cursor: pointer;
}

/* SVG внутри кнопок управления. */
.pmv2-audio-share__search svg,
.pmv2-audio-share__toggle svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Выпадающая панель share под строкой управления. */
.pmv2-audio-share__panel {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Кнопка копирования занимает всю ширину панели. */
.pmv2-copy-link-btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

/* Соцсети выводятся в одну компактную строку. */
.pmv2-audio-share__links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Ссылка соцсети служит контейнером для SVG. */
.pmv2-audio-share__links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 8px;
    background: #f3f3f3;
    border: 1px solid #d0d0d0;
}

/* SVG соцсетей приводятся к единому размеру. */
.pmv2-audio-share__links svg {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block;
}

/* На мобильных кнопки управления легче нажимать. */
@media (max-width: 600px) {

    .pmv2-audio-share__search,
    .pmv2-audio-share__toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 40px;
}

    .pmv2-audio-share__links a {
        width: 42px;
        height: 42px;
    }
}
/* === POSTCARD CONTROLS LAYOUT === */


/* Хлебные крошки в одну строку */
.pmv2-breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin: 12px 0 15px;
    padding-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    opacity: .8;
    border-bottom: 1px solid #eaeaea;
}

/* Префикс, ссылки и разделители не сжимаются */
.pmv2-breadcrumbs-prefix,
.pmv2-breadcrumbs a,
.pmv2-breadcrumbs__sep {
    flex: 0 0 auto;
}

/* Текущий заголовок занимает остаток строки и обрезается */
.pmv2-breadcrumbs__current {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* =========================
   Нижняя навигация prev / next
========================= */
.pmv2-bottom-navigation{
    display:flex;
    align-items:center;
    margin:20px 0 0 0;
    padding:10px 5px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:5px;
    background:#fff;
}

.pmv2-bottom-navigation__item{
    flex:1;
    display:flex;
    align-items:center;
    gap:8px;
    color:#111;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:opacity .2s ease;
}

.pmv2-bottom-navigation__item:hover{
    opacity:.7;
}

.pmv2-bottom-navigation__prev{
    justify-content:flex-start;
}

.pmv2-bottom-navigation__next{
    justify-content:flex-end;
}

.pmv2-bottom-navigation__divider{
    width:1px;
    height:18px;
    flex-shrink:0;
    background:rgba(0,0,0,.12);
}

.pmv2-bottom-navigation__arrow{
    width:18px;
    height:18px;
    display:block;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
}

/* Левая стрелка */
.pmv2-bottom-navigation__prev .pmv2-bottom-navigation__arrow{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 20 7 12 16 4'/%3E%3C/svg%3E");
}

/* Правая стрелка */
.pmv2-bottom-navigation__next .pmv2-bottom-navigation__arrow{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 20 17 12 8 4'/%3E%3C/svg%3E");
}

/* Пустая сторона навигации */
.pmv2-bottom-navigation__empty{
    flex:1;
}
/* Конец блока нижней навигации */


/* =========================
   SINGLE WIDGETS
========================= */
.pmv2-single-widget{
    margin:20px 0;
}

.pmv2-single-widget img{
    max-width:100%;
    height:auto;

    display:block;
}

/* Важно:
   не ломаем фиксированные размеры рекламы */
.pmv2-single-widget ins,
.pmv2-single-widget iframe{
    max-width:100%;
}
/* Конец блока single widgets */

/* В статьях для H2 добавляем якоря */
/* Без JavaScript */

.celebra-toc{
    background:#f6f7f7;
    border:1px solid #ddd;
    border-radius:5px;
    margin:20px 0;
    overflow:hidden;
}

/* Скрываем checkbox */
.celebra-toc__check{
    display:none!important;
}

/* Шапка */
.celebra-toc__tab{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    cursor:pointer;
    user-select:none;
}

/* Заголовок */
.celebra-toc-title{
    font-size:20px;
    font-weight:700;
    line-height:1.3;
}

/* Рамка кнопки */
.celebra-toc__tab::after{
    content:"";
    width:50px;
    height:50px;
    flex-shrink:0;
    border:1px solid #d8d8d8;
    border-radius:5px;
    background:#f6f7f7;
    display:block;
}

/* Стрелка */
.celebra-toc__tab::before{
    content:"";
    position:absolute;
    right:30px;
    top:50%;
    width:20px;
    height:20px;
    transform:translateY(-50%) rotate(90deg);
    transition:transform .25s ease;
    background-repeat:no-repeat;
    background-position:center;
    background-size:25px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 20 17 12 8 4'/%3E%3C/svg%3E");
}

/* Открыто */
.celebra-toc__check:checked~.celebra-toc__tab::before{
    transform:translateY(-50%) rotate(-90deg);
}

/* Контент закрыт */
.celebra-toc__content{
    display:none;
    padding:0 16px 16px;
}

/* Контент открыт */
.celebra-toc__check:checked~.celebra-toc__content{
    display:block;
}

/* Список */
.celebra-toc-list{
    margin:0;
    padding-left:20px;
    list-style:decimal;
}

/* Ссылки */
.single .entry-content .celebra-toc-list a{
    text-decoration:none!important;
    font-size:16px;
    line-height:1.4;
    font-weight:800!important;
}

/* Пункты */
.celebra-toc-list li{
    margin:8px 0;
    padding:6px 0;
    position:relative;
}

/* Разделители */
.celebra-toc-list li:not(:last-child)::after{
    content:"";
    position:absolute;
    left:6px;
    right:6px;
    bottom:-4px;
    height:1px;
    background:#e0e2e2;
}

/* Иконка копирования */
.celebra-copy{
    display:inline-block;
    width:18px;
    height:18px;
    margin-left:8px;
    position:relative;
}

.celebra-copy::before,
.celebra-copy::after{
    content:"";
    position:absolute;
    width:13px;
    height:13px;
    border-radius:3px;
    border:2px solid;
    background:transparent;
}

.celebra-copy::before{
    top:0;
    left:0;
    border-color:#ff3b30;
    animation:swap1 1.6s infinite;
}

.celebra-copy::after{
    top:4px;
    left:4px;
    border-color:#34c759;
    animation:swap2 1.6s infinite;
}

@keyframes swap1{
    0%{border-color:#ff3b30;}
    50%{border-color:#34c759;}
    100%{border-color:#ff3b30;}
}

@keyframes swap2{
    0%{border-color:#34c759;}
    50%{border-color:#ff3b30;}
    100%{border-color:#34c759;}
}

/* В статьях для H2 добавляем якоря */
