*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}
body{
  background:#000;
  height:100vh;
  overflow:hidden;
  font-family: sans-serif;
  touch-action: none;
}
.video-box{
  width:100vw;
  height:100vh;
  overflow:hidden;
  position:relative;
}
.video-list{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.video-item{
  width:100vw;
  height:100vh;
  position:relative;
  flex-shrink:0;
}
.video-item video{
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events: auto;
}

.loading{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  color:#fff;
  font-size:18px;
}

.play-pause-btn{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  cursor: pointer;
}
.video-item:not(.playing) .play-pause-btn {
  opacity: 1;
  pointer-events: auto;
}

.action{
  position:absolute;
  right:15px;
  bottom:120px;
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:center;
}
.btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  color:#fff;
  cursor:pointer;
}
.btn .icon{font-size:30px;margin-bottom:4px}
.btn.liked .icon{color:#ff4444}
/* 【✅ 只改这里：支持图片头像】 */
.avatar{
  width:50px;
  height:50px;
  border-radius:50%;
  object-fit: cover;
  background: #eee;
  cursor: pointer;
}
.info{
  position:absolute;
  left:15px;
  bottom:30px;
  color:#fff;
  right:80px;
}

.global-volume{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  z-index: 1000;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.toast{
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2000;
}

/* 【✅ 新增：源选择面板】 */
.source-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 20px 15px 30px;
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.source-panel.show {
  transform: translateY(0);
}
.source-panel h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
}
.source-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.source-option {
  background: #333;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.source-option:hover,
.source-option.active {
  background: #555;
}
.source-option.selected {
  background: #ff4444;
}
.close-panel {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}