/* ========== Ensō / BKCP Embed Player (Stillness aesthetic) ========== */

:root{
  --bg: #0b0b0b;
  --panel: rgba(255,255,255,.03);
  --stroke: rgba(255,255,255,.12);
  --stroke-strong: rgba(255,255,255,.18);

  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.55);
  --muted2: rgba(255,255,255,.42);

  --accent: rgba(255,255,255,.90);
  --accent-weak: rgba(255,255,255,.22);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  background: transparent;
  color: var(--fg);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing: .02em;
}

/* the iframe surface */
.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
}

.shell{
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  overflow: hidden;
}

/* Top brand */
.brand{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 14px 14px 10px;
  user-select:none;
}

.brand-logo{
  height: 50px;              /* adjust if needed */
  width: auto;
  opacity: 0.9;
  display:block;
}


/* Main panel */
.panel{
  padding: 10px 14px 14px;
}

/* Cover */
.coverWrap{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}

.cover{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

/* Waveform / progress area */
.wave{
  margin-top: 12px;
  border-radius: 999px;
  height: 10px;
  border: 1px solid var(--stroke);
  /* background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.09) 0 1px, transparent 2px) 0 0 / 18px 10px,
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02)); */
  position: relative;
  overflow:hidden;
  cursor:pointer;
}

.waveFill{
  position:absolute;
  inset:0 100% 0 0; /* we animate right inset */
  background: linear-gradient(to right, rgba(255,255,255,.18), rgba(255,255,255,.10));
}

.playhead{
  position:absolute;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(255,255,255,.38);
  left: 0%;
  transform: translateX(-0.5px);
  pointer-events:none;
}

/* Transport row */
.transport{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items:center;
  margin-top: 12px;
  padding: 2px 2px 0;
}

.btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}

.btn:hover{ border-color: var(--stroke-strong); background: rgba(255,255,255,.04); }
.btn:active{ transform: scale(.97); }

.icon{
  width: 20px;
  height: 20px;
  display:block;
}
.icon--stroke{
  stroke: rgba(255,255,255,.92);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon--fill{ fill: rgba(255,255,255,.92); }

.titleBlock{
  min-width: 0;
}
.trackTitle{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  line-clamp: 2;
  white-space: normal;          /* allow wrapping */
  overflow: hidden;
  display: -webkit-box;         /* line clamp */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;        /* show up to 2 lines */
}

.clock{
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted2);
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

/* Bottom selector */
.library{
  padding: 14px;
  padding-bottom: 18px;
  border-top: 1px solid var(--stroke);
  
  

}

.libraryTitle{
  text-align:center;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  margin: 2px 0 12px;
}

.grid{
  display:grid;
grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}


.card{
  cursor:pointer;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 6px;
  background: rgba(255,255,255,.00);
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}

.card:hover{
  border-color: var(--stroke);
  background: rgba(255,255,255,.02);
}

.card:active{ transform: scale(.99); }

.card.active{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
}

.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display:block;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}

.cardName{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.84);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* Small screens: 2 cols */
@media (max-width: 480px){
  .wrap{ padding: 10px; }
  .library{ padding: 12px; }
  .grid{ gap: 10px; }
}
@media (max-width: 420px){
  .wrap{ padding: 10px; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn{ width: 42px; height: 42px; }
  .brand-logo{ height: 18px;}
}

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