

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;              /* расстояние между иконкой и текстом */
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

/* Текст */
.sub-btn__text {
  white-space: nowrap;
}

/* Иконка через content */
.sub-btn__icon::before {
  content: "🔔"; /* по умолчанию */
  font-size: 16px;
  line-height: 1;
}

/* Активная подписка */
.sub-btn.is-active {
  background: #0a7d32;
}
.sub-btn.is-active .sub-btn__icon::before {
  content: "🔕"; /* или ✅ если хочешь "подтверждено" */
}
.sub-btn.is-active .sub-btn__text {
  content: "Вы подписаны";
}


/* ===== Хедер: уведомления ===== */
.header-notifications { position: relative; display: inline-block; }

.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: 700; line-height: 18px; text-align: center;
}

.notif-dropdown {
  display: none;
  position: absolute; right: 0; margin-top: 6px; width: 320px;
  background: #111; color: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 9999;
}
.notif-dropdown.is-open { display: block; }
.notif-list { list-style: none; margin: 0; padding: 8px 0; }
.notif-list li { padding: 10px 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; display: block; }
.notif-empty { text-align: center; color: #aaa; }



/* можно в /css/notifications.css */
.notif{position:relative;display:inline-block}
.notif__btn{background:#222;color:#fff;border:0;border-radius:10px;padding:6px 10px;cursor:pointer}
.notif__badge{margin-left:6px;background:#e11;border-radius:999px;padding:2px 6px;font-weight:700}
.notif__badge.is-hidden{display:none}
.notif__head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.notif__mark{background:#333;color:#fff;border:0;border-radius:8px;padding:4px 8px;cursor:pointer}
.notif__list{max-height:55vh;overflow:auto;list-style:none;margin:0;padding:6px}
.notif__item{padding:8px;border-bottom:1px dashed rgba(255,255,255,.1)}
.notif__item small{display:block;opacity:.65;margin-top:4px}
.notif__empty{padding:12px;opacity:.7;text-align:center}



/* Контейнер списка */
.notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;         /* ограничиваем высоту */
  overflow-y: auto;         /* скролл, если много */
}

/* Один элемент */
.notif__item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 1.4;
}

/* Ссылка внутри */
.notif__item a {

  color: #9cf;              /* голубой текст */
  text-decoration: none;
  font-size: 14px;
}

.notif__item a:hover {
  text-decoration: underline;
}

/* Время */
.notif__item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #aaa;
}

/* Когда список пуст */
.notif__empty {
  padding: 14px;
  text-align: center;
  color: #999;
}




/* показываем как блок */
#notif-panel { display: block; }

/* позиционирование и слой */
.notif { position: relative; }
.notif__panel{
  position: absolute;     /* можно сменить на fixed, если обрезается родителем */
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 8px;
  z-index: 9999;          /* поверх хедера/меню */
}

/* если родитель-хедер обрезает overflow — лучше так: */
.header, .site-header, .menu { overflow: visible !important; } /* если можешь */


/* контейнер списка */
.notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* элемент */
.notif__item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
  line-height: 1.4;
  color: #ddd;
}
.notif__item:last-child {
  border-bottom: none;
}

/* основной текст */
.notif__item a {
  color: #9cf;
  text-decoration: none;
  font-weight: 500;
}
.notif__item a:hover {
  text-decoration: underline;
}

/* имя модели выделим жирнее */
.notif__item a[href*="/pornstar/"],
.notif__item a[href*="/channel/"] {
  font-weight: 600;
  color: #fff;
}

/* список новых видео/галерей после двоеточия */
.notif__item a[href*="/video/"],
.notif__item a[href*="/gallery/"] {
  display: inline-block;
  margin-right: 4px;
  font-weight: 500;
  color: #9cf;
}

/* дата/время */
.notif__item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}


/* ===== Mobile / Tablet ===== */
@media (max-width: 768px) {
  /* кнопки — крупнее под палец */
  .notif__btn,
  .notif__mark,
  .notif-btn {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .notif__badge,
  .notif-btn__badge {
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    top: -6px;
    right: -6px;
  }

  /* сам триггер можно оставить слева/справа в хедере */
  .notif { position: static; }

  /* превращаем дропдаун в нижний слайд-панель (sheet) */
  .notif__panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    max-height: 75vh;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    /* анимация появления снизу */
    transform: translateY(110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }

  /* список — прокручиваемая область */
  .notif__list {
    max-height: calc(75vh - 56px); /* вычитаем шапку */
    padding: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notif__head { padding: 10px 8px; }
  .notif__item { padding: 10px 12px; font-size: 15px; }
  .notif__item small { font-size: 12px; }

  /* мини-режим для очень узких устройств */
  .sub-btn { gap: 4px; padding: 8px 10px; font-size: 15px; }
  .sub-btn__icon::before { font-size: 18px; }
}

/* сверхузкие экраны */
@media (max-width: 420px) {
  .notif__panel { max-height: 80vh; }
  .notif__item { font-size: 14px; }
  .notif__btn strong,
  .notif__head strong { font-size: 16px; }
}

/* класс, который показываeт панель на мобилe */
.notif__panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

/* если элемент скрыт атрибутом hidden — прячем полностью */
#notif-panel[hidden] { display: none !important; }


/* Когда панель должна быть показана на мобиле */
@media (max-width: 768px) {
  .notif__panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 75vh;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    background: #111;
    color: #fff;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 9999;
top: auto;
  }

  .notif__panel.is-open {
    transform: translateY(0);
    opacity: 1;
  }
}


.notif__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background .2s;
}
.notif__close:hover {
  background: rgba(255,255,255,.1);
}




/* =========================
   Твои внешние правила (оставил как есть)
   ========================= */


/* было два разных width для .box.users-list.show .list-subscriptions .item — оставляем актуальную версию */
.box.users-list.show .list-subscriptions .item { width: 100%; }

.box.users-list .list-subscriptions .img-holder {
  padding-bottom: 141%;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.3) 0 0 20px;
  border-radius: 10px;
  background-color: #d0d0d0;
  overflow: hidden;
  transition: .3s;
}

.box.users-list .list-subscriptions .item .info-holder {
  transition: background .3s;
  flex-wrap: wrap;
  padding: 11px 10px;
}
.box.users-list .list-subscriptions .item .info-model {
  color: #fff;
  font-size: 13px;
  line-height: 15px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* =========================
   Subscriptions slider (чистая версия)
   ========================= */

/* корневой контейнер */
.subscriptions-slider {
  display: block;
  margin-top: 30px;
  max-width: 100%;
  overflow: hidden;
}

/* контейнер с кнопками/треком/ползунком */
.list-subscriptions {
  position: relative;
  display: grid;
  grid-template-rows: auto 36px; /* дорожка + ползунок */
  row-gap: 8px;
  isolation: isolate;
}

/* кнопки навигации */
.subs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.subs-nav.prev { left: 6px; }
.subs-nav.next { right: 6px; }
.subs-nav:hover { background: rgba(0,0,0,.75); }
.subs-nav:active { transform: translateY(-50%) scale(.98); }
.subs-nav:disabled { opacity: .4; pointer-events: none; }

/* трек */
.subs-track {
  --gap: 12px;
  --card-w: clamp(180px, 32vw, 260px);
  --card-h: auto;
  --screen-w: 100vw; /* обновляется скриптом */

  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  user-select: none;
  cursor: grab;

  scrollbar-width: none;            /* Firefox */
}
.subs-track::-webkit-scrollbar { display: none; } /* WebKit */
.subs-track.dragging { cursor: grabbing; }

/* карточки */
.subs-track .item {
  flex: 0 0 var(--card-w);          /* фикс ширины карточки */
  min-width: 0;
  width: var(--card-w);             /* на случай смешанных контекстов */
  height: var(--card-h);
  overflow: hidden;
  border-radius: 12px;
  display: block;
}

.subs-track .link { display: block; text-decoration: none; color: inherit; }

/* медиа */
.subs-track .img-holder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a0d;
  aspect-ratio: 3 / 4;              /* портрет для моделей */
}
.subs-track .img-holder.channel { aspect-ratio: 16 / 9; } /* горизонт для каналов */

.subs-track .img-holder .img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* базовое — обрезаем лишнее по краям */
  display: block;
}

/* подписи/мета */
.subs-track .title-item,
.subs-track .info-holder {
  padding: 8px 2px 0;
  font-size: 14px;
  line-height: 1.35;
}
.subs-track .title {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* нижний ползунок */
.subs-scrollbar {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  outline: none;
  margin: 0;
}
.subs-scrollbar::-moz-range-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
}
.subs-scrollbar::-webkit-slider-thumb {
  appearance: none;
  width: 56px;
  height: 14px;
  border-radius: 8px;
  background: #2563eb;
  cursor: pointer;
  margin-top: -4px;
}
.subs-scrollbar::-moz-range-thumb {
  width: 56px;
  height: 14px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  cursor: pointer;
}
.subs-scrollbar:hover::-webkit-slider-thumb { filter: brightness(1.05); }
.subs-scrollbar:active::-webkit-slider-thumb { transform: scale(.98); }
.subs-scrollbar:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }

/* горизонтальные карточки — кадр уже */
.subs-track .item:has(.img-holder.channel) {
  flex-basis: calc(var(--card-w) * .75);
  width:      calc(var(--card-w) * .75);
  max-width:  calc(var(--card-w) * .75);
  overflow: hidden;
}
/* если хочешь без обрезки для каналов — сделать contain: */
/* .subs-track .item:has(.img-holder.channel) .img-holder .img { object-fit: contain; } */

/* адаптив */
@media (max-width: 480px) {
  .subs-track { --gap: 10px; --card-w: clamp(160px, 68vw, 220px); }
  .subs-nav { width: 32px; height: 32px; line-height: 32px; font-size: 18px; }
}
@media (min-width: 1024px) {
  .subs-track { --card-w: clamp(220px, 22vw, 280px); }
}
