/* ───────────────────────────────────────────────────────────
   Vote page — Shakespeare play poll
─────────────────────────────────────────────────────────── */

body.about-page {
  overflow: auto;
  height: auto;
  min-height: 100%;
}
body.about-page #site-header { position: sticky; top: 0; }

/* ── Main layout ─────────────────────────────────────────── */
#vote-main {
  background: #f4e8c1;
  min-height: calc(100vh - 68px);
  padding: 2.5rem 1.5rem 5rem;
}

.vote-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────────── */
.vote-hero { margin-bottom: 1.5rem; }

.vote-overline {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8b6914;
  margin-bottom: 0.6rem;
}

.vote-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 400;
  font-size: 2.2rem;
  color: #2a0808;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.vote-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a1a08;
  margin-bottom: 0.75rem;
  max-width: 580px;
}

.vote-encourage {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.1rem;
  color: #2a0808;
  line-height: 1.7;
}

.vote-email-link {
  color: #8b1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
  transition: color 0.2s;
}
.vote-email-link:hover { color: #5a0a0a; }

.vote-rule {
  border: none;
  border-top: 1px solid #d4bc7a;
  margin: 1.5rem 0 2rem;
}

/* ── Loading ─────────────────────────────────────────────── */
.vote-loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  color: #7a5010;
}
.vote-loading .spinner { width: 32px; height: 32px; border-width: 2px; }

.hidden-until-loaded { display: none; }

/* ── Genre sections ──────────────────────────────────────── */
.genre-section {
  margin-bottom: 2rem;
}

.genre-heading {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gc, #5a3a1a);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gc, #d4bc7a);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Play list ───────────────────────────────────────────── */
.play-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.play-item {
  background: #faf3e0;
  border: 1px solid #e0cfa0;
  border-radius: 4px;
  padding: 0.65rem 0.85rem 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.play-item:hover {
  border-color: #c4a84a;
  box-shadow: 0 1px 6px rgba(42, 8, 8, 0.06);
}

.play-item--voted {
  border-color: #8b6914;
  background: rgba(139, 105, 20, 0.07);
  box-shadow: 0 1px 8px rgba(139, 105, 20, 0.15);
}

.play-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.play-item-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  flex: 1;
  min-width: 0;
}

.play-item-year {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.72rem;
  color: #9a7a4a;
  flex-shrink: 0;
}

.play-item-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #2a0808;
  white-space: nowrap;
}

.play-item-note {
  font-size: 0.82rem;
  color: #7a5010;
  font-style: italic;
  line-height: 1.4;
  flex-basis: 100%;
}

/* ── Vote button ─────────────────────────────────────────── */
.play-vote-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid rgba(139, 26, 26, 0.35);
  background: rgba(139, 26, 26, 0.06);
  color: #8b1a1a;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.play-vote-btn:hover {
  background: rgba(139, 26, 26, 0.14);
  border-color: rgba(139, 26, 26, 0.6);
}
.play-vote-btn.voted {
  background: #8b1a1a;
  border-color: #8b1a1a;
  color: #faf3e0;
}
.play-vote-btn.voted:hover {
  background: #6b1414;
  border-color: #6b1414;
}

/* ── Play vote bar ───────────────────────────────────────── */
.play-bar-track {
  position: relative;
  height: 6px;
  background: rgba(139, 105, 20, 0.12);
  border-radius: 3px;
  overflow: visible;
  display: flex;
  align-items: center;
}

.play-bar-fill {
  height: 100%;
  border-radius: 3px;
  min-width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-bar-label {
  position: absolute;
  left: calc(100% + 0.4rem);
  font-size: 0.7rem;
  color: #8a6030;
  font-style: italic;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  #vote-main { padding: 1.5rem 1rem 4rem; }
  .vote-title { font-size: 1.7rem; }
  .vote-lead { font-size: 0.98rem; }

  .play-item-note { font-size: 0.78rem; }
  .play-item-title { font-size: 0.9rem; }
  .play-bar-label { display: none; }

  .nav-link { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
}
