.olone-music {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 239, 252, 0.96);
}

.olone-music svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.olone-music__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.olone-music__head svg {
  color: #7fb4ff;
}

.olone-music__actions {
  display: flex;
  gap: 6px;
}

.olone-music__my {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px 0 12px;
  white-space: nowrap;
  border: 1px solid rgba(110, 160, 255, 0.45);
  border-radius: 12px;
  background: rgba(70, 120, 230, 0.2);
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.olone-music__my:hover {
  background: rgba(70, 120, 230, 0.32);
}

.olone-music__icon-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(210, 223, 244, 0.8);
  cursor: pointer;
}

.olone-music__actions .olone-music__icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.olone-music__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.olone-music__icon-btn.is-on {
  color: #7fb4ff;
}

.olone-music__heart.is-on svg {
  fill: currentColor;
}

.olone-music__icon-btn.is-one {
  position: relative;
}

.olone-music__icon-btn.is-one::after {
  content: "1";
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 700;
}

.olone-music__player {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.olone-music__player.hidden {
  display: none;
}

.olone-music__now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.olone-music .olone-music__cover {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
}

.olone-music__meta {
  flex: 1;
  min-width: 0;
}

.olone-music__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.olone-music__artist {
  overflow: hidden;
  color: rgba(210, 223, 244, 0.65);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.olone-music__progress,
.olone-music__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(210, 223, 244, 0.7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.olone-music input[type="range"] {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #6fb0ff;
  cursor: pointer;
}

.olone-music__controls .olone-music__icon-btn {
  width: 30px;
}

.olone-music__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.olone-music__play {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid #6fb0ff;
  border-radius: 50%;
  background: rgba(70, 120, 230, 0.18);
  color: #fff;
  cursor: pointer;
}

.olone-music__play:hover {
  background: rgba(70, 120, 230, 0.34);
}

.bubble-audio:has(.bubble-audio__save) .bubble-audio__body {
  min-width: 150px;
}

.bubble-audio__save {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}

.bubble-audio__save svg {
  width: 16px;
  height: 16px;
}

.bubble-audio__save:hover {
  background: rgba(255, 255, 255, 0.16);
}

.bubble-audio__save.is-saved {
  color: #7fd6a8;
}

.olone-music-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(620px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 32px));
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(132, 170, 224, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 25, 44, 0.98), rgba(9, 18, 34, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.56);
  color: #eef2ff;
}

.olone-music-modal svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.olone-music-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.olone-music-modal__head h2 {
  margin: 0;
  font-size: 20px;
}

.olone-music-modal__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.olone-music-modal__search {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(150, 175, 225, 0.22);
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.72);
  color: rgba(210, 223, 244, 0.7);
}

.olone-music-modal__search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #eef2ff;
  font-size: 14px;
  outline: none;
}

.olone-music-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(150, 175, 225, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef2ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.olone-music-modal__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.olone-music-modal__btn--main {
  border-color: transparent;
  background: #4f74dd;
}

.olone-music-modal__btn--main:hover {
  background: #5c81ea;
}

.olone-music-modal__status {
  margin: 0;
  color: rgba(210, 223, 244, 0.8);
  font-size: 13px;
}

.olone-music-modal__status.hidden {
  display: none;
}

/* Upload progress in «Моя музыка». */
.olone-music-progress__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olone-music-progress {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.olone-music-progress i {
  display: block;
  width: 2%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4c7dff, #8b5cf6);
  transition: width 0.25s ease;
}

.olone-music-modal__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.olone-music-modal__empty {
  padding: 48px 20px;
  color: rgba(210, 223, 244, 0.65);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.olone-music-modal__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}

.olone-music-modal__row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.olone-music-modal__row.is-current {
  background: rgba(90, 125, 230, 0.18);
}

.olone-music-modal__state {
  display: inline-flex;
  width: 20px;
  color: rgba(210, 223, 244, 0.8);
}

.olone-music-modal__state svg {
  width: 16px;
  height: 16px;
}

.olone-music-modal .olone-music-modal__cover {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
}

.olone-music-modal__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.olone-music-modal__title,
.olone-music-modal__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.olone-music-modal__title {
  font-size: 14px;
  font-weight: 600;
}

.olone-music-modal__artist {
  color: rgba(210, 223, 244, 0.65);
  font-size: 12px;
}

.olone-music-modal__time {
  color: rgba(210, 223, 244, 0.65);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* The player lives in the left panel on a computer. On a phone that panel is off screen while a chat is open. */
@media (min-width: 768px) {
  #oloneGlobalAudioPlayer {
    display: none !important;
  }

  body.olone-global-audio-on {
    padding-bottom: 0;
  }
}
