@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  /* Monochrome palette */
  --bg: #000000;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #ffffff; /* used subtly for focus/hover */
  --bar-height: 108px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  z-index: 1; /* Establish stacking context */
}

/* 1. The Image Layer */
body::before {
  content: "";
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;  
  height: 100%;
  z-index: -2;
  background-image: url('images/banner1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 'fixed' attachment can be jittery on mobile, using position:fixed on pseudo-element is smoother */
}

/* 2. The Dark Overlay Layer (for text readability) */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.7); /* Adjust opacity (0.7) to make image darker or lighter */
  pointer-events: none;
}

/* Hide scrollbars for webkit browsers */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbars for Firefox */
html {
  scrollbar-width: none;
}

b2  {font-weight: 600;}
b3  {font-weight: 800;}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  outline: 2px solid var(--accent);
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.49) 50%, rgba(0,0,0,0) 100%);
}
.topbar__inner {
  height: var(--bar-height);
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.burger {
  width: 40px;
  height: 40px;
  place-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  display: grid;
  justify-self: start;
}
.burger__line {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}
.burger__line + .burger__line { margin-top: 4px; }

.brand {
  text-align: center;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(1.68rem, 2.88vw, 2.64rem);
  justify-self: center;
  color: #fff;
  user-select: none;
  letter-spacing: 0.15em;
  padding: 0;
}

.brand b1 {
  font-weight: 900;
  font-size: clamp(1.80rem, 3vw, 3rem);
  display: inline-block;
  color: #fff; /* fallback, also helps with filters */
  background-image: url('images/hypnagogic-state.webp');
  background-size: 100%;
  background-position: 0 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgb(0, 0, 0);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.267);
  paint-order: stroke fill;

}

.topbar__spacer { width: 40px; height: 40px; }

/* Nav (hidden by default on mobile) */
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--bar-height);
  padding: 8px 16px 16px;
  background: transparent; /* avoid second gradient section */
}
.nav.open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.nav__link {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  background: rgba(0,0,0,0.9);
  transition: all 0.2s ease-out;
}
.nav__link:hover { background: #fff; color: #000; border-color: #fff; }

/* Hero */
.hero {
  position: relative;
  /* Use full viewport height to show off background before content */
  min-height: 100vh; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 64px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 35;
  width: 100%;
  height: 20%; /* how tall the gradient area is */
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, transparent);
}

/* Sections */
.section {
  padding: 64px 16px;
  scroll-margin-top: calc(var(--bar-height) + 8px);
}

#home.section {
  position: relative;
  padding-top: 0;
  margin-top: 50vh;
  z-index: 45;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.section__title {
  padding-left: 12px;
}
/* Pink note block */
.section-note {
  background:#D677F0;
  color: #000;
  border-radius: 16px;
  padding: 16px;
  border: 2px solid #000;
  box-shadow: 0 6px 0 #000;
  width: 90%;
}

#note {font-family: 'Henny Penny', 'Bungee', Impact, Haettenschweiler, 'Arial Black', sans-serif;}
/* Studio section styles */
.studio-description {
  color: var(--text);
}

/* New studio grid and card styles */
.studio-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.studio-card {
  flex: 1 1 320px;
  min-width: 260px;
  background: rgba(255,255,255,0.03); /* delikatnie szarawe tło */
  border: 1px solid rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.studio-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Small muted note used inside studio cards */
.studio-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45); /* slightly less visible */
  margin-top: 8px;
  line-height: 1.4;
}

.studio-cta-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}


/* Collapsible equipment list */
.toggle-equipment {
  margin-top: 12px;
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.toggle-equipment[aria-expanded="true"] {
  color: var(--text);
  border-color: rgba(214,119,240,0.6);
}
.equipment-collapsible {
  list-style: disc;
  margin: 12px 0 0 18px;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.36s ease, opacity 0.3s ease, margin 0.25s ease;
  opacity: 0;
}
.equipment-collapsible.is-open {
  max-height: 800px; /* enough for the lists */
  opacity: 1;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .studio-grid { flex-direction: column; }
  .studio-card { width: 100%; }
}

.studio-description__title {
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: #fff;
  font-weight: 600;
}

.studio-description__text {
  margin: 0 0 16px;
  line-height: 1.6;
  color: var(--text);
}

.studio-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.studio-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.studio-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d677f0;
  font-weight: bold;
}

.studio-cta-btn {
  background-color: #000000;
  height: 4rem;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  padding: 0.75rem;
  color: #d677f0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition-duration: 500ms;
  transform-origin: left;
  cursor: pointer;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 1;
}

.studio-cta-btn::before {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3rem;
  right: 0.25rem;
  top: 0.25rem;
  z-index: 100;
  border-radius: 9999px;
  filter: blur(60px);
  transition-duration: 500ms;
  pointer-events: none;
}

.studio-cta-btn::after {
  content: '';
  position: absolute;
  z-index: 99;
  width: 5rem;
  height: 5rem;
  background-color:#D677F0;
  right: 2rem;
  top: 0.75rem;
  border-radius: 9999px;
  filter: blur(40px);
  transition-duration: 500ms;
  pointer-events: none;
}

/* On hover, allow pseudo-elements to overflow button */
.studio-cta-btn:hover,
.studio-cta-btn:focus-visible {
  overflow: visible;
  border-color: #d677f0;
  color: #d677f0;
  transition-duration: 500ms;
}

/* Move ::before up and left, ::after up and right, with negative vectors in both axes */
.studio-cta-btn:hover::before,
.studio-cta-btn:focus-visible::before {
  transition-duration: 500ms;
  right: 10rem;    /* further left */
  top: 7rem;      /* move towards top, negative vector */
  bottom: auto;    /* ensure no weird interactions */
  filter: blur(16px);
  box-shadow: 20px 20px 20px 30px #d677f0;
}

.studio-cta-btn:hover::after,
.studio-cta-btn:focus-visible::after {
  transition-duration: 500ms;
  filter: blur(30px);
  right: -6rem;    /* further right, negative vector horizontally */
  top: -4rem;      /* move towards top, negative vector vertically */
}

.studio-cta-btn:active {
  transform: scale(0.98);
}

.studio-cta-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(255, 255, 255);
}

/* Ensure the parent section allows overflow (if possible, use a class) */
.section,
.section__grid {
  overflow: visible !important;
  position: relative;
  z-index: auto;
}
.section-note__title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-note__text { margin: 0; }

/* full-width note helper */
.section-note--full {
  margin-top: 8px;
}

@media (min-width: 768px) {
  /* After the title, split content into two columns */
  .section__grid {
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    align-items: start;
    gap: 24px;
  }
  .section__grid--note-right .section__main { order: 1; }
  .section__grid--note-right .section-note { order: 2; justify-self: end; max-width: 420px; }
  .section__grid--note-left .section-note { order: 1; justify-self: start; max-width: 420px; position: sticky; top: 130px; align-self: start;}
  .section__grid--note-left .section__main { order: 2; }
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 12px;
}
.muted { color: var(--muted); }

/* Footer */
.footer {
  padding: 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  text-align: center;
}

/* Before/After Player */
.ab-player { margin-top: 20px; }
.ab-track-select {
  margin-bottom: 16px;
}
.ab-track-selector {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.ab-track-selector:hover {
  border-color: #fff;
}
.ab-track-selector option {
  background: #000;
  color: #fff;
  padding: 8px;
}
.ab-player__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0; /* collapsed by default */
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease-out, min-height 0.4s ease-out;
}
.ab-player.is-active .ab-player__visual {
  min-height: 200px; /* expand when active */
  height: auto;
}
.ab-player:not(.is-active) .ab-player__visual { pointer-events: none; }

/* Keep controls visible even when visualizer is collapsed */
.ab-player__controls {
  position: relative; /* change from absolute to relative */
  bottom: auto;
  left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: rgba(0,0,0,0.8);
  border-radius: 6px;
  margin-top: 16px; /* add some space above controls */
}

#ab-visualizer { width: 100%; height: 100%; display: block; }

.ab-btn { 
  -webkit-tap-highlight-color: transparent; 
  appearance: none; 
  border: 2px solid #fff; 
  outline: none;
  background: #000; 
  color: #fff; 
  padding: 8px 16px; 
  border-radius: 999px; 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  cursor: pointer; 
  transition: all 0.12s ease; 
}
.ab-btn:hover { background: #fff; color: #000; border-color: #000; }
.ab-btn:active { transform: translateY(0); }
.ab-icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.ab-btn.is-playing .ab-icon { transform: scale(0.96); }
.ab-btn__label { font-weight: 600; letter-spacing: 0.02em; }

.ab-crossfade { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.ab-crossfade__label { color: #fff; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.ab-crossfade__slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; border-radius: 0; background: linear-gradient(#fff,#fff) no-repeat center/100% 2px; border: none; position: relative;
}
.ab-crossfade__slider::-webkit-slider-runnable-track { height: 24px; background: transparent; border: 0; }
.ab-crossfade__slider::-moz-range-track { height: 24px; background: transparent; border: 0; }
.ab-crossfade__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #000; box-shadow: none; cursor: pointer; transition: transform 0.1s ease;
}
.ab-crossfade__slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #000; box-shadow: none; cursor: pointer; transition: transform 0.1s ease;
}
.ab-crossfade__slider:active::-webkit-slider-thumb { transform: scale(0.98); }

.ab-note { margin-top: 16px; }

/* Desktop */
@media (min-width: 768px) {
  .nav { display: block; position: static; padding: 0; }
  .topbar__inner {
    grid-template-columns: auto 1fr auto; /* desktop: burger(hidden) | spacer | nav */
  }
  .burger { display: none; }
  .topbar__spacer { display: none; }
  .nav__list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 16px;
    justify-content: end; /* align buttons to the right */
  }
  .brand { justify-self: start; text-align: left; margin-left: 16px; }
}

@media (min-width: 1024px) {
  .brand { margin-left: 24px; }
  .nav__list { padding-right: 24px; }
}

/* Formularz modalny */
.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.form-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.form-modal__content {
  position: relative;
  background: #000000;
  border: 2px solid #ffffff;
  border-radius: 0px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgb(0, 0, 0);
}

/* Hide scrollbar in form modal */
.form-modal__content::-webkit-scrollbar {
  display: none;
}

.form-modal__content {
  scrollbar-width: none;
}

.form-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
  z-index: 10;
}

.form-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.form-container {
  padding: 40px 32px 32px;
}

.form-title {
  font-size: 1.8rem;
  margin: 0 0 24px;
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.form-placeholder {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px dashed #ffffff;
  background: #0a0a0a;
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
}

.form-placeholder__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.form-placeholder__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.application-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  margin-top: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  background: #000;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 1px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffffff;

}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox__input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #D677F0;
}

.form-checkbox__text {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
}

#studio-address {margin-top: 10px;}

.form-submit {
  background-color: #000000;
  height: 4rem;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  padding: 0.75rem;
  color: #d677f0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition-duration: 500ms;
  transform-origin: left;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-submit::before {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3rem;
  right: 0.25rem;
  top: 0.25rem;
  z-index: 10;
  background-color: #000000;
  border-radius: 9999px;
  filter: blur(4px);
  transition-duration: 500ms;
}

.form-submit::after {
  content: '';
  position: absolute;
  z-index: 10;
  width: 5rem;
  height: 5rem;
  background-color: #d677f0;
  right: 2rem;
  top: 0.75rem;
  border-radius: 9999px;
  filter: blur(4px);
  transition-duration: 500ms;
}

.form-submit:hover {
  border-color: #000000;
  transition-duration: 500ms;
  color: #d677f0;
}

.form-submit:hover::before {
  transition-duration: 500ms;
  right: 3rem;
  bottom: -2rem;
  filter: blur(16px);
  box-shadow: 20px 20px 20px 30px #D677F0;
}

.form-submit:hover::after {
  transition-duration: 500ms;
  right: -2rem;
  filter: blur(30px);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 119, 240, 0);
}

@media (max-width: 768px) {
  .section { padding: 12px; }
  .hero { padding-top: 64px; }
  .hero__scroll {z-index: 0; }
  .form-container {
    padding: 24px 20px 20px;
  }
  .form-modal {
    padding: 10px;
  }
}

/* Psychedelic font for button text only (font change only) */
.studio-cta-btn,
.form-submit,
.ab-btn {
  font-family: 'Henny Penny', 'Bungee', Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-weight: 100;
}

/* Additional form styles */
.form-warning {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-help {
  color: #666;
  font-size: 0.875rem;
  padding-bottom: 12px;
  display: block;
  margin-top: -12px;
}

.price-display {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d677f0;
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Language toggle absolute at top right of the header */
.lang-toggle {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 1px solid #fff;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  margin: 0;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  z-index: 1001;
  transition: border-color 0.2s;
}
.lang-toggle:focus, .lang-toggle:hover {
  border-color: #d677f0;
  outline: none;
  background: #222;
}
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.flag-pl {
  background:
    linear-gradient(to bottom, #fff 50%, #dc143c 50%);
}
.flag-us {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, #b22234, #b22234 2.85px, #fff 2.85px, #fff 5.7px);
}
.flag-us::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 8.6px;
  height: 8.6px;
  background: #3c3b6e;
}
.flag-us::after {
  content: '';
  position: absolute;
  left: 1.6px; top: 1.2px;
  width: 6.6px; height: 6.2px;
  background:
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px),
    radial-gradient(circle, #fff 0.4px, transparent 0.45px);
  background-position:
    1px 0px, 3px 0px, 5px 0px,
    2px 1.3px, 4px 1.3px,
    1px 2.6px, 3px 2.6px, 5px 2.6px,
    2px 3.8px, 4px 3.8px,
    1px 5.1px, 3px 5.1px;
  background-size: 0.8px 0.8px;
  background-repeat: no-repeat;
}

/* --- YOUTUBE LOGO CENTERED ON MINIATURA --- */
.yt-minia-wrap {
  position: relative;
  width: 90px; height: 90px;
  display: block;
}
.yt-minia-wrap .yt-logo-link {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  display: flex;
  align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: auto;
  border-radius: 50%;
  background: rgba(17,17,17,0.72);
  box-shadow: 0 2px 18px 0 #2229, 0 0 0 2.5px #fff;
  z-index: 5;
  border: 2.5px solid #fff;
  transition: opacity .19s, box-shadow 0.2s, background 0.2s;
}
.yt-minia-wrap:hover .yt-logo-link,
.yt-minia-wrap .yt-logo-link:focus {
  opacity: 1;
  background: rgba(0,0,0,0.92);
  box-shadow: 0 4px 36px 1px #fa2d2daa, 0 0 0 3px #fff;
  outline: none;
}
.yt-minia-wrap .yt-logo-link svg {
  filter: drop-shadow(0 1px 6px #fff8) drop-shadow(0 0 2px #fff8);
}
.yt-minia-wrap .yt-logo-link:focus svg {
  filter: drop-shadow(0 4px 24px #fff) drop-shadow(0 0 7px #fff) brightness(1.13);
}

/* --- BEAT PLAYER UI THEME --- */
.beat-card .beat-progress {
  background: #141419;
  border: 1px solid #1f2030;
}
.beat-card .progress-inner {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0.55)),
    url('images/hypnagogic-state.webp');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px #ffffff22, 0 0 8px #0008;
}
.beat-card .progress-thumb {
  background: #000;
}
.beat-card .play-btn {
  background: #d677f0;
  color: #000;
  box-shadow: 0 0 0 1px #ffffff22, 0 6px 14px #00000066;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-remove-btn:hover {
  color: #000000;
}
.cart-list {
  list-style: none;
  padding: 0;
  margin-top: 1em;
  margin-bottom: 1em;
  max-height: 200px;
  min-height: 0 !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.cart-list::-webkit-scrollbar {
  display: none;
}

.cart-list__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* --- FIX NA STICKY BEATY --- */


  /* 1. Resetujemy overflow na HTML, żeby przywrócić "window" jako scroller */
  html {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  /* 2. Zostawiamy ukrywanie paska poziomego tylko na body */
  body {
    overflow-x: hidden; 
    overflow-y: visible !important;
  }

  /* 3. Upewniamy się, że rodzice sticky nie blokują widoczności */
  main,
  #main,
  #beaty,
  .section, 
  .container {
    overflow: visible !important;
  }

  /* 4. Konfiguracja samego elementu sticky */
  .section__grid--note-left .section-note {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    top: 12% !important;
    align-self: start !important; /* Ważne: zapobiega rozciąganiu */
    height: auto !important;
    z-index: 20;
  }
  /* 5. Upewniamy się, że kontener siatki pozwala na "pływanie" elementu */
  .section__grid--note-left {
    align-items: start !important;
  }

  @media (max-width: 600px) {
    .cart-list {
      max-height: 100px;
  }
}

/* --- SPOTIFY EMBED MODIFICATIONS --- */

/* Kiedy Spotify jest aktywne, ukrywamy canvas i poświatę */
.ab-player.spotify-mode #ab-visualizer,
.ab-player.spotify-mode .ab-glow {
  display: none !important;
}

/* Kiedy Spotify jest aktywne, pokazujemy iframe */
.ab-player.spotify-mode #spotify-frame {
  display: block !important;
  border-radius: 12px; /* Lekkie zaokrąglenie pasujące do designu */
}

/* Kiedy Spotify jest aktywne, ukrywamy customowe kontrolki (Play, Before/After) */
.ab-player.spotify-mode .ab-player__controls {
  display: none !important;
}

/* Wymuszamy otwarcie kontenera wizualnego w trybie Spotify */
.ab-player.spotify-mode .ab-player__visual { /* Standardowa wysokość embeda Spotify */
  transition: height 0.3s ease;
  opacity: 1;
  pointer-events: auto; 
}

