/* Morph Button Base Styles */
.morph-button {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
}

.morph-button > button {
  position: relative;
  width: 100%;
  border: none;
  background: rgba(20, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 24px 20px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.morph-button > button:hover {
  background: rgba(255, 0, 127, 0.12);
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.25);
  transform: translateY(-2px);
}

.morph-button-trigger-icon {
  font-size: 2rem;
  line-height: 1;
}

.morph-button-trigger-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.morph-button-trigger-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.morph-button.open > button {
  pointer-events: none;
}

.morph-content {
  pointer-events: none;
}

.morph-button.open .morph-content {
  pointer-events: auto;
}

/* Fixed Morph Modal (Expands to center screen) */
.morph-button-fixed,
.morph-button-fixed .morph-content {
  width: 100%;
  min-height: 120px;
}

.morph-button-fixed > button {
  z-index: 1000;
  width: 100%;
  height: 100%;
  transition: opacity 0.1s 0.4s;
}

.morph-button-fixed.open > button {
  opacity: 0;
  transition: opacity 0.1s;
}

.morph-button-fixed .morph-content {
  position: fixed;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s 0.4s, width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
  /* Glassmorphism for the expanded modal */
  background: rgba(10, 8, 18, 0.95);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 0, 127, 0.3);
  border-radius: 28px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 127, 0.2);
}

.morph-button-fixed.open .morph-content {
  opacity: 1;
}

.morph-button-fixed .morph-content > div {
  visibility: hidden;
  height: 0;
  opacity: 0;
  transition: opacity 0.1s, visibility 0s 0.1s, height 0s 0.1s;
  padding: 36px 30px;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 100%;
}

.morph-button-fixed.open .morph-content > div {
  visibility: visible;
  height: 100%;
  opacity: 1;
  transition: opacity 0.3s 0.4s;
}

.morph-button-fixed.active > button {
  z-index: 2000;
}

.morph-button-fixed.active .morph-content {
  z-index: 1900;
}

/* Modal Overlay Background */
.morph-button-modal::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 800;
  width: 100%;
  height: 100%;
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(8px);
  content: '';
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.morph-button-modal.open::before {
  opacity: 1;
  pointer-events: auto;
}

.morph-button-modal.active::before {
  z-index: 1800;
}

.morph-button-modal .morph-content {
  overflow: hidden;
  transition: opacity 0.3s 0.4s, width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
}

.morph-button-modal.open .morph-content {
  top: 50% !important;
  left: 50% !important;
  margin: -275px 0 0 -340px;
  width: 680px;
  height: 550px;
  transition: width 0.4s 0.1s, height 0.4s 0.1s, top 0.4s 0.1s, left 0.4s 0.1s, margin 0.4s 0.1s;
}

/* Easing */
.morph-button .morph-content,
.morph-button.open .morph-content {
  transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

/* Close Button Icon */
.icon-close {
  position: absolute;
  top: 20px;
  right: 22px;
  cursor: pointer;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  z-index: 100;
}

.icon-close:hover {
  background: rgba(255, 0, 127, 0.4);
  color: #fff;
  transform: scale(1.1);
}

/* Custom Dark Player Skins (SoundCloud, Spotify, Apple Music, Video Stream) */
.dark-player-container {
  background: #090610;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  margin-top: 16px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.dark-sc-wrapper {
  background: #07040d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 85, 0, 0.3);
  position: relative;
}

.dark-sc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(90deg, rgba(255, 85, 0, 0.15) 0%, rgba(10, 8, 18, 0.8) 100%);
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}

.dark-sc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff5500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}

.dark-sc-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.dark-sc-title p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #ff5500;
}

/* Hide standard white soundcloud chrome via dark wrapper container filter */
.dark-sc-iframe-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.dark-sc-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.93) hue-rotate(185deg) brightness(0.9) contrast(1.2);
}

/* Mobile Responsiveness for Morph Modals */
@media screen and (max-width: 720px) {
  .morph-button-modal.open .morph-content {
    top: 0% !important;
    left: 0% !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
  }
}

