.vote-page{max-width:980px;margin:0 auto;padding:16px}
.vote-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.vote-title{margin:0;font-size:22px;font-weight:800}
.vote-sub{margin:6px 0 0;opacity:.85;font-size:13px}
.vote-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(0,0,0,.12);border-radius:10px;padding:8px 12px;font-size:13px;cursor:pointer;background:#fff;text-decoration:none;color:inherit}
.btn:hover{box-shadow:0 2px 10px rgba(0,0,0,.08)}
.btn-primary{border-color:rgba(35,115,224,.5)}
.vote-meta{margin-top:8px;font-size:12px;opacity:.85;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dot{opacity:.5}
.badge{display:inline-flex;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:12px}

/* detail.ejs uses vote-badge */
.vote-badge{display:inline-flex;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:12px}
.vote-badge.live{border-color:rgba(35,115,224,.35);background:rgba(35,115,224,.08);color:#2373e0}
.vote-badge.scheduled{border-color:rgba(0,0,0,.14);background:rgba(0,0,0,.05);color:#333}
.vote-badge.ended{border-color:rgba(0,0,0,.2);background:rgba(0,0,0,.06);color:#333}
.vote-sections{display:grid;gap:12px}
.vote-section{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;background:#fff}
.section-title{font-weight:800;margin-bottom:8px}
.poll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.poll-card{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;text-decoration:none;color:inherit;background:rgba(255,255,255,.95)}
.poll-card:hover{box-shadow:0 3px 14px rgba(0,0,0,.08)}
.poll-card-title{font-weight:800;margin-bottom:6px;line-height:1.2}
.poll-card-meta{font-size:12px;opacity:.8;display:flex;gap:8px;flex-wrap:wrap}
.small{font-size:12px;opacity:.85;margin-bottom:8px}
.list-wrap{display:grid;gap:10px}
.poll-list-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;text-decoration:none;color:inherit;background:#fff}
.poll-list-title{font-weight:800;line-height:1.2}
.poll-list-meta{font-size:12px;opacity:.8;margin-top:6px;display:flex;gap:8px;flex-wrap:wrap}
.poll-list-right{font-size:12px;opacity:.85;white-space:nowrap}
.vote-empty{padding:14px 8px;opacity:.8}

.vote-form{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:14px;background:#fff}
.form-row{display:grid;gap:6px;margin-bottom:12px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.form-label{font-size:12px;opacity:.9;font-weight:800}
.form-input,.form-textarea{border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:10px 12px;font-size:14px;outline:none}
.form-textarea{resize:vertical}
.form-hint{font-size:12px;opacity:.75}
.form-actions{display:flex;justify-content:flex-end;margin-top:10px}

.form-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

.candidate-list{display:grid;gap:8px}
.candidate-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}
.candidate-actions{margin-top:8px}

.candidate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.candidate-card{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;background:#fff;display:grid;gap:8px}
.candidate-name{font-weight:900;font-size:16px}
.candidate-link{font-size:12px;opacity:.85;text-decoration:none}
.candidate-link:hover{text-decoration:underline}
.candidate-meta{font-size:12px;opacity:.85}
.muted{opacity:.75}
.vote-hint{margin-top:12px;font-size:12px;opacity:.85}

.result-hero{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:14px;background:#fff;margin-bottom:12px;text-align:center}
.hero-title{font-size:14px;opacity:.85;margin-bottom:6px}
.hero-winner{font-size:24px;font-weight:900}
.result-list{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;overflow:hidden}
.result-row{display:grid;grid-template-columns:60px 1fr 90px;gap:8px;padding:12px;border-top:1px solid rgba(0,0,0,.06);align-items:center}
.result-row:first-child{border-top:none}
.rank{font-weight:900;opacity:.8}
.count{text-align:right}

.rank-table{border:1px solid rgba(0,0,0,.08);border-radius:14px;overflow:hidden;background:#fff}
.rank-head{display:grid;grid-template-columns:60px 1fr 90px;padding:10px 12px;font-size:12px;opacity:.85;font-weight:900;background:rgba(0,0,0,.03)}
.rank-row{display:grid;grid-template-columns:60px 1fr 90px;padding:12px;border-top:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;align-items:center}
.rank-row:hover{background:rgba(0,0,0,.02)}
.col-count{text-align:right}

@media (max-width:740px){
  .vote-page{padding:12px}
  .poll-grid,.candidate-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .form-inline{grid-template-columns:1fr}
  .candidate-row{grid-template-columns:1fr}
  .rank-head,.rank-row{grid-template-columns:48px 1fr 72px}
  .result-row{grid-template-columns:48px 1fr 72px}
}

/* ----- Added: Vote home cards + idol-ish UI (lightweight) ----- */

.vote-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.vote-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .vote-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.vote-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.vote-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.vote-card-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.vote-card-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.vote-card-meta {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
}

.vote-list {
  display: grid;
  gap: 8px;
}

.vote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.vote-row:hover {
  background: #fbfbff;
}

.vote-row-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.vote-row-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.vote-empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.vote-grid {
  display: grid;
  gap: 14px;
}

.vote-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vote-section-title {
  margin: 0;
}

.vote-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.vote-input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}

.vote-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(35,115,224,.15);
}

.vote-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.vote-pager {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.vote-page-btn {
  min-width: 36px;
}

.vote-section-wide {
  grid-column: 1 / -1;
}

.vote-rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .vote-rank-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vote-rank-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.vote-rank-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
}

/* ----- Added: share bar ----- */

.vote-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote-btn-small {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
}

/* ----- Added: embed minimal layout ----- */

.vote-embed {
  max-width: 520px;
  margin: 0 auto;
}

.vote-embed-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.vote-embed-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.vote-embed-brand {
  font-weight: 900;
  font-size: 12px;
  color: var(--primary);
}

.vote-embed-title {
  margin-top: 6px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}

.vote-embed-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.vote-embed-list {
  padding: 10px 14px;
  display: grid;
  gap: 8px;
}

.vote-embed-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.vote-embed-name {
  font-weight: 800;
}

.vote-embed-votes {
  color: var(--muted);
  font-weight: 700;
}

.vote-embed-actions {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.vote-embed-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------------------------
   Vote buttons (legacy classes)
   Some vote views use `vote-btn*` classes. Provide consistent styling
   without touching existing layouts.
------------------------------------------------------------------- */

.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  text-decoration: none;
  color: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vote-btn:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.vote-btn-primary {
  border-color: rgba(35,115,224,.5);
}

.vote-btn-small {
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
}

.vote-btn:disabled,
.vote-btn.vote-btn-disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Candidate image controls */
.candidate-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cand-img {
  position: relative;
  overflow: hidden;
}

.btn-cand-img input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.candidate-img-preview {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}

.candidate-img-preview.show {
  display: inline-flex;
}

.candidate-img-preview img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.candidate-img-preview .btn {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.vote-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  background: rgba(0,0,0,.03);
}

.vote-avatar-sm {
  width: 34px;
  height: 34px;
}

.vote-candidate-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Result name layout */
.result-row .name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-row .name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Candidate cards (vote detail) */
.vote-candidate-card{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.vote-candidate-card .vote-candidate-media{
  width:100%;
  height:450px;
  background: rgba(0,0,0,.03);
}
.vote-candidate-card .vote-candidate-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.vote-candidate-card .vote-candidate-img--empty{
  background: rgba(0,0,0,.06);
}
@media (min-width: 900px){
  .vote-candidate-card .vote-candidate-media{height:600px;}
}
.vote-candidate-card .vote-candidate-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px 10px;
}
.vote-candidate-card .vote-candidate-name{
  font-size:16px;
  font-weight:800;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vote-wiki-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  font-size:13px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:inherit;
  text-decoration:none;
  flex:0 0 auto;
}
.vote-wiki-btn:hover{box-shadow:0 2px 10px rgba(0,0,0,.06);}
.vote-candidate-card .vote-card-meta{padding:0 12px 10px;}
.vote-candidate-card .vote-progress{
  height:8px;
  border-radius:999px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
.vote-candidate-card .vote-progress-bar{
  height:100%;
  background: var(--primary, rgba(35,115,224,1));
}
.vote-candidate-card .vote-card-sub{margin-top:6px;}
.vote-candidate-card .vote-card-actions{padding:0 12px 12px;}
.vote-candidate-card .vote-card-actions .vote-btn{width:100%;}


.vote-badge.worldcup{border-color:rgba(240,120,40,.35);background:rgba(240,120,40,.10);color:#d86a00}

/* Worldcup (ideal type tournament) */
.worldcup-wrap{border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:12px;margin-bottom:12px}
.worldcup-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.worldcup-round{font-weight:900}
.worldcup-progress{font-size:12px;opacity:.75;white-space:nowrap}
.worldcup-vs{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch}
.worldcup-card{border:1px solid rgba(0,0,0,.10);border-radius:18px;overflow:hidden;background:#fff;cursor:pointer;text-align:left;padding:0;display:flex;flex-direction:column;box-shadow:0 2px 10px rgba(0,0,0,.04);transition:transform .08s ease, box-shadow .08s ease}
.worldcup-card:hover{transform:translateY(-1px);box-shadow:0 4px 18px rgba(0,0,0,.08)}
.worldcup-media{width:100%;height:312px;background:rgba(0,0,0,.03)}
.worldcup-img{width:100%;height:100%;object-fit:cover;display:block}
.worldcup-img--empty{background:rgba(0,0,0,.06)}
.worldcup-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px}
.worldcup-name{font-weight:900;font-size:16px;line-height:1.2}
.worldcup-wiki{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);text-decoration:none;color:inherit;font-size:12px;white-space:nowrap;background:#fff}
.worldcup-wiki:hover{box-shadow:0 2px 10px rgba(0,0,0,.06)}
.worldcup-vs-label{display:flex;align-items:center;justify-content:center;font-weight:900;opacity:.65}
.worldcup-bye{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(0,0,0,.18);border-radius:18px;background:rgba(0,0,0,.03);font-weight:900;opacity:.7}
.worldcup-actions{display:flex;justify-content:flex-end;margin-top:10px}
@media (min-width: 900px){
  .worldcup-media{height:416px}
  .worldcup-name{font-size:18px}
}
@media (max-width: 520px){
  .worldcup-vs{grid-template-columns:1fr;gap:12px}
  .worldcup-vs-label{display:none}
  .worldcup-bye{height:48px}
  .worldcup-media{height:338px}
}
.worldcup-only{display:none}

/* ===== Result Share Image ===== */
.result-share{margin-top:14px;background:#0f172a;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
.result-share-head{padding:14px 16px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.result-share-head h2{margin:0;color:#fff;font-size:16px;font-weight:900}
.result-share-head .desc{margin:0;color:rgba(255,255,255,.72);font-size:12px}
.result-share-body{padding:14px 16px 16px}
.result-share-img{width:100%;max-width:520px;display:block;margin:0 auto;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.result-share-actions{margin-top:12px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.result-share-actions .btn{border-radius:999px}
.result-share-links{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.result-share-row{display:flex;align-items:center;gap:10px}
.result-share-row .label{min-width:92px;color:rgba(255,255,255,.82);font-size:12px;font-weight:800}
.result-share-row .link-input{flex:1;min-width:0;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;font-size:12px}
.result-share-row .btn.small{padding:10px 12px;font-size:12px;white-space:nowrap}
@media (max-width:520px){.result-share-row{flex-direction:column;align-items:stretch}.result-share-row .label{min-width:auto}}
/* =========================================================
   Vote Result Page (Lovely / Share Poster)
   - scoped: .vote-result-page
========================================================= */
.vote-result-page{
  background: linear-gradient(180deg,#ffe7f4 0%, #f3f0ff 45%, #ffffff 100%);
  border-radius: 18px;
}

.vote-result-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 26px;
}

.vote-result-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding: 8px 6px 10px;
}

.vote-result-head{
  min-width: 0;
}

.vote-result-title{
  margin:0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color:#111827;
}

.vote-result-sub{
  margin-top: 4px;
  font-weight: 800;
  color:#8b5cf6;
}

.vote-result-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}

.meta-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(236,72,153,.18);
  box-shadow: 0 6px 16px rgba(17,24,39,.06);
  color:#374151;
  font-size: 13px;
  white-space: nowrap;
}

.meta-chip b{ color:#111827; }

.vote-result-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.vote-rbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236,72,153,.25);
  background: rgba(255,255,255,.88);
  color:#111827;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(17,24,39,.07);
  text-decoration:none;
  cursor:pointer;
}

.vote-rbtn:hover{ filter: brightness(0.99); }
.vote-rbtn:active{ transform: translateY(1px); }

.vote-rbtn-soft{
  border-color: rgba(139,92,246,.22);
}

.vote-rbtn-primary{
  background: linear-gradient(90deg,#ff4fb3 0%, #8b5cf6 100%);
  border-color: rgba(255,255,255,.55);
  color: #ffffff;
}

.vote-result-promo{
  padding: 8px 6px 2px;
}

.promo-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,77,167,.16);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(17,24,39,.10);
  padding: 12px;
  overflow: hidden;
}

.promo-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding: 2px 6px 10px;
}

.promo-label{
  font-weight: 900;
  color:#111827;
  letter-spacing: -0.02em;
}

.promo-hint{
  font-weight: 800;
  color:#a855f7;
  font-size: 12px;
  opacity: .9;
}

.promo-imglink{
  display:block;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 14px 32px rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(255,231,244,.6), rgba(243,240,255,.6));
}

.promo-image{
  width:100%;
  height:auto;
  display:block;
}

.promo-links{
  margin-top: 12px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(249,250,251,.75);
  border: 1px dashed rgba(139,92,246,.25);
}

.promo-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 6px 2px;
}

.promo-k{
  width: 110px;
  flex: 0 0 auto;
  color:#6b7280;
  font-weight: 900;
  font-size: 12px;
}

.promo-v{ flex: 1 1 auto; }

.promo-input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.10);
  background:#ffffff;
  color:#111827;
  font-weight: 800;
  font-size: 12px;
}

.vote-result-note{
  margin: 12px 6px 0;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 16px 34px rgba(17,24,39,.08);
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.note-title{
  font-size: 18px;
  line-height: 1;
}

.note-text{
  font-weight: 900;
  color:#374151;
}

.vote-result-list-title{
  margin: 14px 6px 8px;
  font-weight: 1000;
  color:#111827;
  letter-spacing: -0.02em;
}

.vote-result-list{
  padding: 0 6px 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vote-result-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 16px 34px rgba(17,24,39,.08);
}

.vri-rank{
  width: 32px;
  text-align:center;
  font-weight: 1000;
  color:#ff4fb3;
}

.vri-photo{
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow:hidden;
  background: linear-gradient(180deg,#ffe7f4,#f3f0ff);
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 10px 22px rgba(17,24,39,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

.vri-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.vri-img-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  color:#a1a1aa;
  letter-spacing: .12em;
}

.vri-main{
  min-width: 0;
  flex: 1 1 auto;
}

.vri-name{
  font-weight: 1000;
  color:#111827;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vri-bar{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap:10px;
}

.vri-bar-bg{
  height: 10px;
  border-radius: 999px;
  flex: 1 1 auto;
  background: rgba(17,24,39,.08);
  overflow:hidden;
  position: relative;
}

.vri-bar-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff4fb3 0%, #8b5cf6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset;
}

.vri-count{
  flex: 0 0 auto;
  font-weight: 1000;
  color:#374151;
  font-size: 13px;
  white-space: nowrap;
}

.vri-count b{ color:#111827; }

@media (max-width: 520px){
  .vote-result-header{
    flex-direction: column;
    align-items: stretch;
  }
  .vote-result-actions{
    justify-content:flex-start;
  }
  .promo-k{
    width: 92px;
  }
  .vri-photo{
    width: 70px;
    height: 70px;
  }
  .vote-rbtn{
    width: 100%;
  }
}

/* detail header layout fix: title one-line, actions below */
.vote-header.vote-header--detail{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;align-items:stretch}
.vote-header.vote-header--detail .vote-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.vote-header.vote-header--detail .vote-actions{justify-content:flex-end;width:100%;margin-top:6px}

/* -------------------------------------------------------------------------
   Vote home (idolpick-inspired)
   ------------------------------------------------------------------------- */

.vote-home{
  --vh-primary: #ff3bb5;
  --vh-primary2: #8b5cf6;
  --vh-bg: #ffffff;
  --vh-surface: rgba(255,255,255,.85);
  --vh-border: rgba(17,24,39,.10);
  --vh-text: #111827;
  --vh-muted: rgba(17,24,39,.60);

  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 46px;
}

@media (min-width: 900px){
  .vote-home{
    padding: 24px 18px 60px;
  }
}

.vote-home-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

.vote-home-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.vote-home-logo{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 900;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%),
              linear-gradient(135deg, var(--vh-primary) 0%, var(--vh-primary2) 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  flex: 0 0 auto;
}

.vote-home-title-wrap{min-width:0}

.vote-home-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-home-subtitle{
  margin-top: 2px;
  font-size: 12px;
  color: var(--vh-muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.vote-home-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}

.vote-home-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.vote-home-action-ico{
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 520px){
  .vote-home-actions .vote-home-action span:last-child{
    display:none;
  }
  .vote-home-actions{
    gap:6px;
  }
  .vote-home-action{
    padding: 10px 12px;
  }
}

.vote-top-tabs{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  padding: 10px 10px 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--vh-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vote-top-tabs::-webkit-scrollbar{height: 0}

.vote-top-tab{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(17,24,39,.55);
  text-decoration:none;
  white-space: nowrap;
}

.vote-top-tab.is-active{ color: var(--vh-text); }

.vote-top-tab-indicator{
  position:absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vh-primary) 0%, var(--vh-primary2) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transform: translateX(0);
  transition: transform 180ms ease, width 180ms ease;
}

.vote-hero{
  position: relative;
  border-radius: 18px;
  padding: 16px 14px;
  margin: 12px 0 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.65), rgba(255,255,255,0) 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.45), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(255,59,181,.18) 0%, rgba(139,92,246,.16) 100%);
  border: 1px solid rgba(17,24,39,.08);
  overflow: hidden;
}

.vote-hero-inner{position: relative; z-index: 2;}

.vote-hero-title{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 15px;
  font-weight: 1000;
  color: var(--vh-text);
}

.vote-hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 18px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(90deg, var(--vh-primary) 0%, var(--vh-primary2) 100%);
}

.vote-hero-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vote-hero-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  color: rgba(17,24,39,.70);
  backdrop-filter: blur(8px);
}

.vote-hero-pill-muted{
  border-color: rgba(17,24,39,.08);
  background: rgba(255,255,255,.55);
}

.vote-hero-pill-label{
  font-weight: 1000;
  color: rgba(17,24,39,.55);
}

.vote-hero-pill-time{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: rgba(17,24,39,.80);
}

.vote-hero-wave{
  position:absolute;
  left: -40px;
  right: -40px;
  bottom: -18px;
  height: 52px;
  background:
    radial-gradient(40px 24px at 10% 50%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 36%),
    radial-gradient(40px 24px at 30% 50%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 36%),
    radial-gradient(40px 24px at 50% 50%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 36%),
    radial-gradient(40px 24px at 70% 50%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 36%),
    radial-gradient(40px 24px at 90% 50%, rgba(255,255,255,.75) 35%, rgba(255,255,255,0) 36%);
  opacity: .65;
}

/* Home-style filter (used by view-all pages) */
.vote-filter-home{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:flex-end;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.80);
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.vote-filter-home .vote-field{min-width:160px;flex:1 1 160px;margin:0}
.vote-filter-home .vote-actions{display:flex;gap:8px;align-items:flex-end;margin:0}
.vote-filter-home .vote-input{background:rgba(255,255,255,.95);border-color:rgba(17,24,39,.12)}

@media (max-width: 520px){
  .vote-filter-home .vote-field{flex:1 1 100%}
  .vote-filter-home .vote-actions{width:100%}
  .vote-filter-home .vote-actions .vote-btn{flex:1}
}

.vote-home-note{
  margin: 0 2px 12px;
  color: rgba(17,24,39,.62);
  font-size: 12px;
  line-height: 1.4;
}

.vote-section-home{
  padding: 0;
  border: none;
  margin: 0 0 18px;
}

.vote-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 4px 2px 10px;
}

.vote-section-title{
  font-size: 15px;
  font-weight: 1000;
  color: var(--vh-text);
  margin: 0;
}

.vote-section-more{
  font-size: 12px;
  font-weight: 900;
  color: rgba(17,24,39,.55);
  text-decoration:none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
}

.vote-section-more:hover{ color: var(--vh-text); }

.vote-empty{
  padding: 14px 12px;
  border: 1px dashed rgba(17,24,39,.18);
  border-radius: 14px;
  color: rgba(17,24,39,.60);
  background: rgba(255,255,255,.65);
}

.vote-poll-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 760px){
  .vote-poll-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .vote-poll-grid.vote-poll-grid-compact{
    grid-template-columns: 1fr;
  }
}

.vote-poll-card{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.88);
  text-decoration:none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}

.vote-poll-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.vote-poll-card-compact{
  padding: 10px 12px;
  border-radius: 16px;
}

.vote-poll-thumb{ flex: 0 0 auto; }

.vote-thumb-single{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,59,181,.35) 0%, rgba(139,92,246,.28) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border: 3px solid rgba(255,255,255,.92);
}

.vote-thumb-single img{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.vote-thumb-stack{
  position: relative;
  width: 66px;
  height: 44px;
}

.vote-thumb-stack img{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.vote-thumb-stack img:nth-child(2){ left: 14px; }
.vote-thumb-stack img:nth-child(3){ left: 28px; }

.vote-thumb-fallback{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,59,181,.35) 0%, rgba(139,92,246,.28) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.vote-poll-main{ flex: 1 1 auto; min-width:0; }

.vote-poll-title{
  font-weight: 1000;
  font-size: 14px;
  color: var(--vh-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-season-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:800;line-height:1;background:rgba(255, 0, 102, .12);color:#d61f69;vertical-align:middle}

.vote-private-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.75);
  vertical-align: middle;
}

.vote-poll-meta{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(17,24,39,.60);
}

.vote-dot{ opacity: .6; }

.vote-poll-by{
  font-weight: 900;
  color: rgba(17,24,39,.55);
}

.vote-author-inline{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vote-author-icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 18px;
}

.vote-author-emoji{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.vote-poll-bar{ margin-top: 10px; }

.vote-home .vote-progress{
  width: 100%;
  height: 9px;
  background: rgba(17,24,39,.08);
  border-radius: 999px;
  overflow: hidden;
}

.vote-home .vote-progress.vote-progress-thin{ height: 7px; margin-top: 8px; }

.vote-home .vote-progress-bar{
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vh-primary) 0%, var(--vh-primary2) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset;
  transition: width .25s ease;
}

.vote-poll-barline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(17,24,39,.70);
}

.vote-poll-leader{ font-weight: 900; color: rgba(17,24,39,.72); }

.vote-poll-countdown{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: rgba(17,24,39,.55);
  white-space: nowrap;
}

.vote-poll-badge{ flex: 0 0 auto; }

.vote-home .vote-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  border: 1px solid rgba(17,24,39,.12);
  color: rgba(17,24,39,.65);
  background: rgba(255,255,255,.70);
}

.vote-home .vote-badge-live,
.vote-home .vote-badge-popular{
  border-color: rgba(255,59,181,.22);
  color: rgba(255,59,181,.95);
  background: rgba(255,59,181,.10);
}

.vote-home .vote-badge-close{
  border-color: rgba(139,92,246,.22);
  color: rgba(139,92,246,.95);
  background: rgba(139,92,246,.10);
}

.vote-home .vote-badge-ended{
  border-color: rgba(17,24,39,.18);
  color: rgba(17,24,39,.70);
  background: rgba(17,24,39,.06);
}

.vote-rank-grid-home{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 760px){
  .vote-rank-grid-home{ grid-template-columns: 1fr 1fr; }
}

.vote-rank-box{
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 12px 12px;
}

.vote-rank-title{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 1000;
  color: rgba(17,24,39,.85);
}

.vote-rank-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 8px; }

.vote-rank-item{
  display:flex;
  align-items:center;
  gap: 10px;
}

.vote-rank-no{
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  font-size: 12px;
  color: rgba(17,24,39,.70);
  background: rgba(17,24,39,.06);
}

.vote-rank-link{
  flex: 1 1 auto;
  min-width:0;
  color: rgba(17,24,39,.75);
  font-weight: 900;
  text-decoration:none;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.vote-rank-name{ flex: 1 1 auto; min-width:0; color: rgba(17,24,39,.75); font-weight: 900; white-space: nowrap; overflow:hidden; text-overflow:ellipsis; }

.vote-rank-votes{
  flex: 0 0 auto;
  font-weight: 1000;
  font-size: 12px;
  color: rgba(17,24,39,.65);
}

.vote-rank-empty{
  color: rgba(17,24,39,.55);
  font-size: 12px;
  padding: 8px 4px;
}



/* 후보 이름을 위키 링크로 눌러도 디자인 유지 */
.vote-candidate-name-link,
.worldcup-name-link{
  color: inherit;
  text-decoration: none;
}
.vote-candidate-name-link:hover,
.worldcup-name-link:hover{
  text-decoration: underline;
}

/* 작성자 표시 */
.vote-author{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0,0,0,.62);
}
.vote-author .nickname-link{
  cursor: pointer;
}
