/* 针对Plyr音频播放器的样式设置 */
.plyr {max-width: 0;}
.plyr--audio {width: 100%; max-width: 400px; border-radius: 50px ; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);}
.plyr__controls { min-height: inherit; /* 确保控件使用整个高度 */ }
.plyr__menu__container {top:100%;bottom: auto;/*速度设置菜单由上向下弹出 */}
.plyr__menu__container [role=menu] {background-color: var(--milk-orange) !important;/*速度设置菜单背景色,避免透明背景*/}

@media (max-width: 768px) {
  /* 让进度条容器占据更多宽度 - 但减少1/3 */
  .plyr__controls .plyr__progress {
    flex: 0 1 auto !important;
    min-width: 40px !important;
    max-width: 200px !important;
  }
  
  /* 音量控制 - 更紧凑的布局 */
  .plyr__controls .plyr__volume {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 25px !important;     /* 进一步减小最小宽度 */
    margin-left: 2px !important;    /* 减小左边距 */
  }
  
  /* 音量图标按钮 */
  .plyr__volume .plyr__control {
    padding: 2px 4px !important;    /* 更小的内边距 */
  }
  
  /* 音量图标大小调整 */
  .plyr__volume .plyr__control svg {
    width: 16px !important;         /* 缩小图标尺寸 */
    height: 16px !important;
  }
  
  /* 音量滑块 - 极简模式 */
  .plyr__volume input[type="range"] {
    width: 20px !important;         /* 缩小到20px */
    height: 3px !important;
    margin: 0 !important;
    opacity: 0.8;                   /* 稍微淡化 */
  }
  
  /* 悬停时稍微扩展 */
  .plyr__volume:hover input[type="range"] {
    width: 40px !important;
    opacity: 1;
  }
}
