/* Header user menu + live voting UI */

.ma-hidden {
  display: none !important;
}

.header-user-menu {
  position: relative;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 0, 127, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #fff);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-user-btn:hover {
  border-color: var(--pink, #ff007f);
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.2);
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.header-user-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-caret {
  opacity: 0.7;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 190px;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 10, 18, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 120;
}

.header-user-dropdown a,
.header-user-signout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e4e4e7;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.header-user-dropdown a:hover,
.header-user-signout:hover {
  background: rgba(255, 0, 127, 0.12);
  color: #fff;
}

@media (max-width: 720px) {
  .header-user-name,
  .header-user-caret {
    display: none;
  }
  .header-user-btn {
    padding: 0.25rem;
    border-radius: 10px;
  }
}

/* DJ Top 100 voting */
.poll-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: poll-pulse 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 0.35rem;
}

@keyframes poll-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.top100-poll-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.top100-poll-live {
  color: #22c55e;
  font-weight: 600;
}

.top100-poll-user a {
  color: #e11d48;
  font-weight: 700;
}

.dj-vote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  width: 100%;
}

.dj-vote-count {
  font-size: 0.65rem;
  color: #71717a;
  font-weight: 600;
}

.dj-vote-btn,
.dj-vote-login {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.15);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.dj-vote-btn:hover,
.dj-vote-login:hover {
  background: rgba(225, 29, 72, 0.35);
}

.dj-vote-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dj-vote-pill.voted {
  color: #22c55e;
}

.dj-vote-pill.locked {
  color: #71717a;
}

.dj-card--placeholder {
  opacity: 0.45;
}

.rank-one-votes {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
}

#rank-1-vote-wrap {
  margin-top: 0.5rem;
}

/* DJ MAG poll */
.djmag-poll-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.djmag-poll-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.djmag-poll-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
}

.djmag-poll-total {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 600;
}

.djmag-poll-status {
  font-size: 0.78rem;
  color: #a1a1aa;
  margin: 0 0 0.85rem;
}

.djmag-poll-status a {
  color: #e11d48;
  font-weight: 700;
}

.djmag-poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.djmag-poll-option {
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.djmag-poll-option.is-voted {
  border-color: rgba(34, 197, 94, 0.45);
}

.djmag-poll-option-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
}

.djmag-poll-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.djmag-poll-meta {
  font-size: 0.68rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.djmag-poll-bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.djmag-poll-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e11d48, #a855f7);
  transition: width 0.6s ease;
}

.djmag-poll-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.djmag-poll-pct {
  font-size: 0.72rem;
  color: #a1a1aa;
  font-weight: 600;
}

.djmag-poll-vote-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.djmag-poll-vote-btn:hover {
  background: rgba(225, 29, 72, 0.4);
}

.djmag-poll-voted {
  color: #22c55e;
  font-size: 0.85rem;
}
