* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: transparent;
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow-x: hidden; /* ⛔️ защищаем от горизонтального скролла */
  touch-action: pan-y; /* ⛔️ запрещаем горизонтальный свайп */
}

.player-container {
  width: 1400px;
  margin: 0 auto;
  padding: 30px;
  background-color: transparent;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow-x: hidden; /* ⛔️ запрещаем горизонтальную прокрутку плеера */
  touch-action: pan-y;
}

.icon-btn {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* убрали hover-эффект если он был */
.icon-btn:hover svg {
  transform: none;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  flex-grow: 1;
}

.artist, .title {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.artist {
  font-weight: bold;
  color: #fff;
}

.title {
  font-weight: normal;
  font-size: 0.9rem;
  color: #ccc;
}

.scroll-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.volume-slider {
  width: 120px;
  accent-color: #ffffff;
  flex-shrink: 0;
  outline: none;
}

.volume-slider:focus {
  outline: none;
  box-shadow: none;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.scrollable {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 10s linear infinite;
}

