/* ============================================================
   Basstion Sound - cookie consent layer (2026-11)
   Отдельный слой, разметка: #bs-ck-banner + #bs-ck-modal перед </body>.
   Логика: js/cookie.js, ключ localStorage bs_cookie_consent.
   Откат: снять <link> + <script> + два блока разметки.
   Не применяется в OBS-оверлее (js/cookie.js выходит по ?overlay).
   ============================================================ */

#bs-ck-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(130%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  pointer-events: none;
}
#bs-ck-banner.is-show { transform: translateY(0); opacity: 1; pointer-events: auto; }
#bs-ck-banner.is-hide { transform: translateY(130%); opacity: 0; pointer-events: none; }

/* под левым меню Liquid: баннер центрируется по контентной области */
@media (min-width: 1100px) {
  html.lg #bs-ck-banner { left: calc(var(--side, 0px) + 16px); }
}

.bs-ck-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(11, 7, 24, .82);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  backdrop-filter: blur(34px) saturate(160%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.bs-ck-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ec4899 20%, #a855f7 50%, #6366f1 80%, transparent);
  opacity: .75;
}
.bs-ck-card::after {
  content: '';
  position: absolute;
  left: -20%; right: -20%; bottom: -90px;
  height: 190px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .20), transparent 70%);
  pointer-events: none;
}

.bs-ck-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 10px 26px rgba(168, 85, 247, .38), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.bs-ck-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.6; }

.bs-ck-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.bs-ck-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.bs-ck-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  color: #f9a8d4;
  background: rgba(236, 72, 153, .14);
  border: 1px solid rgba(236, 72, 153, .28);
}
.bs-ck-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}
.bs-ck-text a {
  color: #f9a8d4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(236, 72, 153, .45);
}
.bs-ck-text a:hover { color: #fff; text-decoration-color: #ec4899; }

.bs-ck-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.bs-ck-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 17px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.bs-ck-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 10px 26px rgba(168, 85, 247, .34), 0 1px 0 rgba(255, 255, 255, .22) inset;
}
.bs-ck-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(168, 85, 247, .48), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.bs-ck-btn--ghost {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.bs-ck-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.bs-ck-btn--link {
  padding: 11px 10px;
  color: rgba(255, 255, 255, .45);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.bs-ck-btn--link:hover { color: #fff; }
.bs-ck-btn:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }

/* ---------- settings modal ---------- */
#bs-ck-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#bs-ck-modal.is-open { display: flex; }
.bs-ck-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .64);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bs-ck-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(10, 6, 20, .97);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
  transform: translateY(14px) scale(.975);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
#bs-ck-modal.is-open .bs-ck-box { transform: none; opacity: 1; }
.bs-ck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-ck-h {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.bs-ck-x {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bs-ck-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bs-ck-sub { margin: 6px 0 18px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .45); }
.bs-ck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
}
.bs-ck-row.is-locked { opacity: .62; }
.bs-ck-row b { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.bs-ck-row span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .45); }
.bs-ck-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background .25s, box-shadow .25s;
}
.bs-ck-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.bs-ck-switch.is-on { background: linear-gradient(135deg, #ec4899, #a855f7); border-color: transparent; box-shadow: 0 6px 18px rgba(168, 85, 247, .4); }
.bs-ck-switch.is-on::after { transform: translateX(18px); }
.bs-ck-switch.is-locked { cursor: not-allowed; }
.bs-ck-foot { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.bs-ck-foot .bs-ck-btn { flex: 1; min-width: 130px; }
.bs-ck-policy { margin-top: 12px; text-align: center; }
.bs-ck-policy a { font-size: 12px; color: rgba(255, 255, 255, .35); text-decoration: underline; text-underline-offset: 3px; }
.bs-ck-policy a:hover { color: rgba(255, 255, 255, .7); }

@media (max-width: 980px) {
  #bs-ck-banner { left: 12px; right: 12px; bottom: 12px; }
  .bs-ck-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 18px;
  }
  .bs-ck-icon { grid-column: 1; grid-row: 1; }
  .bs-ck-main { grid-column: 2; grid-row: 1; }
  .bs-ck-title { font-size: 15px; }
  .bs-ck-actions { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .bs-ck-actions .bs-ck-btn { width: 100%; }
  .bs-ck-actions .bs-ck-btn--link { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .bs-ck-actions { grid-template-columns: 1fr; }
  .bs-ck-actions .bs-ck-btn--link { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #bs-ck-banner, .bs-ck-box, .bs-ck-switch, .bs-ck-switch::after { transition-duration: .01ms; }
}
