/* /assets/css/player.css */
#site-audio-player {
  opacity: 0;
  transition: opacity 0.4s ease;
}
#site-audio-player.visible {
  opacity: 1;
}

/* Базовая панель плеера */
  .site-audio-player {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
      background: #0a0a0a;
      color: #fff;
      /* border-top: 1px solid rgba(255,255,255,.08); */
  }

  .site-audio-player .sap-inner {
      display: grid;
      grid-template-columns: 56px 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 10px 12px;
      /* max-width: 1200px;  */
      margin: 0 auto;
  }

  .sap-cover {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

  .sap-meta {
      min-width: 0;
  }

  .sap-title {
      font-weight: 500;
      font-size: 14px;
      color: #f5f5f5;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .sap-title:hover {
    color: #fff;
    text-decoration: underline;
  }
  

.sap-artist {
  font-weight: 500;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

  .sap-meta {
  min-width: 0;             /* 🔹 позволяет обрезать текст внутри flex/grid */
  overflow: hidden;
}

.sap-title,
.sap-artist {
  display: block;            /* важно для text-overflow */
  white-space: nowrap;       /* запрет переноса строк */
  overflow: hidden;          /* скрывает лишний текст */
  text-overflow: ellipsis;   /* добавляет троеточие */
  max-width: 100%;           /* ограничивает ширину родительским контейнером */
}

  .sap-controls {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 10px;
      min-width: 300px;
  }

  .sap-buttons {
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .sap-btn {
      appearance: none;
      border: none;
      background: transparent;
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
  }

  .sap-btn:hover {
      background: rgba(255, 255, 255, .08);
  }

  .sap-progress {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
      font-size: 12px;
      color: #bbb;
  }

  .sap-range {
      width: 100%;
      -webkit-appearance: none;
      background: transparent;
      height: 20px;
  }

  .sap-range::-webkit-slider-runnable-track {
      height: 4px;
      background: #444;
      border-radius: 999px;
  }

  .sap-range::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 12px;
      height: 12px;
      margin-top: -4px;
      border-radius: 50%;
      background: #fff;
  }

  .sap-range:focus {
      outline: none;
  }

  .sap-time {
      width: 42px;
      text-align: center;
  }

  /* Мобильная компоновка */
  @media (max-width: 768px) {
      .site-audio-player .sap-inner {
          grid-template-columns: 48px 1fr auto;
          padding: 8px;
      }

      .sap-cover {
          width: 48px;
          height: 48px;
      }

      .sap-controls {
          min-width: 0;
          grid-template-columns: 1fr;
      }

      .sap-progress {
          display: none;
      }

      /* экономим место; прогресс по тапу на заголовок */
  }

  /* Отступ снизу под тело страницы, чтобы контент не прятался за панелью */
  body {
      padding-bottom: 98px;
  }

  @media (max-width: 768px) {
      body {
          padding-bottom: 90px;
      }
  }


  #site-audio-player .sap-btn img {
    filter: invert(1) brightness(1.3);
  }

/*
.track-cover-wrap {
  position: relative;
  display: inline-block;
}

.play-overlay-btn {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity .25s;
}

.track-cover-wrap:hover .play-overlay-btn {
  opacity: 1;
}

.play-overlay-btn img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}

.play-overlay-btn.playing img {
  content: url('/assets/icons/pause.svg');
}





.track-cover-wrap {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 56px;
}

.track-cover-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.play-overlay-btn {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity .2s ease;
}

.track-cover-wrap:hover .play-overlay-btn {
  opacity: 1;
}

.play-overlay-btn img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

.play-overlay-btn.playing img {
  content: url('/assets/icons/pause.svg');
}
*/