.btn-group a {
  margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #d48b3b;
    border: 1px solid #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tingbox {
  display: none;
}

/* 播放器整体自适应宽度 */
.tingplaybox {
  min-width: 0;
  width: 100%;
  margin: 15px auto;
  box-sizing: border-box;
  padding: 16px 12px;
  background-color: #fdf6e3;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 主要内容自适应布局 */
.ting-img {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ting-img img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* 播放/暂停按钮 */
.ting-play,
.ting-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e1d6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ting-play {
  margin-left: auto;
}

.ting-play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid #999;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateX(2px);
}

.ting-pause::before {
  content: "";
  width: 14px;
  height: 18px;
  border-left: 4px solid #999;
  border-right: 4px solid #999;
}

/* 文字、进度条等样式 */
.ting-con {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 5px;
}

.ting-title {
  font-size: 18px;
  color: #444;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ting-s01 {
  color: #666;
  font-size: 16px;
}

.ting-play-cur {
  position: relative;
  width: 100%;
  margin: 8px 0 12px 0;
  height: 4px;
  background: #e5e1d6;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.ting-cur {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #999;
  border-radius: 2px;
}

.ting-time {
  font-size: 14px;
  color: #777;
  margin-left: auto;
  margin-bottom: 8px;
}

/* 音量控制 */
.ting-vol {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ting-jia,
.ting-jian {
  background: #e5e1d6;
  color: #777;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* 自动播放按钮 */
.ting-autoplay {
  color: #777;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  user-select: none;
}

/* 响应式：手机端适配 */
@media (max-width: 640px) {
  .tingplaybox {
    padding: 12px 10px;
    margin: 10px auto;
  }

  .ting-img {
    gap: 10px;
  }

  .ting-img img {
    width: 52px;
    height: 52px;
  }

  .ting-play,
  .ting-pause {
    width: 36px;
    height: 36px;
  }

  .ting-title {
    font-size: 16px;
  }

  .ting-s01 {
    font-size: 14px;
  }

  .ting-time {
    font-size: 12px;
  }

  .ting-jia,
  .ting-jian {
    padding: 1px 8px;
    font-size: 16px;
  }
}

.tingtip {
  display: none;
}

.i {
  display: none;
}

/* 音量按钮容器 */
.ting-muted {
  position: relative;
  width: auto;
  min-width: 60px;
  height: 24px;
  background: #e5e1d6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px 10px;
  font-size: 14px;
  color: #777;
  user-select: none;
  text-align: center;
}

/* 隐藏原始元素 */
.ting-v-01, .ting-v-02 {
  display: none;
}

/* 音量状态 - 默认显示"音量" */
.ting-muted::after {
  content: "音量";
}

/* 静音状态 - 显示"静音" */
.ting-muted.cur {
  color: #e74c3c; /* 红色文字 */
}

.ting-muted.cur::after {
  content: "静音";
}

/* 悬停效果 */
.ting-muted:hover {
  background: #d9d0bc;
}

/* 禁止文本选择 */
.ting-muted, .ting-v-01, .ting-v-02 {
  user-select: none;
  -webkit-user-select: none;
}

/* 悬浮播放器整体样式 */
.ting-flow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 6px 12px;
  min-width: 180px;
  height: 40px;
  border: 1px solid #f2f2f2;
  font-size: 0; /* 隐藏按钮文字 */
}

/* 按钮基础样式 */
.ting-flow .tf-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  transition: all 0.2s;
}

.ting-flow .tf-btn:hover {
  background: #e5e5e5;
}

/* 图片按钮样式 */
.ting-flow .tf-btn.i {
  overflow: hidden;
  border-radius: 50%;
}

.ting-flow .tf-btn.i img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

/* 上一首按钮 - 双三角形 */
.ting-flow .tf-btn.f {
  position: relative;
}

.ting-flow .tf-btn.f::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-right: 8px solid #555;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  left: 6px;
}

.ting-flow .tf-btn.f::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-right: 8px solid #555;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  left: 12px;
}

/* 播放按钮 - 大三角形 */
.ting-flow.pause .tf-btn.p {
  background: #4a90e2; /* 播放按钮使用不同颜色 */
}

.ting-flow.pause .tf-btn.p::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid #fff; /* 白色图标 */
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

/* 暂停按钮 - 两条竖线 */
.ting-flow.play .tf-btn.p {
  background: #4a90e2;
}

.ting-flow.play .tf-btn.p::before {
  content: '';
  display: block;
  width: 4px;
  height: 12px;
  background: #fff;
  margin-right: 4px;
}

.ting-flow.play .tf-btn.p::after {
  content: '';
  display: block;
  width: 4px;
  height: 12px;
  background: #fff;
  margin-left: 4px;
}

/* 下一首按钮 - 双三角形 */
.ting-flow .tf-btn.n {
  position: relative;
}

.ting-flow .tf-btn.n::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid #555;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  right: 12px;
}

.ting-flow .tf-btn.n::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid #555;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  right: 6px;
}

/* 关闭按钮 */
.ting-flow .tf-btn.c::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: #555;
  transform: rotate(45deg);
  position: absolute;
}

.ting-flow .tf-btn.c::after {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: #555;
  transform: rotate(-45deg);
  position: absolute;
}

/* 进度条样式 */
.ting-flow .tf-cur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}

.ting-flow .tf-cur::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #4a90e2; /* 蓝色进度条 */
  width: 50%; /* 默认宽度，会被内联样式覆盖 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ting-flow {
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    min-width: 150px;
    height: 36px;
  }
  
  .ting-flow .tf-btn {
    width: 24px;
    height: 24px;
    margin: 0 3px;
  }
  
  .ting-flow .tf-btn.i img {
    width: 24px;
    height: 24px;
  }
}
