/* snceln.com 短视频 - 抖音样式 - 标准化模块 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.short-mode {
  overflow: hidden;
  height: 100vh; height: 100dvh;
  width: 100vw;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* 顶部导航 */
.short-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}
.short-header * { pointer-events: auto; }
.short-back {
  color: #fff; font-size: 28px; text-decoration: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border-radius: 50%;
  backdrop-filter: blur(4px);
}
.short-back:active { background: rgba(255,255,255,0.25); }
.short-title { color: #fff; font-size: 17px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* 滚动容器 - 全屏 */
.short-scroll {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

/* 视频卡片 - 全屏 */
.short-card {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  will-change: transform, opacity;
}
.short-card:first-child { z-index: 10; }

/* 视频 - 全屏铺满 */
.short-video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}

/* 底部渐变遮罩 */
.short-video-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

/* 
 * 抖音样式底部信息区域
 * 固定在底部区域，从下往上排列
 */
/* 用户信息（头像+@名称） */
.short-user {
  position: absolute; bottom: 160px; left: 16px;
  display: flex; align-items: center; gap: 10px; z-index: 10;
}
.short-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid rgba(255,255,255,0.5); flex-shrink: 0;
}
.short-username { color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* 视频描述 */
.short-desc {
  position: absolute; bottom: 100px; left: 16px; right: 80px;
  color: #fff; font-size: 14px; line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); z-index: 10;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 备注(剧集数/标签) */
.short-remarks {
  position: absolute; bottom: 75px; left: 16px;
  color: rgba(255,255,255,0.65); font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); z-index: 10;
}

/* 右侧操作按钮 - 抖音经典位置 */
.short-action-bar {
  position: absolute; right: 8px; bottom: 260px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; z-index: 10;
}
.short-action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; cursor: pointer; user-select: none;
}
.action-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  backdrop-filter: blur(4px);
}
.short-action-btn:active .action-icon { background: rgba(255,255,255,0.25); }
.short-action-btn span { color: #fff; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

/* 进度条 - 顶部细线 */
.short-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: rgba(255,255,255,0.15);
}
.short-progress .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #fe2c55, #ff6b9d);
  transition: width 0.3s;
}

/* 底部加载提示 */
.short-more {
  position: absolute; bottom: 60px; left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,0.3);
  font-size: 12px; z-index: 5;
}

/* 广告卡片 */
.short-ad-card { z-index: 1; }
.short-ad-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e); position: relative;
}
.short-ad-label {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6);
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.short-ad-content { text-align: center; color: #fff; }
.short-ad-icon { font-size: 48px; margin-bottom: 12px; }
.short-ad-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.short-ad-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* 静音按钮 - 右上角独立位置 */
.short-mute-btn {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 60px;
  z-index: 100;
  background: rgba(255,255,255,0.15); width: 36px; height: 36px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px);
}

/* PC 端居中 */
@media (min-width: 768px) {
  .short-card { max-width: 400px; margin: 0 auto; }
}
