/* 引入 iconfont */
@font-face {
    font-family: 'iconfont';  /* Project id 1338101 */
    src: url('//at.alicdn.com/t/c/font_1338101_ari73pqcka9.woff2?t=1764496110193') format('woff2'),
         url('//at.alicdn.com/t/c/font_1338101_ari73pqcka9.woff?t=1764496110193') format('woff'),
         url('//at.alicdn.com/t/c/font_1338101_ari73pqcka9.ttf?t=1764496110193') format('truetype');
  }
  
  .pimusic-container {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      max-width: 100%;
      box-sizing: border-box;
      border-radius: 10px;
      border: 1px solid #ddd;
      /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
      overflow: hidden;
      transition: all 0.3s ease;
  }
  
  .pimusic-player {
      height: 120px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 10px;
      box-sizing: border-box;
  }
  
  .pimusic-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
  }
  
  .pimusic-title {
      font-weight: 600;
      font-size: 16px;
  }
  
  .pimusic-artist {
      font-size: 14px;
      color: #666;
  }
  
  .pimusic-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 12px 0;
  }
  
  .pimusic-control-btn {
      background: none;
      border: none;
      font-family: 'iconfont';
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
  }
  
  .pimusic-play-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
  }
  
  .pimusic-progress {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      cursor: pointer;
      margin: 8px 0;
  }
  
  .pimusic-time {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: #666;
  }
  
  .pimusic-lyrics {
      text-align: center;
      height: 40px;
      overflow: hidden;
      margin: 8px 0;
  }
  
  .pimusic-lyric-line {
      transition: all 0.3s ease;
      line-height: 40px;
  }
  
  .pimusic-volume {
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .pimusic-volume-icon {
      font-family: 'iconfont';
  }
  
  .pimusic-volume-slider {
      width: 80px;
      height: 4px;
      border-radius: 2px;
  }
  
  .pimusic-playlist-toggle {
      background: none;
      border: none;
      font-family: 'iconfont';
      cursor: pointer;
  }
  
  .pimusic-playlist {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }
  
  .pimusic-playlist.open {
      max-height: 400px;
      overflow-y: auto;
  }
  
  .pimusic-playlist-item {
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: background-color 0.2s ease;
  }
  
  .pimusic-playlist-item.active {
      font-weight: 500;
  }
  
  .pimusic-cover {
      width: 40px;
      height: 40px;
      border-radius: 4px;
      object-fit: cover;
  }
  
  /* 深色模式 */
  .pimusic-container.dark {
      background-color: #1c1c1e;
      color: #f5f5f7;
  }
  
  .pimusic-container.dark .pimusic-artist,
  .pimusic-container.dark .pimusic-time {
      color: #a1a1aa;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
      .pimusic-controls {
          gap: 12px;
      }
      
      .pimusic-volume-slider {
          width: 60px;
      }
  }