.drone-shell {
  --glass: rgba(43, 34, 28, .42);
  --ivory: #fff6e7;
  --brass: #c8a15d;
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: clamp(74px, 8.6vh, 104px);
  translate: -50% 0;
  width: min(430px, calc(100vw - 32px));
  height: 76px;
  display: grid;
  grid-template-columns: 1fr 52px 74px;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 9px 17px;
  color: var(--ivory);
  background:
    linear-gradient(115deg, rgba(255,255,255,.16), transparent 25% 70%, rgba(196,151,77,.13)),
    var(--glass);
  border: 1px solid rgba(255, 246, 231, .6);
  border-right-color: rgba(198, 155, 84, .68);
  border-bottom-color: rgba(198, 155, 84, .55);
  border-radius: 999px;
  box-shadow:
    0 18px 45px rgba(31, 19, 12, .22),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(112, 71, 31, .18);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  transition: width .55s cubic-bezier(.22,.8,.24,1), grid-template-columns .55s cubic-bezier(.22,.8,.24,1), background .3s ease;
  isolation: isolate;
}

.drone-shell::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

.glass-light {
  position: absolute;
  inset: 0 auto auto 13%;
  width: 43%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  filter: blur(.2px);
  pointer-events: none;
}

 .drone-shell button, .drone-shell label { color: inherit; }
.drone-shell button { border: 0; font: inherit; cursor: pointer; }

.identity {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.tanpura {
  width: 25px;
  height: 48px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(206,165,94,.17));
}

.copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
  transition: opacity .25s ease, width .5s ease;
}

.copy strong { font-size: 15px; font-weight: 520; letter-spacing: -.01em; }
.copy small { color: rgba(255,246,231,.65); font-size: 11px; letter-spacing: .015em; }

.drone-shell .transport {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(231,190,119,.68);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 16px rgba(22,13,8,.12);
  transition: transform .2s ease, background .2s ease;
}

.transport:hover { transform: scale(1.045); background: rgba(255,255,255,.14); }
.transport svg { width: 20px; height: 20px; fill: currentColor; }
.transport .pause { display: none; }
.drone-shell[data-playing="true"] .transport .play { display: none; }
.drone-shell[data-playing="true"] .transport .pause { display: block; }

.volume {
  width: 70px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  transition: opacity .25s ease, width .5s ease;
}

.volume svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume input {
  width: 42px;
  height: 2px;
  margin: 0;
  accent-color: var(--brass);
  cursor: pointer;
}

.drone-shell[data-playing="true"] .tanpura {
  animation: breathe 3.15s ease-in-out infinite;
}

.drone-shell[data-collapsed="true"] {
  width: 128px;
  grid-template-columns: 47px 52px 0;
  gap: 5px;
  padding-left: 13px;
}

.drone-shell[data-collapsed="true"] .copy,
.drone-shell[data-collapsed="true"] .volume {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(206,165,94,.12)); opacity: .82; }
  45% { filter: drop-shadow(0 0 10px rgba(206,165,94,.38)); opacity: 1; }
}

@media (max-width: 600px) {
  .drone-shell {
    bottom: 138px;
    width: min(326px, calc(100vw - 28px));
    height: 66px;
    grid-template-columns: 1fr 44px 64px;
  }
  .transport { width: 42px; height: 42px; }
  .volume { width: 62px; gap: 4px; }
  .volume input { width: 38px; }
  .copy strong { font-size: 14px; }
  .copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .drone-shell, .drone-shell * { animation: none !important; transition-duration: .01ms !important; }
}

body:not(.ready) .drone-shell { visibility: hidden; }
body:has(#collection:not([hidden])) .drone-shell, body:has(#house-index:not([hidden])) .drone-shell { left: 16px; translate: 0; }
@media(max-width: 900px) { body:has(#collection:not([hidden])) .drone-shell, body:has(#house-index:not([hidden])) .drone-shell { bottom: 18px; } }
