/* ══════════════════════════
   PAGE: SELECTIONS
══════════════════════════ */
.selections_page {
  padding: 28px 28px 60px;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
}

.crumb {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50px;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.crumb:hover,
.crumb:active {
  background: var(--panel);
  color: var(--text);
}

.crumb--active {
  color: var(--gold);
  cursor: default;
  font-weight: 700;
}

.crumb-sep {
  color: var(--border);
  user-select: none;
}

/* ─── PAGE HEADER ─── */
.page_header { margin-bottom: 20px; }

.category {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
}

/* ─── STATES ─── */
.loading_state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 15px);
}

.empty_state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 15px);
}

.error_state {
  padding: 40px 20px;
  text-align: center;
  color: #ef4444;
  font-size: clamp(14px, 1.1vw, 15px);
}

/* ─── SUB-CATEGORY GRID ─── */
#selections_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.sub_category {
  aspect-ratio: 4/3;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
}

.sub_category:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
  border-color: rgba(240, 192, 64, .3);
}

.sub_category_background {
  width: 100%;
  height: 100%;
  background-color: var(--card);
  position: relative;
}

/* The lazy-loaded background image */
.sub_category_bg_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.sub_category_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .2) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  z-index: 1;
}

.sub_category_overlay a,
.sub_category_overlay .selection {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(0, 0, 0, .35));
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  font-style: italic;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.3;
  pointer-events: none;
}

/* Full-card click target — sits above the image/overlay, below nothing */
.sub_category_link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
}

/* ─── CONTESTANT LIST — CARD GRID ─── */
#contestants_container {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.contestant {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  position: relative;
  cursor: default;
}

.contestant:hover {
  border-color: rgba(240, 192, 64, .25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  transform: translateY(-2px);
}

/* ─── PROFILE — portrait fills top, 4:5 ratio ─── */
.contestant_profile {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--panel), var(--card));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0;
}

/* Initials fallback */
.contestant_profile::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
  z-index: 0;
}

.contestant_profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 184, 75, 0);
  transition: background .2s;
  z-index: 2;
}

.contestant_profile:hover::before {
  background: rgba(232, 184, 75, .08);
}

.contestant_photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  transition: transform .3s ease;
}

.contestant_profile:hover .contestant_photo {
  transform: scale(1.04);
}

/* ─── CARD BODY ─── */
.contestant_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 10px;
  gap: 8px;
  min-width: 0;
}

.post_and_name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contestant_name {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contestant_role {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote_count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.vote_number {
  font-weight: 700;
  color: var(--gold);
}

.boost_number {
  font-weight: 700;
  color: var(--purple);
}

/* ─── ACTION ROW — icon buttons ─── */
.contestant_actions {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: auto;
}

/* shared icon button base */
.vote_btn,
.boost_btn,
.comment_btn,
.share_btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: var(--r-sm);
  border: none;
  background: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.action-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Vote button */
.vote_btn {
  color: var(--gold);
}
.vote_btn:hover  { background: var(--gold-dim); }
.vote_btn:active { transform: scale(.94); }

.vote_btn--loading {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .5;
  position: relative;
  overflow: hidden;
}
.vote_btn--loading::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: vote-btn-shimmer 1.2s ease-in-out infinite;
}

.vote_btn.voted       { color: var(--teal); }
.vote_btn.voted--today { color: var(--teal); opacity: .7; }
.vote_btn.voted--mine  {
  color: var(--teal);
  background: rgba(45,212,191,.1);
  box-shadow: 0 0 0 1px rgba(45,212,191,.3);
}

/* Boost button */
.boost_btn {
  color: var(--purple);
}
.boost_btn:hover  { background: rgba(139,92,246,.1); }
.boost_btn.boosted { color: #fff; background: var(--purple); }

/* Comment button */
.comment_btn {
  color: var(--text-2);
  position: relative;
}
.comment_btn:hover { background: var(--panel); color: var(--text); }

.comment_btn_count {
  font-size: 10px;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

/* Share button */
.share_btn {
  color: var(--muted);
}
.share_btn:hover { background: var(--panel); color: var(--text); }

/* Voted card highlight */
.contestant--voted {
  border-color: rgba(45, 212, 191, .45) !important;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .2), 0 6px 20px rgba(45, 212, 191, .1) !important;
}

.contestant--voted::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  z-index: 3;
}

@keyframes vote-flash {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, .5); }
  50%  { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.vote-success-flash { animation: vote-flash .7s ease-out; }

.vote-tooltip { display: none; }

/* ══════════════════════════════════════════════════════════
   VOTE ALREADY OVERLAY  (vao)
   Instagram-style: progress bar top, close top-left,
   "Insist" → payment step transition
══════════════════════════════════════════════════════════ */
#vote-already-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

#vote-already-overlay.vao--open {
  opacity: 1;
  pointer-events: all;
}

.vao-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── Box ── */
.vao-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);

  transform: translateY(20px) scale(.97);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}

#vote-already-overlay.vao--open .vao-box {
  transform: translateY(0) scale(1);
}

.vao-box--error { border-top: 3px solid var(--red); }

/* ─── Instagram progress bar ── */
.vao-progress-bar-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .12);
  z-index: 10;
}

.vao-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 0 2px 2px 0;
  /* width animated by rAF — no CSS transition needed */
}

/* ─── Close button — top left ── */
.vao-close-btn {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-2);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s, color .15s;
  line-height: 1;
}

.vao-close-btn:hover {
  background: rgba(255, 255, 255, .16);
  color: var(--text);
}

/* ─── Step containers ── */
#vao-step-info,
#vao-step-pay,
#vao-step-waiting,
#vao-step-success,
#vao-step-failed {
  padding: 44px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.vao-step-hidden { display: none !important; }

/* ─── Icon ring ── */
.vao-icon-wrap { margin-bottom: 4px; }

.vao-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(45, 212, 191, .12);
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  font-size: 28px;
  animation: vao-ring-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

.vao-icon-ring--error {
  background: var(--red-dim);
  border-color: var(--red);
}

@keyframes vao-ring-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* ─── Text ── */
.vao-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 800;
  font-style: italic;
  color: var(--text);
  margin: 0;
}

.vao-title--pay { font-size: clamp(15px, 2vw, 17px); }

.vao-message {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.vao-voted-name  { color: var(--gold); }
.vao-target-name { color: var(--teal); }

.vao-tomorrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
}

/* ─── Insist section ── */
.vao-insist-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.vao-insist-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.vao-insist-btn {
  padding: 10px 24px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.vao-insist-btn:hover  { opacity: .88; }
.vao-insist-btn:active { transform: scale(.97); }

.vao-dismiss-btn {
  padding: 9px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}

.vao-dismiss-btn:hover { color: var(--text); border-color: var(--border-md); }

/* ─── Pay step ── */
.vao-pay-sub {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 0;
}

.vao-pay-summary {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.vao-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.vao-pay-row:last-child { border-bottom: none; }

.vao-pay-row--total {
  background: var(--card);
  font-weight: 700;
  color: var(--text);
}

.vao-pay-row--total strong { color: var(--gold); }

.vao-pay-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.vao-pay-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.vao-pay-phone-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .18s;
}

.vao-pay-phone-row:focus-within { border-color: rgba(232, 184, 75, .4); }

.vao-pay-flag {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.vao-pay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
}

.vao-pay-input::placeholder { color: var(--muted); }

.vao-network-row {
  display: flex;
  gap: 10px;
}

.vao-network-opt { cursor: pointer; }
.vao-network-opt input { display: none; }

.vao-network-pill {
  display: block;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--muted);
  transition: all .15s;
  cursor: pointer;
}

.vao-network-opt input:checked + .vao-network-mtn {
  background: rgba(255, 204, 0, .12);
  border-color: #ffcc00;
  color: #ffcc00;
}

.vao-network-opt input:checked + .vao-network-airtel {
  background: rgba(224, 48, 48, .12);
  border-color: var(--red);
  color: var(--red);
}

.vao-pay-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  margin: 0;
}

.vao-pay-btn {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.vao-pay-btn:hover  { opacity: .88; }
.vao-pay-btn:active { transform: scale(.98); }
.vao-pay-btn:disabled { opacity: .5; cursor: not-allowed; }

.vao-pay-note {
  font-size: 11px;
  color: var(--muted);
  margin: -6px 0 0;
}

.vao-back-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: color .15s;
}

.vao-back-btn:hover { color: var(--text); }

/* ─── Waiting step ── */
.vao-waiting-icon { font-size: 48px; animation: vao-ring-pop .4s both; }

.vao-waiting-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.vao-spinner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.vao-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border-md);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Success / fail steps ── */
.vao-success-icon { font-size: 52px; animation: vao-ring-pop .4s both; }
.vao-success-text { font-size: 14px; color: var(--text-2); margin: 0; }
.vao-fail-icon    { font-size: 48px; }
.vao-fail-text    { font-size: 13px; color: var(--text-2); margin: 0; }

/* ─── Light theme ── */
[data-theme="light"] .vao-box {
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}

[data-theme="light"] .vao-backdrop {
  background: rgba(0, 0, 0, .5);
}

/* ─── Mobile ── */
@media (max-width: 480px) {
  #vao-step-info,
  #vao-step-pay,
  #vao-step-waiting,
  #vao-step-success,
  #vao-step-failed {
    padding: 40px 20px 22px;
    gap: 12px;
  }
}

.boost_btn {
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--purple);
  border-radius: var(--r-sm);
  color: var(--purple);
  font-family: var(--font-ui);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.boost_btn svg {flex-shrink: 0;display: none;}
.boost_btn:hover   { background: rgba(139, 92, 246, .12); transform: scale(.97); }
.boost_btn:active  { transform: scale(.94); }
.boost_btn.boosted { background: var(--purple); color: #fff; }

.share_btn {
  padding: 9px 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share_btn:hover  { border-color: var(--gold); color: var(--gold); }
.share_btn:active { background: var(--card); }

/* ══════════════════════════
   CONTESTANT COMMENTS
   Instagram-style bottom sheet that slides up
   when the user taps the comment icon on a card.
══════════════════════════ */

/* Comment count badge on the card */
.comment_btn {
  padding: 9px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.comment_btn:hover { border-color: var(--gold); color: var(--text); }
.comment_btn svg  { flex-shrink: 0; }

/* ── COMMENT SHEET ── */
#contestant-comment-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 80dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  z-index: 9500;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#contestant-comment-sheet.open { transform: translateY(0); }

#contestant-comment-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  z-index: 9499;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#contestant-comment-backdrop.open { opacity: 1; pointer-events: all; }

.cc-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cc-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}
.cc-header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cc-header-info { flex: 1; min-width: 0; }
.cc-header-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-header-sub { font-size: 11px; color: var(--muted); }

.cc-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s;
}
.cc-close:hover { color: var(--text); }

/* Comment list */
.cc-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.cc-list::-webkit-scrollbar { width: 3px; }
.cc-list::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 3px; }

.cc-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}

.cc-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cc-comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
}

.cc-comment-body { flex: 1; min-width: 0; }

.cc-comment-author {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cc-comment-bubble {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 0 var(--r) var(--r) var(--r);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  max-width: 100%;
}

.cc-comment-ts {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  padding-left: 2px;
}

.cc-comment--reply {
  margin-left: 0;
}

.cc-reply-btn {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.cc-reply-btn:hover {
  border-color: rgba(232, 184, 75, .35);
  color: var(--gold);
}

.cc-reply-banner {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(232, 184, 75, .06);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cc-reply-banner.hidden {
  display: none !important;
}

.cc-reply-banner__dismiss {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-ui);
}

/* Input row — always pinned at bottom */
.cc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.cc-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-ui);
  outline: none;
  transition: border-color .18s;
}
.cc-input:focus { border-color: rgba(232,184,75,.4); }
.cc-input::placeholder { color: var(--muted); }

.cc-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s, opacity .15s;
}
.cc-send:hover { transform: scale(1.08); }
.cc-send:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
══════════════════════════ */
@media (max-width: 768px) {
  /* Space for breadcrumb bar once it is position:fixed (out of document flow) */
  .selections_page {
    --sel-bc-sticky-h: 52px;
    padding: 16px 14px calc(var(--bottom-h) + 16px);
    padding-top: calc(16px + var(--sel-bc-sticky-h));
  }

  .selections_page #breadcrumb.breadcrumb {
    position: fixed;
    top: calc(0px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 9;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    min-height: var(--sel-bc-sticky-h);
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px
      max(14px, env(safe-area-inset-left, 0px));
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  .selections_page #breadcrumb.breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .selections_page #breadcrumb .crumb {
    flex-shrink: 0;
  }

  .category { font-size: 18px; }

  #selections_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  #contestants_container {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 12px;
  }

  /* Cards stay vertical — just slightly smaller */
  .contestant_body { padding: 8px 10px 8px; }
  .contestant_name { font-size: 13px; }
  .contestant_role { font-size: 10px; }
  .vote_count      { font-size: 11px; }
  .action-icon     { width: 16px; height: 16px; }
}

/* ══════════════════════════
   RESPONSIVE — PHONE (≤ 480px)
══════════════════════════ */
@media (max-width: 480px) {
  #selections_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    
  }

  #contestants_container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contestant_body { padding: 7px 8px 8px; gap: 6px; }
  .contestant_name { font-size: 12px; }
  .contestant_role { font-size: 10px; }
  .vote_count      { font-size: 10px; }

  .contestant_actions { gap: 2px; padding-top: 6px; }
  .vote_btn, .boost_btn, .comment_btn, .share_btn { padding: 6px 2px; }
  .action-icon { width: 15px; height: 15px; }
  .comment_btn_count { font-size: 9px; }
}

/* ══════════════════════════
   RESPONSIVE — TINY (≤ 360px)
══════════════════════════ */
@media (max-width: 360px) {
  #selections_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #contestants_container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sub_category_overlay a { font-size: 11px; }
}
