/* Music Vault install prompt — bottom banner + iOS instructions modal */

#mv-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(40, 30, 50, 0.98) 100%);
  border-top: 2px solid #FF9E42;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: mv-slide-up 0.4s ease-out;
  /* Respect iPhone home indicator */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

@keyframes mv-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.mv-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.mv-install-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.mv-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  min-width: 0;
}

.mv-install-text strong {
  font-size: 14px;
  margin-bottom: 2px;
}

.mv-install-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.3;
}

.mv-install-btn {
  background: linear-gradient(135deg, #FF9E42 0%, #FFD365 100%);
  border: none;
  color: #1a1a1a;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mv-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 158, 66, 0.4);
}

.mv-install-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 26px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  line-height: 1;
}

.mv-install-close:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* iOS instructions modal */

#mv-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mv-ios-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mv-ios-content {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(40, 30, 50, 0.98) 100%);
  border: 1px solid rgba(255, 158, 66, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mv-ios-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.mv-ios-content h3 {
  margin: 0 0 10px;
  color: #FF9E42;
  font-size: 18px;
}

.mv-ios-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.mv-ios-steps {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
}

.mv-ios-steps li {
  margin-bottom: 6px;
}

.mv-ios-steps strong {
  color: #FF9E42;
}

/* Hide install prompt entirely once installed */
@media (display-mode: standalone) {
  #mv-install-banner,
  #mv-ios-modal {
    display: none !important;
  }
}
