.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  border-bottom: 2px solid var(--line);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--bg);
  background: var(--sky);
}

.admin-link {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}
.admin-link:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  text-decoration: none;
}

.discord-account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.discord-connect-btn {
  background: #5865f2;
  color: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 0 var(--line);
}
.discord-connect-btn:hover {
  filter: brightness(1.1);
}
.discord-connect-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.discord-avatar {
  border-radius: 50%;
  border: 2px solid var(--line);
  display: block;
}
.discord-username {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--ink);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discord-logout-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-dim);
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.discord-logout-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.player-card {
  background: var(--bg-card);
  border: 3px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-hard), inset 0 2px 0 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0 10px,
    var(--sky) 10px 20px
  );
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
}
.live-dot.on {
  color: var(--red);
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.listener-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-weight: 700;
}

.onair-banner {
  background: var(--red-deep);
  border: 2px solid rgba(255, 92, 114, 0.4);
  color: var(--red-ink);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 0.88rem;
}

.live-react-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.live-react-bar button {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 1.1rem;
  line-height: 1;
}
.live-react-bar button:hover {
  border-color: var(--sky);
}
.live-react-bar button:active {
  transform: scale(0.9);
}

.floating-reactions {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 500;
}
.floating-reaction {
  position: absolute;
  bottom: 0;
  font-size: 1.8rem;
  animation-name: float-reaction-up;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
@keyframes float-reaction-up {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; transform: translateY(-10vh) scale(1); }
  100% { transform: translateY(-90vh) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-reaction { animation-duration: 0.6s !important; }
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.cover {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid var(--line);
  flex-shrink: 0;
  box-shadow: 2px 2px 0 0 var(--line);
}

.now-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.now-sub {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.author-chip {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--sky);
  font-weight: 800;
  font-size: inherit;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
}
.author-chip:hover {
  color: var(--ink);
}

.now-playing {
  position: relative;
}

.skip-vote-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  box-shadow: 2px 2px 0 0 var(--line);
}
.skip-vote-btn:hover:not(:disabled) {
  border-color: var(--sky);
  color: var(--sky);
}
.skip-vote-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.skip-vote-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.skip-vote-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-weight: 700;
  margin-top: -14px;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.45), transparent 55%), var(--blue);
  color: var(--ink);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 0 var(--line);
}
.play-btn:hover {
  filter: brightness(1.08);
}
.play-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--line);
}

input[type="range"] {
  flex: 1;
  accent-color: var(--sky);
}

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 130%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  max-width: calc(100% - 32px);
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  z-index: 500;
  transition: transform 0.25s ease;
}
.mini-player.visible {
  transform: translate(-50%, 0);
}
.mini-player-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.45), transparent 55%), var(--blue);
  color: var(--ink);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-player-title {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

#volume-label {
  font-family: var(--mono);
  color: var(--ink-dim);
  width: 42px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
}

.sleep-timer-select {
  flex-shrink: 0;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}
.sleep-timer-status {
  margin-top: -18px;
  margin-bottom: 18px;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.next-up h3 {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-up ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-up li {
  padding: 10px 14px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border-left: 3px solid var(--line);
}

.next-up li.is-pub {
  border-left-color: var(--amber);
  color: var(--amber);
}

h2 {
  margin-top: 0;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.list-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-panel.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.item-row {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.item-row .title {
  font-weight: 700;
}
.item-row .meta {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 2px;
}

.replay-own-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.replay-own-actions button {
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.replay-own-actions .secondary-btn {
  background: var(--bg-raised);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.replay-own-actions .secondary-btn:hover { border-color: var(--sky); color: var(--sky); }
.replay-own-actions .danger-btn {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.replay-own-actions .danger-btn:hover { background: var(--red); color: var(--ink); }

.dedication-like-btn {
  margin-top: 10px;
  background: var(--bg-raised);
  color: var(--ink-dim);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.dedication-like-btn:hover { border-color: var(--red); }
.dedication-like-btn.liked { color: var(--red); border-color: var(--red); }

.author-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-hard);
}
.author-card .name {
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.author-card .desc {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.author-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.author-card .links a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.creator-open-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%), var(--blue);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 0 var(--line);
}
.creator-open-btn:hover {
  filter: brightness(1.08);
}
.creator-open-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.author-card.highlight {
  animation: author-pulse 1.8s ease-out;
}
@keyframes author-pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 208, 255, 0.55), var(--shadow-hard); border-color: var(--sky); }
  100% { box-shadow: 0 0 0 14px rgba(95, 208, 255, 0), var(--shadow-hard); border-color: var(--line); }
}

.programme-day {
  font-family: var(--mono);
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.programme-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.programme-item .time {
  font-family: var(--mono);
  color: var(--sky);
  font-weight: 800;
  min-width: 48px;
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.empty {
  color: var(--ink-dim);
  font-size: 0.9rem;
  padding: 12px 0;
}

.poll-card {
  margin-top: 20px;
  padding: 18px 22px;
  border: 2px solid var(--line);
}
.poll-card h3 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 800;
}
.poll-question {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  text-align: left;
}
.poll-option:hover {
  border-color: var(--sky);
}
.poll-option:disabled {
  cursor: default;
}
.poll-option .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: color-mix(in srgb, var(--blue) 35%, transparent);
  transition: width 0.4s ease;
  z-index: 0;
}
.poll-option .label,
.poll-option .pct {
  position: relative;
  z-index: 1;
}
.poll-option.voted {
  border-color: var(--sky);
}
.poll-option.voted .label::before {
  content: "✓ ";
}
.poll-total {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-card {
  margin-top: 20px;
  padding: 22px 24px;
  border: 2px solid var(--line);
}
.chat-card h3 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 800;
}
.chat-hint {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}
.chat-messages:empty::before {
  content: "Aucun message pour le moment. Lance la discussion !";
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.track-attribution {
  margin-top: 5px;
  color: var(--ink-dim);
  font-size: 0.72rem;
  line-height: 1.5;
}
.track-attribution a {
  color: var(--sky);
}

.chat-msg {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg .author {
  font-weight: 800;
  color: var(--sky);
  margin-right: 6px;
}
.chat-msg .badge-discord {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue-ink);
  background: var(--blue-deep);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  margin-right: 6px;
  vertical-align: middle;
}
.chat-msg .chat-activity-badge {
  margin-right: 4px;
  vertical-align: middle;
}

.chat-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-pseudo-input {
  flex: 0 0 110px;
}
.chat-text-input {
  flex: 1;
  min-width: 140px;
}
.chat-pseudo-input,
.chat-text-input {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.chat-pseudo-input:focus,
.chat-text-input:focus {
  outline: none;
  border-color: var(--sky);
}
.chat-send-btn {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--blue);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 0 var(--line);
}
.chat-send-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.chat-error {
  margin-top: 10px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
}

.about-card {
  padding: 22px 24px;
  border: 2px solid var(--line);
}
.about-card p {
  color: var(--ink-dim);
  line-height: 1.7;
  font-weight: 600;
}
.about-card p:last-child {
  margin-bottom: 0;
}
.about-card code {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-family: var(--mono);
  color: var(--sky);
  font-size: 0.9em;
}

.mascot-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 0 var(--blue-deep));
  animation: mascot-sway 3.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.mascot-body,
.mascot-limb {
  fill: var(--blue);
  stroke: var(--bg);
  stroke-width: 2.5;
}
.mascot-eye-white {
  fill: #fffefc;
  stroke: var(--bg);
  stroke-width: 1.5;
}
.mascot-eye {
  fill: var(--bg);
}
.mascot-cheek {
  fill: #ff9db3;
  opacity: 0.7;
}
.mascot-mouth {
  stroke: var(--bg);
}
@keyframes mascot-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.mascot.excited {
  animation: mascot-bounce 0.6s ease-in-out infinite;
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}
.mascot.cheering {
  animation: mascot-cheer 0.5s ease-in-out infinite;
}
@keyframes mascot-cheer {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50% { transform: translateY(-6px) rotate(8deg) scale(1.08); }
}
.mascot.happy {
  animation: mascot-happy 0.4s ease-out;
}
@keyframes mascot-happy {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
.mascot.talking .mascot-mouth {
  animation: mascot-talk 0.32s ease-in-out infinite;
  transform-origin: 30px 35px;
}
@keyframes mascot-talk {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.35); }
}

.mascot-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: max-content;
  max-width: min(260px, calc(100vw - 40px));
  max-height: 45vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 0 var(--line);
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
  transform: scale(0.7);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.mascot-bubble::after,
.mascot-bubble::before {
  content: "";
  position: absolute;
  right: 12px;
  border: 7px solid transparent;
}
.mascot-bubble::after {
  top: 100%;
  border-top-color: var(--line);
}
.mascot-bubble::before {
  top: calc(100% - 3px);
  border-width: 5px;
  right: 14px;
  border-top-color: var(--bg-card);
}
.mascot-bubble.show {
  opacity: 1;
  transform: scale(1);
}

.visualizer {
  display: block;
  width: 100%;
  height: 36px;
  margin: -8px 0 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 2px solid var(--line);
}

.recently-played {
  margin-top: 18px;
}
.recently-played li {
  opacity: 0.75;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.search-input:focus {
  outline: none;
  border-color: var(--sky);
}

.like-btn {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.like-btn:hover {
  color: var(--red);
}
.like-btn.liked {
  color: var(--red);
}

.stats-card-public h3 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
}
.stats-row .value {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
}
.leaderboard-export-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
}
.leaderboard-export-btn:hover {
  border-color: var(--sky);
}

.audience-chart {
  width: 100%;
  height: 140px;
  display: block;
}

.creator-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 10, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.creator-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  border-width: 3px;
  box-shadow: var(--shadow-hard-blue);
}
.creator-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink);
}
.creator-modal-desc {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.creator-modal-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 0.85rem;
}

.chat-typing {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
  height: 1.2em;
  margin: -6px 0 8px;
}

.chat-msg-reactions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.chat-react-btn {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  padding: 1px 8px;
  color: var(--ink-dim);
}
.chat-react-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.chat-react-btn.mine {
  border-color: var(--sky);
  background: var(--sky-deep);
  color: var(--sky-ink);
}
.chat-react-add {
  display: inline-flex;
  gap: 2px;
}
.chat-react-add button {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  padding: 0 2px;
  opacity: 0.6;
}
.chat-react-add button:hover {
  opacity: 1;
}

.featured-track-card {
  padding: 18px 22px;
  border: 3px solid var(--sky);
  margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 12%, var(--bg-card)), var(--bg-card));
}
.featured-track-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sky);
  margin-bottom: 8px;
}
.featured-track-card .title {
  font-weight: 800;
  font-size: 1.1rem;
}
.featured-track-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.propose-card {
  padding: 20px 22px;
  border: 2px solid var(--line);
  margin-bottom: 18px;
}
.propose-card h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
}
.propose-hint {
  color: var(--ink-dim);
  font-size: 0.8rem;
  margin: 0 0 14px;
}
.propose-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.propose-form input {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  min-width: 160px;
}
.propose-form input:focus {
  outline: none;
  border-color: var(--sky);
}
.propose-submit-btn {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--blue);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 0 var(--line);
  flex-shrink: 0;
}
.propose-submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.propose-submit-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.propose-status {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.propose-status.ok { color: var(--sky); }
.propose-status.error { color: var(--red); }

.record-program-card {
  padding: 20px 22px;
  border: 2px solid var(--line);
  margin-bottom: 18px;
}
.record-program-card h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
}
.record-program-hint {
  color: var(--ink-dim);
  font-size: 0.8rem;
  margin: 0 0 14px;
}
.record-program-btn {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--red);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 2px 2px 0 0 var(--line);
}
.record-program-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.record-program-btn.is-recording {
  background: var(--bg-raised);
  color: var(--red);
  border-color: var(--red);
}
.record-program-status {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.record-program-status.ok { color: var(--sky); }
.record-program-status.error { color: var(--red); }

.vote-proposal-row {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.vote-proposal-row .title {
  font-weight: 700;
}
.vote-proposal-row .meta {
  color: var(--ink-dim);
  font-size: 0.8rem;
  margin: 2px 0 10px;
}
.vote-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vote-btn {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  color: var(--ink-dim);
  font-weight: 700;
  font-size: 0.8rem;
}
.vote-btn:hover {
  border-color: var(--sky);
  color: var(--ink);
}
.vote-btn.mine {
  border-color: var(--sky);
  background: var(--sky-deep);
  color: var(--sky-ink);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

.topbar {
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-raised);
}

.tab-btn {
  padding: 9px 12px;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tab-btn[data-tab="createurs"],
.tab-btn[data-tab="apropos"] {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-link,
.discord-connect-btn {
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

main {
  max-width: 1160px;
  padding: 36px clamp(16px, 3vw, 32px) 72px;
}

.player-card,
.propose-card,
.record-program-card,
.featured-track-card,
.author-card,
.item-row,
.vote-proposal-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.player-card {
  background: var(--bg-card);
}

.player-card::before {
  height: 3px;
  background: var(--sky);
}

.tab-panel > h2,
.creator-modal-card > h3,
.history-modal .creator-modal-card > h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

#tab-createurs > h2,
#tab-apropos > h2 {
  font-family: var(--font);
  font-weight: 700;
}

.propose-card h3,
.record-program-card h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.propose-hint,
.record-program-hint {
  font-size: 0.875rem;
  line-height: 1.6;
}

.tab-panel .title,
.creator-modal .title {
  position: static;
  padding-left: 0;
  border-left: 0;
  color: inherit;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.tab-panel .featured-track-card .title {
  font-size: 1.125rem;
  font-weight: 700;
}

.tab-panel input:not([type="range"]),
.tab-panel textarea,
.tab-panel select {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

.tab-panel button {
  font-family: var(--font);
  border-radius: var(--radius-sm);
}

.live-dot,
.next-up h3,
.programme-day {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark .wordmark {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.brand-mark .brand-logo {
  border-radius: 4px;
  filter: drop-shadow(0 0 4px rgba(88, 200, 212, 0.18));
}

.tab-btn {
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tab-btn[data-tab="createurs"],
.tab-btn[data-tab="apropos"] {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-card .play-btn,
.mini-player-play,
.propose-submit-btn,
.creator-open-btn,
.record-program-btn {
  background-image: none;
}

.site-footer {
  max-width: 1160px;
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-mark {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .discord-account {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-link {
    grid-column: 3;
    grid-row: 2;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }

  .tab-btn {
    padding: 8px 9px;
    font-size: 0.5rem;
  }

  .tab-btn[data-tab="createurs"],
  .tab-btn[data-tab="apropos"] {
    font-size: 0.68rem;
  }

  main {
    padding: 24px 14px 56px;
  }

  .player-card {
    padding: 20px 16px;
  }

  .controls {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .sleep-timer-select {
    grid-column: 1 / -1;
    justify-self: end;
  }

  #volume-label {
    width: auto;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
  }

  .brand-mark,
  .discord-account,
  .theme-toggle,
  .admin-link {
    grid-row: 1;
  }

  .brand-mark { grid-column: 1; }
  .discord-account { grid-column: 2; }
  .theme-toggle { grid-column: 3; }
  .admin-link { grid-column: 4; }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }
}
