/* ============================================================
   轻停时刻 · 段子广场（随机播发）
   ============================================================ */

#view-jokes { background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }

.jokes-player {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  position: relative;
}

.jokes-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.jokes-player-top .btn-back { position: static; }

.jokes-title-mini {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--ink);
}

#btn-jokes-fav {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.jokes-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.joke-player-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}

.joke-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.joke-cat {
  font-size: 11px;
  letter-spacing: 1px;
  color: #7C8FD8;
  background: rgba(124, 143, 216, 0.10);
  border-radius: 999px;
  padding: 3px 10px;
}

.joke-count { font-size: 11px; color: var(--ink-faint); margin-left: auto; }

.jokes-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 62vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

#jokes-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.joke-player-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.joke-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}

.joke-btn:active { background: #fff; }
.joke-btn.liked { color: #E2605B; }
.joke-btn.faved { color: #F2B35C; }

.jokes-controls {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.jokes-controls .ov-btn { flex: 1; padding: 12px 8px; font-size: 13px; letter-spacing: 1px; }

/* 图片区占位：避免切换时布局跳动 */
.jokes-img-wrap {
  min-height: 44vh;
  background: #F0EDE6;
}

/* ---------- 收藏夹 ---------- */

.jokes-favlist {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}

.jokes-favlist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.jokes-favlist-top .btn-back { position: static; }

.jokes-list { display: flex; flex-direction: column; gap: 14px; }

.joke-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.joke-img { width: 100%; border-radius: 14px; display: block; }

.joke-foot { margin-top: 12px; }

.jokes-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 2;
  padding: 60px 0;
}
