/* ============================================================
   추천 & 투표 UI 시안 — 홈 디자인 언어(화이트/블랙/핑크) 유지
   ============================================================ */

.vote-body { background: var(--bg-soft); }

.vote-main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 56px) 20px 80px;
  display: flex;
  justify-content: center;
}
.vote-wrap {
  width: 100%;
  max-width: 640px;
}

.vote-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.vote-eyebrow .eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}
.vote-title {
  margin-top: 10px;
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vote-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}
.back-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link:hover { color: var(--text); }
.all-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.list-empty[hidden] { display: none; }

.card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 28px);
}
.card-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
}
.card-title {
  font-size: 17px;
  font-weight: 750;
}
.card-desc {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-sub);
}

/* ---------- 진행 중인 회차 ---------- */
.round-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.round-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 700;
}
.round-name { font-size: 16.5px; font-weight: 750; }
.round-dday {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  color: var(--pink);
}
.round-period {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--pink-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.round-period-label {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.round-period-dates {
  font-family: var(--font-en);
  font-size: clamp(17px, 3.4vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.round-period-dates em {
  font-style: normal;
  font-family: var(--font-ko);
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink-deep);
}
.round-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- 내 투표권 ---------- */
.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ticket-state {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}
.ticket-state.is-full { color: var(--pink); }

.preview-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
}
.preview-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: #d9d6d2;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle-track i {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s ease;
}
.preview-toggle input:checked + .toggle-track { background: var(--pink); }
.preview-toggle input:checked + .toggle-track i { left: 19px; }

.ticket-row[hidden] { display: none; }
.ticket-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ticket-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.ticket-box strong {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
}
.ticket-box span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- 추천 검색 ---------- */
.search-box { position: relative; margin-top: 16px; }
.search-box input {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color 0.18s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--black);
}

.suggest-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.suggest-label {
  padding: 10px 16px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.suggest-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  text-align: left;
  font-size: 14.5px;
  transition: background 0.15s ease;
}
.suggest-item:hover { background: var(--bg-soft); }
.suggest-item strong { font-family: var(--font-en); font-weight: 700; }
.suggest-item .alias-hit {
  font-size: 12.5px;
  color: var(--text-dim);
}
.suggest-item .suggest-votes {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 12.5px;
  color: var(--text-dim);
}
.suggest-item.is-new {
  border-top: 1px solid var(--line);
  color: var(--pink);
  font-weight: 700;
}
.suggest-item.is-dup {
  color: var(--text-dim);
  cursor: default;
}
.suggest-item.is-dup em {
  font-style: normal;
  color: var(--pink);
  font-weight: 700;
}

.search-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.my-recommend {
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--pink-soft);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--pink-deep);
}

/* ---------- 투표 목록 ---------- */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink);
}
.live-chip i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink { 50% { opacity: 0.25; } }

.vote-list { margin-top: 14px; }
.vote-row {
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.vote-rank {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
}
.vote-row.is-top10 .vote-rank { color: var(--pink); }

.vote-info { min-width: 0; }
.vote-name {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.vote-meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.my-vote-chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
}

.list-search { margin-top: 14px; }
.list-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease;
}
.list-search input:focus {
  outline: none;
  border-color: var(--black);
}
.list-empty {
  padding: 24px 0 8px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.vote-btn-s {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.vote-btn-s:hover { background: var(--pink); }
.vote-btn-s:disabled {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-dim);
  cursor: default;
}
.vote-btn-s.is-voted {
  background: var(--pink-soft);
  color: var(--pink);
  cursor: default;
}

.vote-votes {
  font-family: var(--font-en);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--text-sub);
}

.list-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.list-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 추천↔투표 안내 카드 ---------- */
.go-vote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.go-vote-inner strong { font-size: 15.5px; font-weight: 750; }
.go-vote-inner p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-sub);
}
.go-vote-inner .btn { flex-shrink: 0; }

.vote-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 새 아티스트 추천 모달 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 30px);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.modal-title {
  font-size: 18px;
  font-weight: 750;
}
.new-artist-name {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.photo-drop {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.photo-drop:hover { border-color: var(--black); }
.photo-drop img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.photo-drop img[hidden] { display: none; }
.photo-hint {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.photo-hint strong { color: var(--text-sub); }
.modal-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

/* 목록 아바타 */
.vote-ava {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-sub);
  overflow: hidden;
  flex-shrink: 0;
}
.vote-ava img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 모바일 ---------- */
@media (max-width: 480px) {
  .ticket-row { grid-template-columns: minmax(0, 1fr); }
  .vote-row { grid-template-columns: 22px 30px minmax(0, 1fr) auto; gap: 8px; }
  .vote-ava { width: 30px; height: 30px; font-size: 12px; }
  .vote-btn-s { padding: 8px 14px; font-size: 12.5px; }
}
