/* 页面整体样式 */
body {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f0f4f8;
  color: #222;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* 每个模块容器 */
.entry {
  overflow: hidden;
  min-height: 100px;
  padding: 16px;
  margin-bottom: 13px;
  border-radius: 12px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.entry:nth-child(even) {
  background: #eef2f5;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.time {
  color: #999;
  font-style: italic;
  font-size: 10px;
}

/* 播放器样式 */
.player {
  position: relative;
  display: block;
  width: 220px;
  margin: 0;
  left: 10px;
  box-sizing: border-box;
}


.cover {
  width: 100%;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.cover-inner {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

.cover-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: calc(100% - 55px);
  left: 30px;
  background: #1db954;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.play-btn.transparent {
  opacity: 0.6;
  pointer-events: auto;
}

.play-btn.transparent:hover {
  opacity: 0.8;
}

.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
}

.time {
  position: absolute;
  right: 10px;
  top: -18px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.progress {
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 3px;
  overflow: hidden;
}

.progress-filled {
  height: 100%;
  width: 0%;
  background: #1db954;
  transition: width 0.2s;
}

/* 音乐信息区块 */
.music-info {
  margin-top: 14px;
  padding: 14px;
  background: #234;
  color: #eee;
  font-size: 16px;
  border-radius: 6px;
  line-height: 1.4;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.music-info p {
  margin: 5px 0;
  font-size: 13px;
}


.music-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #eee;
}

.music-info a {
  color: #1db954;
  text-decoration: none;
}

.music-info a:hover {
  text-decoration: underline;
}
/* --- 仅针对手机端（max-width: 768px）的播放状态样式 --- */

@media (max-width: 768px) {
    
    /* 1. 容器处理：确保在手机播放时，.player.video-unit 占据 100% 宽度 */
    .player.video-unit.playing {
        width: 100% !important;
        max-width: 100% !important; 
        margin: 0 auto !important;
        left: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* 2. 视频处理：最强硬控制，确保视频宽度不溢出屏幕 */
    .player.video-unit.playing video {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important; /* 强制视频宽度不超过其父容器 */
        margin: 0 auto !important;
        border-radius: 8px !important;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* 确保封面在手机播放时隐藏 */
    .player.video-unit.playing .cover {
        display: none !important;
    }
}
@media (max-width: 768px) {
  .music-info {
    font-size: 11px;
  }

  .music-info h3 {
    font-size: 11px;
  }

  .music-info p {
    font-size: 11px;
  }
}
