/* Кнопка-иконка сердца */

.action-btn:hover{
  border-color: rgba(255,255,255,.24);
}

.action-btn .btn__icon{
  position:relative;
  width:var(--fav-size);
  height:var(--fav-size);
  display:inline-grid;
  place-items:center;
}

.fav-btn .icon-heart,
.fav-btn .icon-crack{
  width:var(--fav-size);
  height:var(--fav-size);
  fill:currentColor;
  stroke:currentColor;
  transition: transform .2s ease, opacity .15s ease, color .2s ease;
}

/* Базовое сердце серое */
.fav-btn .icon-heart{ color:#9e9e9e; }
.fav-btn .icon-crack{ opacity:0; position:absolute; }

/* Наведение до добавления — сердце подсвечивается */
.fav-btn:not(.is-active):hover .icon-heart{ color: var(--fav-hover); transform: scale(1.06); }

/* Активное (добавлено) — сердце красное */
.fav-btn.is-active .icon-heart{ color: var(--fav-active); }

/* При наведении на активную — показываем трещину и лёгкую анимацию */
.fav-btn.is-active:hover .icon-crack{ opacity:1; }
.fav-btn.is-active:hover .icon-heart{ transform: scale(1.04); }

/* Текст */
.fav-btn__text{
  font-size:.95rem;
  user-select:none;
}

/* Тултип (используем data-tooltip) */

.action-btn[data-tooltip]::after{
  content: attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  background: var(--tt-bg);
  color: var(--tt-color);
  padding: var(--tt-pad);
  border-radius: var(--tt-radius);
  font-size:.85rem;
  line-height:1.2;
  white-space:nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.fav-btn:hover::after{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* Светлая темы — опционально */
/*
:root.light .fav-btn{
  border-color: rgba(0,0,0,.12);
  color:#333;
}
:root.light .fav-btn:hover{
  border-color: rgba(0,0,0,.24);
}
*/

/* Общий контейнер */
.fav-btn{ position:relative; }

/* Счётчик в обычном (не icon-only) режиме — компактный текст справа от иконки */
.fav-btn--with-count .fav-btn__count{
  font-size:.86rem;
  margin-left:.2rem;
  line-height:1;
  opacity:.9;
}

/* В режиме "только иконка" — бейдж поверх сердца */
.fav-btn--icon-only.fav-btn--with-count .fav-btn__icon{
  position:relative;
}
.fav-btn--icon-only.fav-btn--with-count .fav-btn__count{
  position:absolute;
  top:-4px; right:-6px;
  min-width:16px; height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#e53935;
  color:#fff;
  font-size:10px;
  line-height:16px;
  display:inline-grid;
  place-items:center;
  font-weight:600;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}

/* Небольшая анимация при изменении числа */
.fav-btn__count.is-updated{
  animation: favCountPop .25s ease;
}
@keyframes favCountPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* ===== СЧЁТЧИК ИЗБРАННОГО ===== */

/* Вариант 1: иконка + текст + число (число рядом с иконкой) */
.fav-btn--with-count .fav-btn__count{
  font-size:.86rem;
  margin-left:.25rem;
  line-height:1;
  opacity:.9;
  font-variant-numeric: tabular-nums;
}

/* Вариант 2: только иконка — показываем бейдж поверх сердца */
.action-btn .btn__icon{
  position:relative;
}
.fav-btn--icon-only.fav-btn--with-count .fav-btn__count{
  position:absolute;
  top:-4px; right:-6px;
  min-width:16px; height:16px;
  padding:0 4px;
  border-radius:999px;
  background: var(--fav-active, #e53935);
  color:#fff;
  font-size:10px;
  line-height:16px;
  display:inline-grid;
  place-items:center;
  font-weight:600;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  z-index:1;
}

/* Небольшой pop-анимация при обновлении числа */
.fav-btn__count.is-updated{
  animation: favCountPop .25s ease;
}
@keyframes favCountPop{
  0%{transform:scale(1)}
  50%{transform:scale(1.15)}
  100%{transform:scale(1)}
}

/* (опционально) скрывать ноль: добавь data-hide-zero="1" на кнопку */
.action-btn[data-hide-zero="1"] .fav-btn__count[data-count="0"]{
  display:none;
}

.box .item .action-btn {
    --fav-size: 22px;
    --fav-gap: .4rem;
    --fav-bg: transparent;
    --fav-color: #aaa;
    --fav-hover: #e53935;
    --fav-active: #e53935;
    --tt-bg: #111;
    --tt-color: #fff;
    display: inline-flex
;
    align-items: center;
    gap: var(--fav-gap);
    padding: .35rem .6rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: var(--fav-bg);
    color: var(--fav-color);
    cursor: pointer;
    line-height: 1;
    position: relative;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.box .item .action-btn {
    position: absolute;
    z-index: 3;
	  -webkit-transition: opacity 0.3s, visibility 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, visibility 0.3s, -webkit-transform 0.3s;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s, -webkit-transform 0.3s;
    opacity: 0;
    visibility: hidden;

}

.box .item .fav-btn {
right: 60px;
top: 10px;
}

.box .item .wl-btn {
right: 100px;
top: 10px;
}


.box .item .action-btn[data-tooltip] {
    --tt-pad: .35rem .5rem;
    --tt-radius: .5rem;
}

.box .item .action-btn:hover {
    border-color: rgba(255, 255, 255, .24);
}



.item:hover .action-btn, .rating-info .action-btn, .subscribe_holder .action-btn {
opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.model-holder .action-btn {
    opacity: 1;
    visibility: visible;
}




.btn__icon {
    font-size: 22px;
}
 .rating-info .btn__icon {
    font-size: 42px;
}



.rating-info .fav-btn .icon-heart, .rating-info .fav-btn .icon-crack
 {
    width: 60px;
    height: 60px;
    fill: rgb(245 239 239);
    stroke: rgb(31, 31, 31);
    transition: transform .2s ease, opacity .15s ease, color .2s ease;
}

/* Сам тултип */
.action-btn[data-tooltip]::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  background: #111;
  color: #fff;
  padding: .35rem .5rem;
  border-radius: .5rem;
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .18s ease, transform .18s ease;
} 

/* Маленький треугольник (опционально) */
.action-btn[data-tooltip]::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111; /* стрелка вверх */
  opacity: 0;
  z-index: 10000;
  transition: opacity .18s ease;
}

/* Показ по hover и по клавиатурному фокусу */
.action-btn:hover::after,
.action-btn:focus-visible::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fav-btn:hover::before,
.fav-btn:focus-visible::before,
.wl-btn:hover::before,
.wl-btn:focus-visible::before{
  opacity: 1;
}



.fav-btn__icon::before{
  content:"💛";           /* по умолчанию — белое */
  display:inline-block;

}

/* hover: красное */
.fav-btn:hover .fav-btn__icon::before{ content:"❤️"; }

/* в избранном: красное */
.fav-btn.is-active .fav-btn__icon::before{ content:"❤️"; }

/* в избранном + hover: разбитое */
.fav-btn.is-active:hover .fav-btn__icon::before{ content:"💔"; }

/* анимации */
@keyframes heart-pop { 0%{transform:scale(.85)} 60%{transform:scale(1.12)} 100%{transform:scale(1)} }
@keyframes heart-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* лёгкий пульс на hover, когда не активно */
.fav-btn:not(.is-active):hover .fav-btn__icon{ animation: heart-pulse .6s ease; }

/* «поп» при смене состояния (см. JS ниже добавляет класс на 250 мс) */
.fav-btn.is-changing .fav-btn__icon{ animation: heart-pop .28s ease; }

/* доступность: без движения — без анимаций */
@media (prefers-reduced-motion: reduce){
  .fav-btn__icon{ transition:none; }
  .fav-btn:not(.is-active):hover .fav-btn__icon,
  .fav-btn.is-changing .fav-btn__icon{ animation:none; }
}

/* опционально: стиль бейджа счётчика рядом с иконкой */
.fav-btn__count{
  margin-left:.35rem; font-size:.9em; line-height:1; padding:.1rem .35rem;
  border-radius:.6rem; background:#e9efff; border:1px solid #cfdafe; display:inline-block;
}
.fav-btn__count.is-updated{ animation: heart-pop .26s ease; }





.wl-btn:active { transform:translateY(1px); }







/* именно псевдо-элемент рисует эмодзи и получает свой размер */
.wl-btn__icon::before{
  content:"🕒";
       /* <— реальный размер иконки */
}



/* состояния */
.wl-btn:hover .wl-btn__icon::before{ content:"⏰"; }
.wl-btn.is-active .wl-btn__icon::before{ content:"⏰"; }
.wl-btn.is-active:hover .wl-btn__icon::before{ content:"🔕"; }



.notif-bell{
  position:relative; background:transparent; border:1px solid #dfe4ec;
  border-radius:10px; padding:.35rem .6rem; cursor:pointer;
}
.notif-badge{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px;
  font-size:12px; line-height:18px; text-align:center;
  color:#fff; background:#ef4444; border-radius:999px; padding:0 5px;
}
.notif-dropdown{
  position:absolute; right:0; margin-top:8px; width:320px; max-height:60vh; overflow:auto;
  background:#fff; color:#111; border:1px solid #e5e7eb; border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.12); z-index:1000;
}
.notif-item{ padding:10px 12px; border-bottom:1px solid #f1f5f9; }
.notif-item.unread{ background:#f8fafc; }
.notif-item a{ color:#0d6efd; text-decoration:none; }


/* база для action-btn__icon у тебя уже есть, добавим состояние для подписки */
.action-btn--sub .action-btn__icon{ position:relative; width:1em; height:1em; font-size:0; display:inline-flex; align-items:center; justify-content:center; }
.action-btn--sub .action-btn__icon::before{ content:"🔕"; font-size:22px; transition:transform .18s ease; } /* не подписан — «колокольчик без звука» */
.action-btn--sub:hover .action-btn__icon::before{ content:"🔔"; }     /* hover — «подписаться» */
.action-btn--sub.is-active .action-btn__icon::before{ content:"🔔"; } /* подписан — колокольчик */
.action-btn--sub.is-active:hover .action-btn__icon::before{ content:"🔕"; } /* hover по активной — «отписаться» */

/* лёгкая анимация, если используешь класс is-changing */
.action-btn--sub.is-changing .action-btn__icon{ animation: sub-pop .28s ease; }
@keyframes sub-pop{ 0%{transform:scale(.85)} 60%{transform:scale(1.12)} 100%{transform:scale(1)} }


/* Кнопка */
.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.notif-btn:hover {
  background: #333;
}

/* Иконка */
.notif-btn__icon::before {
  content: "🔔";
  font-size: 18px;
  line-height: 1;
}

/* Счётчик */
.notif-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: red;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
}

/* Выпадашка */
.notif-dropdown {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 6px;
  width: 280px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  z-index: 9999;
}
.notif-dropdown.is-open {
  display: block;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.notif-list li {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.notif-list li:last-child {
  border-bottom: none;
}
.notif-list a {
  color: #fff;
  text-decoration: none;
}
.notif-empty {
  text-align: center;
  color: #aaa;
}













/* ===========================
   ЗОЛОТАЯ КНОПКА ПОДПИСКИ
   Разметка:
   <button class="action-btn sub-btn [sub-btn--sm|--lg] [sub-btn--icon-only] [is-active]">
     <span class="text">Подписаться</span>
     <span class="btn_info">
       <span class="icon-user"></span>   /* или .icon-star / .icon-bell / .icon-heart / .icon-plus / .icon-check */
       <div class="button-info">123</div>
     </span>
   </button>
   =========================== */

/* ХОЛДЕР */
.container .subscribe_holder{
  display:flex;
  justify-content:flex-end;
  margin:16px 0 12px;
}

/* БАЗА КНОПКИ (gold theme) */
.subscribe_holder .sub-btn,
.subscribe_holder .action-btn.sub-btn{
    --gold-1: #f6e27a;
    --gold-2: #d4af37;
    --gold-3: #b8860b;
    --bg-1: #d4af37;
    --bg-2: #f6e27a;
    --text: #111;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, .55);
    color: var(--text);
    background: linear-gradient(180deg, rgba(246, 226, 122, .18) 0%, rgba(212, 175, 55, .12) 100%), linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
    /* font: 600 14px / 1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
    letter-spacing: .2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .32), 0 6px 18px rgba(212, 175, 55, .22);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
	    overflow: hidden;
}
/* Ховер / Фокус */
.subscribe_holder .sub-btn:hover,
.subscribe_holder .sub-btn:focus-visible{
  border-color:var(--gold-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 2px rgba(246,226,122,.22),
    0 10px 28px rgba(212,175,55,.32);
  outline:none;
}

/* Нажатие */
.subscribe_holder .sub-btn:active{
  transform:translateY(1px) scale(0.996);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.35),
    0 0 0 2px rgba(246,226,122,.18);
}

/* Активная подписка */
.subscribe_holder .sub-btn.is-active{
  background:
    linear-gradient(180deg, rgba(246,226,122,.30) 0%, rgba(212,175,55,.26) 100%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-color:var(--gold-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 2px rgba(246,226,122,.18),
    0 12px 34px rgba(212,175,55,.38);
}

/* Шимер-блик */
.subscribe_holder .sub-btn::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:13px;
  background:linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,.07) 28%,
    rgba(255,255,255,.2) 44%,
    rgba(255,255,255,.07) 60%,
    transparent 76%);
  opacity:0; 
  transform:translateX(-35%);
  pointer-events:none;
      right: -200px;
}
.subscribe_holder .sub-btn:hover::after{ opacity:1; animation:goldShimmer 950ms linear both; }
@keyframes goldShimmer{
  from{ transform:translateX(-40%); }
  to  { transform:translateX(40%); }
}

/* Текст */
.subscribe_holder .sub-btn .text{
  white-space:nowrap;
  font-weight:700;
}



/* Бейдж-счётчик (золотая капсула) */
.subscribe_holder .sub-btn .button-info {
    min-width: 22px;
	    padding: 10px 18px;
    padding: 4px 8px;

}
.subscribe_holder .sub-btn .button-info.is-updated{
  animation:badgePop .25s ease;
}
@keyframes badgePop{
  0%{ transform:scale(.92); }
  60%{ transform:scale(1.08); }
  100%{ transform:scale(1); }
}

/* Варианты размеров */
.subscribe_holder .sub-btn.sub-btn--sm{ padding:8px 12px; font-size:13px; }
.subscribe_holder .sub-btn.sub-btn--lg{ padding:12px 16px; font-size:16px; }

/* Только иконка */
.subscribe_holder .sub-btn.sub-btn--icon-only{ padding:10px 12px; }
.subscribe_holder .sub-btn.sub-btn--icon-only .text{ display:none; }

/* Состояние disabled / loading */
.subscribe_holder .sub-btn[disabled],
.subscribe_holder .sub-btn.is-loading{
  opacity:.7; cursor:default;
}
.subscribe_holder .sub-btn.is-loading::before{
  content:"⏳";
  position:absolute; left:10px;
  animation:spin 1s linear infinite;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.3));
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===========================
   ИКОНКИ через content (эмодзи)
   =========================== */
.subscribe_holder .sub-btn .icon-user::before,
.subscribe_holder .sub-btn .icon-star::before,
.subscribe_holder .sub-btn .icon-bell::before,
.subscribe_holder .sub-btn .icon-heart::before,
.subscribe_holder .sub-btn .icon-plus::before,
.subscribe_holder .sub-btn .icon-check::before{
  display:inline-block;
  font-size:18px;
  line-height:1;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.35));
}

/* 👤 человек — базовая иконка подписки */
.subscribe_holder .sub-btn .icon-user::before{ content:"🤵"; }

/* ⭐ звезда — избранное */
.subscribe_holder .sub-btn .icon-star::before{ content:"⭐"; }

/* 🔔 колокольчик — уведомления */
.subscribe_holder .sub-btn .text .lbl::before {
    content: "🔔";
    grid-area: 1 / 2;
    transition: opacity .18s ease;
    white-space: nowrap;
}

/* 🔔 колокольчик — уведомления */
.subscribe_holder .sub-btn .text .lbl-hover::before {
    content: "🔕";
    grid-area: 1 / 2;
    transition: opacity .18s ease;
    white-space: nowrap;
}

/* ❤️ сердце */
.subscribe_holder .sub-btn .icon-heart::before{ content:"❤️"; }

/* ➕ плюс — подписаться (альтернатива) */
.subscribe_holder .sub-btn .icon-plus::before{ content:"➕"; }

/* ✅ галочка — подписан */
.subscribe_holder .sub-btn .icon-check::before{ content:"✅"; }



/* ===========================
   ПОДЧИСТКА старых правил action-btn,
   чтобы не конфликтовали
   =========================== */
.subscribe_holder button.action-btn{
  border:none; /* убираем прежние бордеры, мы задаём свои в .sub-btn */
  background:none;
  padding:0;
}


/* Блок: иконка + бейдж */
.subscribe_holder .sub-btn .btn_info {
    /* gap: 8px; */
    display: flex
;
    align-items: center;
    /* justify-content: flex-start; */
    /* flex-wrap: nowrap; */
    /* color: #fefefe; */
    padding: 10px 18px;
    font-size: 18px;
    padding: 10px 25px;
    /* color: #000000; */
    color: #fefefe;
    background: #e6184e;
}

.subscribe_holder .text {
  font-size: 18px;
  padding: 10px 25px;

}


.container .subscribe_holder {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0 -15px;
    margin: 15px 0 15px;
}

/* Слои текста: основной + hover */
.sub-btn .text{
  display:grid;
  position:relative;
}
.sub-btn .text .lbl,
.sub-btn .text .lbl-hover{
  grid-area:1 / 1;          /* оба слоя в одной ячейке */
  transition:opacity .18s ease;
  white-space:nowrap;
}
.sub-btn .text .lbl-hover{ opacity:0; }

/* Показывать "Отписаться" только когда уже подписан и есть hover/focus */
.sub-btn.is-active:hover .text .lbl,
.sub-btn.is-active:focus-visible .text .lbl{
  opacity:0;
}
.sub-btn.is-active:hover .text .lbl-hover,
.sub-btn.is-active:focus-visible .text .lbl-hover{
  opacity:1;
}


.album .fav-btn {
    left: 60px;
    top: 40px;
    right: auto;
}

