/* ================================================
   Dis Media アンケートウィジェット v1.2.0
   ライトイエロー配色・どぎつくないデザイン
   ================================================ */

.dism-poll-widget {
  margin: 28px 0;
  background: #fffef5;
  border: 1px solid #ede08a;
  border-radius: 12px;
  padding: 18px 20px 20px;
  max-width: 520px;
}

/* ラベル（上部バッジ） */
.dism-poll-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #92670a;
  background: #fef9c3;
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* 質問文 */
.dism-poll-question {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.65;
}

/* 投票前ティーザー */
.dism-poll-teaser {
  font-size: 12px;
  color: #a89850;
  margin: 0 0 12px;
  font-style: italic;
}

/* 選択肢一覧 */
.dism-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 各選択肢ボタン（投票前） */
.dism-poll-option {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1.5px solid #e4d06a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
  user-select: none;
}
.dism-poll-option:hover {
  background: #fefce8;
  border-color: #d4b800;
  transform: translateX(3px);
}
.dism-poll-option:active {
  transform: translateX(0);
}

/* 結果表示モード（投票後） */
.dism-poll-widget.voted .dism-poll-option {
  cursor: default;
  display: block;
  padding: 10px 14px;
  border-color: #f0e8a0;
  background: #fff;
}
.dism-poll-widget.voted .dism-poll-option:hover {
  background: #fff;
  border-color: #f0e8a0;
  transform: none;
}

/* ランク別ハイライト */
.dism-poll-widget.voted .dism-poll-option.rank-1 {
  border-color: #e8c84a;
  background: #fffde8;
}
.dism-poll-widget.voted .dism-poll-option.rank-2 {
  border-color: #ccc;
  background: #fafafa;
}
.dism-poll-widget.voted .dism-poll-option.rank-3 {
  border-color: #d4a870;
  background: #fdf8f3;
}

/* 番号（投票前・左端） */
.dism-poll-option .option-num {
  font-size: 13px;
  font-weight: 700;
  color: #92670a;
  min-width: 20px;
  flex-shrink: 0;
}

/* 順位王冠（投票前・右端） */
.dism-poll-option .option-rank {
  margin-left: auto;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
  padding-left: 8px;
}

/* ランク行（投票後） */
.dism-poll-rank-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* 王冠アイコン */
.option-crown {
  font-size: 18px;
  min-width: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.dism-poll-option .option-label {
  font-size: 14px;
  font-weight: 600;
}

/* バーグラフ */
.dism-poll-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dism-poll-bar-bg {
  flex: 1;
  height: 8px;
  background: #fef3c7;
  border-radius: 4px;
  overflow: hidden;
}
.dism-poll-bar-fill {
  height: 100%;
  background: #f5c518;
  border-radius: 4px;
  width: 0%;
  transition: width 0.55s ease;
}
.dism-poll-bar-fill.winner {
  background: #d97706;
}
.dism-poll-pct {
  font-size: 13px;
  font-weight: 700;
  color: #92670a;
  min-width: 36px;
  text-align: right;
  white-space: nowrap;
}
.dism-poll-count {
  font-size: 11px;
  font-weight: 600;
  color: #b8a060;
  min-width: 28px;
  white-space: nowrap;
}

/* フッター（合計票数） */
.dism-poll-footer {
  margin-top: 12px;
  font-size: 12px;
  color: #bbb;
  text-align: right;
}

/* 投票済みバッジ */
.dism-poll-voted-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
