/* ===========================
   GLOBAL MUSIC PLAYER
   =========================== */

.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 9999;
  box-sizing: border-box;
}

/* Inner container */
.global-player-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

/* Artwork */
.global-player-art {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.global-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Song info */
.global-player-info {
  flex: 1;
  min-width: 0;
}
.global-player-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-player-artist {
  font-size: 12px;
  color: #9aa3ad;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.global-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.global-player-controls button {
  background: #ff4757;
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

/* Progress bar */
.global-player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
}
.global-player-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #ff4757;
}

/* ===========================
   MOBILE OPTIMIZATION
   =========================== */

@media (max-width: 768px) {
  .global-player-inner {
    padding: 8px 10px;
    gap: 8px;
  }

  .global-player-art {
    width: 40px;
    height: 40px;
  }

  .global-player-title {
    font-size: 13px;
  }

  .global-player-artist {
    font-size: 11px;
  }

  .global-player-controls button {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* EXTRA SAFETY — NO HORIZONTAL SCROLL */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}