/* =====================================================
   CUTOUTS — custom styles
   Black & white, accordion, blue noise textures
   ===================================================== */

/* --- Base ------------------------------------------ */
body {
  background-color: #000;
  color: #808080;
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

main {
  padding-bottom: 0;
}

/* --- Site header ------------------------------------ */
#site-header {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  letter-spacing: 0.35em;
}

#site-header h1 {
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: #808080;
  letter-spacing: 0.3em;
}

/* --- Author description ----------------------------- */
#author-description {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
  color: #888;
  font-size: 1rem;
  line-height: 1.7;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
}

/* --- Player section --------------------------------- */
#player-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

#player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
}

#player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  user-select: none;
}

#yt-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#yt-player[hidden] {
  display: none;
}

/* --- Accordion -------------------------------------- */
#accordion {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.artist-bar {
  border-top: 1px solid #222;
}

.artist-bar:last-child {
  border-bottom: 1px solid #222;
}

/* --- Bar header (collapsed state) ------------------- */
.artist-bar__header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #808080;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}

/* Noise texture overlay */
.artist-bar__header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: 200px 200px;
  background-repeat: repeat;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.2s;
}

.artist-bar.is-active .artist-bar__header::before,
.artist-bar__header:hover::before {
  opacity: 0.28;
}

.artist-bar__name {
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}

.artist-bar.is-active .artist-bar__name {
  color: #fff;
}

/* --- Blue noise patterns per artist (SVG feTurbulence) --- */
/* Each seed produces a unique grain texture */

.artist-bar--pavel-korshunov .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--lizaveta-loban .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--mari-sharp .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--ivan-kolosov .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--kuliko .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--sny-plakuchey-ivy .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.artist-bar--mila-korshunova .artist-bar__header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* --- Expanded panel --------------------------------- */
.artist-bar__panel {
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid #1c1c1c;
}

.artist-bar__panel[hidden] {
  display: none;
}

.artist-bar__name-large {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.artist-bar__social {
  display: inline-block;
  color: #666;
  font-size: 0.8rem;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.artist-bar__social:hover {
  color: #fff;
}

/* --- Track buttons ---------------------------------- */
.artist-bar__tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.track-btn {
  background: transparent;
  border: 1px solid #444;
  color: #999;
  padding: 0.45rem 1rem;
  font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.track-btn:hover {
  border-color: #aaa;
  color: #fff;
}

.track-btn.is-active {
  border-color: #fff;
  color: #fff;
  background: #111;
}

/* --- Responsive ------------------------------------- */
@media (max-width: 600px) {
  .artist-bar__header {
    padding: 0.85rem 1rem;
  }

  .artist-bar__panel {
    padding: 1.2rem 1rem 1.5rem;
  }

  #player-section {
    padding: 0 0.5rem;
  }

  #accordion {
    padding: 0 0.5rem 4rem;
  }
}
