:root {
  --bg: #0d0f12;
  --panel: #151922;
  --muted: #9aa3b2;
  --text: #eaf1ff;
  --accent: #7dd3fc;
  --accent2: #a78bfa;
  --border: #232838;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: radial-gradient(1200px 600px at 80% -10%, rgba(167, 139, 250, 0.15), transparent 60%),
    radial-gradient(1000px 600px at -10% 10%, rgba(125, 211, 252, 0.2), transparent 60%), var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}
header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.session .dot {
  opacity: 0.5;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%), var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

input,
button,
a.ghost {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: #0f1320;
}
input {
  width: 100%;
}
button {
  cursor: pointer;
  border-color: #2a3250;
}
button:hover {
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}

button.ghost,
a.ghost {
  background: transparent;
  color: var(--muted);
}
a.ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

form {
  display: flex;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1220;
}
.card .meta {
  padding: 10px;
}
.card img {
  width: 100%;
  display: block;
}

.meta h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.meta .artist {
  color: var(--muted);
  font-size: 13px;
}
.meta .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.meta .row button {
  font-weight: 600;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #0e1220;
}
.item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.item .title {
  font-weight: 600;
}
.item .artist {
  font-size: 13px;
  color: var(--muted);
}
.item .votes {
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.item .cta {
  display: flex;
  gap: 8px;
}

.create-box {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.create-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}
.create-box input {
  background: #0f1320;
}
.hint {
  color: var(--muted);
  margin: 8px 0 0;
}
.status {
  margin-top: 8px;
  min-height: 20px;
  color: var(--accent);
}

.foot {
  text-align: center;
  color: var(--muted);
  padding-bottom: 40px;

/* Button styling when a user has already voted */
.voted {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
