:root {
  --bg: #0b0c10;
  --bg-alt: #11131a;
  --surface: #161923;
  --surface-hover: #1d2130;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #ff8200;
  --accent-soft: rgba(255, 130, 0, 0.14);
  --accent-glow: rgba(255, 130, 0, 0.32);
  --green: #22c55e;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* Custom Theme Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b3040 0%, #1d212e 100%);
  border: 2px solid var(--bg);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 130, 0, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent) 0%, #d96900 100%);
  box-shadow: 0 0 10px var(--accent-glow);
}

::-webkit-scrollbar-thumb:active {
  background: #ffb347;
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 130, 0, 0.55) #0b0c10;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -15% auto auto 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 130, 0, 0.14) 0%, rgba(255, 130, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.container-wide {
  width: min(1480px, 95vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  max-width: 170px;
  display: block;
  object-fit: contain;
}

.mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  background: #ff9424;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  max-height: calc(100vh - 66px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 5vw calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  z-index: 99;
}

.mobile-drawer[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .mobile-drawer {
    top: 56px;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
  }
}

.mobile-drawer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

/* Hero Banner */
.hero {
  padding: 28px 0 22px;
}

.hero-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.1) 0%, rgba(22, 25, 35, 0.94) 60%);
  border: 1px solid rgba(255, 130, 0, 0.25);
  border-radius: 20px;
  padding: 22px 28px;
}

.hero-copy,
.hero-logo-wrap {
  position: relative;
  z-index: 2;
}

.elo-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
  padding: 10px 0;
  pointer-events: none;
  opacity: 0.24;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.elo-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: eloScroll 48s linear infinite;
}

.elo-track.reverse {
  animation-direction: reverse;
  animation-duration: 58s;
}

.elo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 130, 0, 0.1);
  border: 1px solid rgba(255, 130, 0, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #ffd19e;
  white-space: nowrap;
}

.elo-chip strong {
  color: var(--accent);
}

@keyframes eloScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 130, 0, 0.35);
  color: #ffb86c;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-logo-wrap {
  flex-shrink: 0;
}

.hero-big-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* 2-Column Hub: Main Streams+Chat | Right Ravers+Discord */
.hub-section {
  padding: 10px 0 48px;
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.hub-col {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hub-right .row-sub {
  white-space: normal;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.channel-tag {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.count-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 130, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.panel-body {
  display: grid;
  gap: 8px;
}

/* Rows */
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.data-row:hover {
  background: var(--surface-hover);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.rank-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.84rem;
  width: 26px;
  flex-shrink: 0;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #232736;
  flex-shrink: 0;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: normal;
  word-break: break-word;
  color: var(--text);
  text-decoration: none;
  display: block;
}

a.row-title:hover {
  color: var(--accent);
}

.row-sub {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-right {
  text-align: right;
  flex-shrink: 0;
}

.pts {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.82rem;
}

.tier-pill {
  font-size: 0.68rem;
  color: #ffb86c;
}

/* Full-Blown Video Embeds */
.embeds-stack {
  display: grid;
  gap: 18px;
}

.stream-embed-card {
  background: #101219;
  border: 1px solid rgba(255, 130, 0, 0.28);
  border-radius: 14px;
  overflow: hidden;
}

.stream-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stream-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 130, 0, 0.35);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
}

.stream-embed-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  background: #07080c;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07080c;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chat-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-left: 1px solid var(--border);
  background: #0e0e10;
}

.chat-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.discord-widget-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #101219;
}

.discord-widget-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

.mixcloud-live-box {
  padding: 18px;
  display: grid;
  gap: 12px;
  background: #0d0f16;
}

/* Latest Mixes underneath center embeds */
.mixes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.empty-state {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* Dedicated Page Helpers */
.page-shell {
  padding: 28px 0 56px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0 0 6px;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.ravers-filter {
  flex: 0 1 340px;
  min-width: 220px;
}

.ravers-filter .search-input {
  width: 100%;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-tile-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-tile-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin-top: 4px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 130, 0, 0.45);
}

.search-input {
  width: min(420px, 100%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-bar-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.raver-card,
.mix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.mix-card .row-left,
.mix-card .row-main {
  min-width: 0;
  flex: 1;
}

.mix-card .row-title {
  white-space: normal;
  word-break: break-word;
}

.mix-card iframe {
  max-width: 100%;
  width: 100%;
  display: block;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.podium-card {
  background: linear-gradient(150deg, rgba(255, 130, 0, 0.14), var(--surface));
  border: 1px solid rgba(255, 130, 0, 0.35);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.podium-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.podium-card.rank-1 { border-color: rgba(255, 215, 0, 0.6); background: linear-gradient(150deg, rgba(255, 215, 0, 0.14), var(--surface)); }
.podium-card.rank-2 { border-color: rgba(192, 192, 192, 0.55); background: linear-gradient(150deg, rgba(192, 192, 192, 0.12), var(--surface)); }
.podium-card.rank-3 { border-color: rgba(205, 127, 50, 0.55); background: linear-gradient(150deg, rgba(205, 127, 50, 0.12), var(--surface)); }

.podium-badge {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.rank-1 .podium-badge { background: rgba(255, 215, 0, 0.22); color: #ffd700; border: 2px solid rgba(255, 215, 0, 0.65); }
.rank-2 .podium-badge { background: rgba(192, 192, 192, 0.22); color: #e5e7eb; border: 2px solid rgba(192, 192, 192, 0.6); }
.rank-3 .podium-badge { background: rgba(205, 127, 50, 0.22); color: #f59e0b; border: 2px solid rgba(205, 127, 50, 0.6); }

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dj-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.dj-badge.resident {
  background: rgba(255, 130, 0, 0.2);
  color: var(--accent);
  border: 1px solid rgba(255, 130, 0, 0.45);
}

.dj-badge.community {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Live Status Indicators */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-ok { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.status-ok .status-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22); animation: pulseDot 2s infinite; }
.status-warn { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.status-warn .status-dot { background: #f59e0b; }
.status-fail { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.status-fail .status-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22); }
.status-idle { background: rgba(156, 163, 175, 0.12); color: var(--muted); border: 1px solid var(--border); }
.status-idle .status-dot { background: #9ca3af; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.notice-box {
  background: rgba(255, 130, 0, 0.08);
  border: 1px solid rgba(255, 130, 0, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
}

.notice-box > strong {   /* the box's title only; bold words inside its text stay inline */
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

.notice-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-block {
  margin-top: 14px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.scroll-box {
  max-height: 310px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 130, 0, 0.45);
}

.profile-tab-panel[hidden] {
  display: none;
}

/* Red LIVE indicator for leaderboard */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.is-rank-1 {
  border-color: rgba(255, 215, 0, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 8px 20px rgba(255, 215, 0, 0.08);
}

.is-rank-2 {
  border-color: rgba(192, 192, 192, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.18), 0 8px 20px rgba(192, 192, 192, 0.06);
}

.is-rank-3 {
  border-color: rgba(205, 127, 50, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.18), 0 8px 20px rgba(205, 127, 50, 0.06);
}

.is-live-card {
  border-color: rgba(239, 68, 68, 0.72) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3), 0 8px 24px rgba(239, 68, 68, 0.14) !important;
}

/* Compact Events Strip on Front Page */
.events-strip-section {
  padding: 0 0 14px;
}

.events-strip-card {
  background: rgba(22, 25, 35, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
}

.events-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.events-strip-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

/* Interactive 2-Column Wiki */
.wiki-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 6px;
}

.wiki-nav-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wiki-nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.wiki-nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 130, 0, 0.45);
}

.wiki-article h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.wiki-article p.wiki-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Real-Time Elo Tracker */
.tracker-feed-grid {
  display: grid;
  gap: 12px;
}

.tracker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tracker-card:hover {
  border-color: rgba(255, 130, 0, 0.35);
}

.tracker-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: rgba(255, 130, 0, 0.14);
  border: 1px solid rgba(255, 130, 0, 0.3);
  flex-shrink: 0;
}

.ev-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.ev-promo { background: rgba(255, 215, 0, 0.16); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.45); }
.ev-mixcloud { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.ev-raid { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.45); }
.ev-bounty { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.ev-link { background: rgba(255, 130, 0, 0.16); color: #ffb86c; border: 1px solid rgba(255, 130, 0, 0.4); }

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mixes-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.elo-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .mixes-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}

.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.mobile-embed-placeholder {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0d0f16;
}

@media (max-width: 1020px) {
  .lb-grid,
  .status-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lb-grid,
  .status-groups-grid {
    grid-template-columns: 1fr;
  }
}

.chip-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-link {
  font-size: 0.76rem;
  color: #ffd19e;
  background: rgba(255, 130, 0, 0.1);
  border: 1px solid rgba(255, 130, 0, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  text-decoration: none;
}

.mini-link:hover {
  background: rgba(255, 130, 0, 0.22);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.profile-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .stats-strip,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats-strip,
  .podium-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .stream-embed-media {
    grid-template-columns: 1fr;
  }

  .chat-frame-wrap {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1320px) {
  .nav-links,
  .sync-pill {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 780px) {
  .hero-bar {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }

  .mixes-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

.ravers-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.raver-group-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raver-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.raver-earning { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.raver-lurking { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.raver-limit { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.raver-paused { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

@media (max-width: 1200px) {
  .ravers-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ravers-groups-grid {
    grid-template-columns: 1fr;
  }
}

.ravers-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.ravers-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.raver-spotlight-card {
  background: linear-gradient(145deg, rgba(255, 130, 0, 0.12), var(--surface));
  border: 1px solid rgba(255, 130, 0, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raver-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.raver-spotlight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.raver-spotlight-title a {
  color: var(--text);
  text-decoration: none;
}

.raver-spotlight-title a:hover {
  color: var(--accent);
}

.raver-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.raver-watcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.raver-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
}

.raver-mini-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.raver-mini-chip strong {
  color: #4ade80;
  font-family: "JetBrains Mono", monospace;
}

.ravers-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.raver-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.raver-showcase-card:hover {
  border-color: rgba(255, 130, 0, 0.45);
  transform: translateY(-2px);
}

.raver-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.raver-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.raver-avatar-lg.ring-earning { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.raver-avatar-lg.ring-lurking { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18); }
.raver-avatar-lg.ring-limit { border-color: #f59e0b; }
.raver-avatar-lg.ring-paused { border-color: #ef4444; }

.raver-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.raver-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.raver-metric-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.raver-metric-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.raver-metric-val.accent {
  color: #4ade80;
}

.raver-watching-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.raver-watching-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.live-dot-inline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}

.raver-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .ravers-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ravers-kpi-grid {
    grid-template-columns: 1fr;
  }
  .ravers-showcase-grid,
  .ravers-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.wiki-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.wiki-nav-btn span {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

.podcast-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 22px;
  flex-wrap: wrap;
}

.podcast-cover {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.podcast-hero-body {
  flex: 1;
  min-width: 240px;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.podcast-ep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podcast-ep-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.podcast-ep-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.podcast-ep-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-audio {
  width: 100%;
  height: 40px;
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bandcamp-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.sticky-player-bar {
  position: sticky;
  bottom: 12px;
  z-index: 40;
  background: rgba(17, 19, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 130, 0, 0.45);
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.bounty-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.bounty-workspace.is-single {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.bounty-col-panel {
  min-width: 0;
}

.bounty-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.bounty-period-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bounty-period-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.12), rgba(22, 25, 35, 0.96) 65%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bounty-period-head.is-weekly {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.14), rgba(22, 25, 35, 0.96) 65%);
}

.bounty-period-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bounty-period-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bounty-groups-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bounty-subgroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bounty-subgroup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd19e;
}

.bounty-subgroup-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.bounty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bounty-workspace.is-single .bounty-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.bounty-card {
  background: rgba(11, 12, 16, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.bounty-card:hover {
  border-color: rgba(255, 130, 0, 0.35);
}

.bounty-card.is-done {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(11, 12, 16, 0.6));
}

.bounty-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bounty-card-titlewrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.bounty-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 130, 0, 0.28);
  font-size: 1rem;
  flex-shrink: 0;
}

.bounty-card.is-done .bounty-icon-badge {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
}

.bounty-card-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.3;
}

.bounty-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.bounty-reward-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 130, 0, 0.35);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.bounty-card.is-done .bounty-reward-pill {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.bounty-claimers-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1200px) {
  .bounty-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .bounty-side-col {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bounty-workspace.is-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .bounty-workspace,
  .bounty-workspace.is-single,
  .bounty-side-col {
    grid-template-columns: 1fr;
  }
  .bounty-workspace.is-single .bounty-grid {
    grid-template-columns: 1fr;
  }
}

.mix-supporters-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mix-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .releases-grid,
  .bounty-grid {
    grid-template-columns: 1fr;
  }
}

a {
  color: var(--accent);
}

a.row-title,
.row-title a,
.mini-link,
.podcast-ep-card a:not(.btn),
.release-card a:not(.btn) {
  color: var(--accent);
}

.btn-primary {
  color: #111111;
}

.btn-ghost {
  color: var(--accent);
}

.elo-side-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.elo-side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.elo-side-top .row-left,
.elo-side-top .row-main {
  min-width: 0;
  flex: 1;
}

.elo-side-top .row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  white-space: normal;
  word-break: break-word;
}

.elo-side-top .pts {
  flex-shrink: 0;
  white-space: nowrap;
}

.elo-side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-hero-banner {
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.14), rgba(17, 19, 26, 0.96) 55%);
  border: 1px solid rgba(255, 130, 0, 0.3);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.profile-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar-xl {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px rgba(255, 130, 0, 0.25);
  flex-shrink: 0;
}

.profile-pts-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: right;
  min-width: 150px;
}

.profile-pts-big {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.elo-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.elo-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.elo-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

.dj-badge.staff {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.panel-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.panel-mode-toggle .mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.panel-mode-toggle .mode-btn.active {
  background: var(--accent);
  color: #111111;
}

/* Mobile short Discord button */
.nav-discord-short { display: none; }
@media (max-width: 760px) {
  .nav-discord-full { display: none; }
  .nav-discord-short { display: inline; }
  .nav-actions .btn { padding: 6px 12px; font-size: 0.78rem; border-radius: 8px; }
}

/* Live Streams Header Colored Stats */
.live-metrics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.live-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.live-stat-pill.pill-total { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.live-stat-pill.pill-res { background: rgba(255, 130, 0, 0.16); border-color: rgba(255, 130, 0, 0.45); color: #ffb86c; }
.live-stat-pill.pill-com { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.45); color: #7dd3fc; }
.live-stat-pill.pill-view { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.45); color: #86efac; }

/* Mobile Mixes & Bounties Toggles */
.mixes-mobile-toggle,
.bounty-mobile-switch {
  display: none;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .mixes-mobile-toggle { display: flex; }
  .mixes-layout.mob-show-mixes .mixes-earners-pane { display: none; }
  .mixes-layout.mob-show-earners .mixes-feed-pane { display: none; }
}
@media (max-width: 820px) {
  .bounty-mobile-switch { display: flex; }
  .bounty-workspace[data-mobcol="daily"] #bountyWeeklyCol,
  .bounty-workspace[data-mobcol="daily"] .bounty-side-col { display: none !important; }
  .bounty-workspace[data-mobcol="weekly"] #bountyDailyCol,
  .bounty-workspace[data-mobcol="weekly"] .bounty-side-col { display: none !important; }
  .bounty-workspace[data-mobcol="side"] #bountyDailyCol,
  .bounty-workspace[data-mobcol="side"] #bountyWeeklyCol { display: none !important; }
  .bounty-period-card { border-radius: 14px; }
  .bounty-groups-body { padding: 12px; gap: 14px; }
  .bounty-card { padding: 12px; }
}

/* Releases Overhaul */
.releases-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 430px;
  gap: 20px;
  align-items: start;
}
.releases-catalog-col,
.releases-player-col { min-width: 0; }
.releases-workspace .release-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 130, 0, 0.3), 0 8px 24px rgba(255, 130, 0, 0.12);
}
.bandcamp-wrap {
  padding: 16px;
  display: flex;
  justify-content: center;
}
.release-thumb-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.release-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.release-thumb-body {
  flex: 1;
  min-width: 0;
}
.releases-player-card {
  border-color: rgba(255, 130, 0, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 130, 0, 0.08);
}
@media (max-width: 600px) {
  .release-thumb-row {
    flex-direction: column;
    gap: 12px;
  }
  .release-thumb {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 1020px) {
  .releases-workspace { grid-template-columns: 1fr; }
  .releases-player-col article { position: static !important; }
  .bandcamp-wrap { padding: 12px; }
}

/* Podcast Mobile & Overhaul */
.podcast-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
@media (max-width: 720px) {
  .podcast-ep-grid { grid-template-columns: 1fr; }
  .podcast-hero { flex-direction: column; align-items: stretch; }
  .podcast-cover { width: 100% !important; max-width: 240px; height: auto !important; margin: 0 auto; }
  .sticky-player-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .sticky-player-bar audio { width: 100% !important; min-width: 0 !important; }
}

/* Ravers Right Column Uniform Stack */
.raver-stack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.raver-user-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.raver-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.raver-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Profile Social Icon Buttons & Overhaul */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text) !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-icon-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 130, 0, 0.12);
}
.social-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dashboard Multi-Column Grid */
.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .dash-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dash-grid-3 { grid-template-columns: 1fr; }
}

/* =====================================================================================================
   GLOW-UP (IJ, 26 Nov): grouped top nav, card frames + glow, hover motion, ember particles.
   Everything here is additive and switches off for visitors who ask for reduced motion.
   ===================================================================================================== */

@property --fx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Top nav ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.92), rgba(11, 12, 16, 0.78));
  border-bottom: 1px solid rgba(255, 130, 0, 0.14);
  box-shadow: 0 10px 30px -18px rgba(255, 130, 0, 0.45);
}
.site-header::after {            /* a thin glowing line under the bar */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 130, 0, 0.75), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.brand-logo {
  transition: transform 0.35s ease, filter 0.35s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 130, 0, 0.8));
}

.nav-menu {
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-item,
.nav-menu > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.site-header .nav-item:hover,
.nav-group:focus-within > .nav-trigger,
.nav-group.open > .nav-trigger {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.site-header .nav-item.active {
  color: #111;
  background: linear-gradient(135deg, #ffa133, var(--accent));
  box-shadow: 0 0 18px rgba(255, 130, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-group {
  position: relative;
}
.nav-group:hover .nav-caret,
.nav-group.open .nav-caret {
  transform: translateY(1px) rotate(-135deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 270px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  background: rgba(17, 19, 26, 0.97);
  border: 1px solid rgba(255, 130, 0, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 30px -10px rgba(255, 130, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-dropdown::before {          /* hover bridge so the menu doesn't close in the gap */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-group:hover > .nav-dropdown,
.nav-group:focus-within > .nav-dropdown,
.nav-group.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(255, 130, 0, 0.1);
  transform: translateX(3px);
}
.nav-dropdown a.active {
  background: rgba(255, 130, 0, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-dropdown b {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}
.nav-dropdown small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 1px;
}
.nav-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}
.nav-pill-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-actions {
  gap: 8px;
}
.nav-discord {
  position: relative;
  overflow: hidden;
}

/* Mobile drawer, grouped */
.drawer-group {
  display: grid;
  gap: 10px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--border);
}
.drawer-head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.mobile-drawer a.active {
  color: var(--accent);
}

/* Show the grouped nav down to tablet width; the burger menu takes over below that. */
@media (min-width: 901px) {
  .nav-menu {
    display: flex !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
}
@media (max-width: 1180px) {
  .nav-pill-link {
    display: none;
  }
  .nav-item,
  .nav-menu > a {
    padding: 8px 11px;
  }
}
@media (max-width: 900px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

/* ---------- Cards: lift, glow and an animated frame on hover ---------- */
.panel-card,
.mix-card,
.podium-card,
.stat-tile,
.stream-embed-card,
.raver-showcase-card,
.raver-spotlight-card,
.release-card,
.podcast-ep-card,
.bounty-card,
.bounty-period-card,
.tracker-card,
.elo-side-card,
.events-strip-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.panel-card::after,
.mix-card::after,
.podium-card::after,
.stat-tile::after,
.stream-embed-card::after,
.raver-showcase-card::after,
.raver-spotlight-card::after,
.release-card::after,
.podcast-ep-card::after,
.bounty-card::after,
.bounty-period-card::after,
.tracker-card::after,
.elo-side-card::after,
.events-strip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--fx-angle), transparent 0deg, rgba(255, 130, 0, 0.9) 60deg,
              rgba(255, 210, 120, 0.9) 90deg, transparent 150deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.mix-card:hover,
.podium-card:hover,
.stat-tile:hover,
.stream-embed-card:hover,
.raver-showcase-card:hover,
.raver-spotlight-card:hover,
.release-card:hover,
.podcast-ep-card:hover,
.bounty-card:hover,
.bounty-period-card:hover,
.tracker-card:hover,
.elo-side-card:hover,
.events-strip-card:hover {
  transform: translateY(-3px);
}
.panel-card:hover,
.mix-card:hover,
.podium-card:hover,
.stat-tile:hover,
.stream-embed-card:hover,
.raver-showcase-card:hover,
.raver-spotlight-card:hover,
.release-card:hover,
.podcast-ep-card:hover,
.bounty-card:hover,
.bounty-period-card:hover,
.tracker-card:hover,
.elo-side-card:hover,
.events-strip-card:hover {
  border-color: rgba(255, 130, 0, 0.35);
  box-shadow: 0 14px 40px -18px rgba(255, 130, 0, 0.55), 0 0 0 1px rgba(255, 130, 0, 0.08);
}
.panel-card:hover::after,
.mix-card:hover::after,
.podium-card:hover::after,
.stat-tile:hover::after,
.stream-embed-card:hover::after,
.raver-showcase-card:hover::after,
.raver-spotlight-card:hover::after,
.release-card:hover::after,
.podcast-ep-card:hover::after,
.bounty-card:hover::after,
.bounty-period-card:hover::after,
.tracker-card:hover::after,
.elo-side-card:hover::after,
.events-strip-card:hover::after {
  opacity: 1;
  animation: fx-spin 3.2s linear infinite;
}
@keyframes fx-spin {
  to { --fx-angle: 360deg; }
}

/* Live cards breathe a soft red/orange glow all the time */
.is-live-card {
  animation: fx-live-glow 2.6s ease-in-out infinite;
}
@keyframes fx-live-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 70, 70, 0.25), 0 0 18px -6px rgba(255, 70, 70, 0.45); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 130, 0, 0.45), 0 0 34px -6px rgba(255, 130, 0, 0.6); }
}
.live-badge {
  animation: fx-badge 1.6s ease-in-out infinite;
}
@keyframes fx-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 60, 60, 0); }
}

/* Top-3 podium frames */
.podium-card.rank-1 { box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35), 0 0 30px -12px rgba(255, 215, 0, 0.7); }
.podium-card.rank-2 { box-shadow: 0 0 0 1px rgba(200, 210, 225, 0.3), 0 0 26px -12px rgba(200, 210, 225, 0.6); }
.podium-card.rank-3 { box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.35), 0 0 26px -12px rgba(205, 127, 50, 0.65); }

/* Rows and avatars */
.data-row {
  transition: background 0.2s ease, transform 0.2s ease;
}
.data-row:hover {
  background: rgba(255, 130, 0, 0.05);
  transform: translateX(2px);
}
.avatar,
.podium-avatar,
.profile-avatar-xl {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a:hover > .avatar,
.data-row:hover .avatar,
a:hover > .podium-avatar,
.podium-card:hover .podium-avatar {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(255, 130, 0, 0.7), 0 0 16px rgba(255, 130, 0, 0.55);
}

/* Buttons: lift + a light sweep */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(255, 130, 0, 0.6);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s ease;
}
.btn-ghost:hover {
  border-color: rgba(255, 130, 0, 0.45);
  box-shadow: 0 0 16px -4px rgba(255, 130, 0, 0.45);
}

/* Headings */
.page-header h1,
h1 {
  text-shadow: 0 0 28px rgba(255, 130, 0, 0.18);
}
.accent {
  background: linear-gradient(90deg, #ffb347, var(--accent), #ffd27a, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fx-shimmer 6s linear infinite;
}
@keyframes fx-shimmer {
  to { background-position: 300% 0; }
}

/* Cards rise in on first load only (later refreshes don't re-animate) */
body:not(.fx-ready) .panel-card,
body:not(.fx-ready) .stat-tile,
body:not(.fx-ready) .podium-card {
  animation: fx-rise 0.6s ease both;
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Ember particles (canvas added by app.js) */
#fxParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

/* ---------- Mix cards (Mixes page) ---------- */
.mixc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mixc-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}
.mixc-avatar {
  width: 44px;
  height: 44px;
}
.mixc-meta {
  min-width: 0;
}
.mixc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.15s ease;
}
.mixc-title:hover {
  color: var(--accent);
}
.mixc-by {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.mixc-by a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.mixc-facts {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.85;
}
.mixc-facts:empty {
  display: none;
}
.mixc-pts {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 130, 0, 0.1);
  border: 1px solid rgba(255, 130, 0, 0.3);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
}
.mixc-pts small {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mixc-player iframe {
  display: block;
  border-radius: 10px;
}
.mixc-support {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}
.mixc-sup-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mixc-sup-count {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
}
.mixc-sup-names {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.mixc-sup-names a {
  color: var(--text);
  text-decoration: none;
}
.mixc-sup-names a:hover {
  color: var(--accent);
}
.mixc-sup-empty {
  color: var(--muted);
  text-align: center;
}
.mixc-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mixc-act {
  --act: 255, 130, 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 9px;
  border-radius: 12px;
  border: 1px solid rgba(var(--act), 0.28);
  background: linear-gradient(180deg, rgba(var(--act), 0.12), rgba(var(--act), 0.04));
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mixc-act.mixc-favorite,
.mixc-sup-count.mixc-favorite { --act: 255, 77, 141; }
.mixc-act.mixc-repost,
.mixc-sup-count.mixc-repost { --act: 77, 163, 255; }
.mixc-act.mixc-listen_later,
.mixc-sup-count.mixc-listen_later { --act: 255, 184, 0; }
.mixc-sup-count {
  background: rgba(var(--act), 0.14);
  color: rgb(var(--act));
}
.mixc-act-ico {
  font-size: 1.1rem;
  line-height: 1;
}
.mixc-act-label {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.mixc-act-pts {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(var(--act), 0.2);
  color: rgb(var(--act));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}
.mixc-act:hover {
  border-color: rgba(var(--act), 0.7);
  box-shadow: 0 0 18px -4px rgba(var(--act), 0.6);
  transform: translateY(-2px);
}
.mixc-act:active {
  transform: translateY(0) scale(0.97);
}
.mixc-act.is-working {
  opacity: 0.6;
  pointer-events: none;
}
.mixc-act.is-done {
  --act: 34, 197, 94;
}
.mixc-status {
  min-height: 1em;
  font-size: 0.76rem;
  text-align: center;
  color: var(--muted);
}
.mixc-status:empty {
  display: none;
}
.mixc-status.is-ok { color: #22c55e; }
.mixc-status.is-warn { color: #fbbf24; }
.mixc-status.is-error { color: #f87171; }
@media (hover: none) {
  .mixc-act:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ---------- Releases page: spotlight + cover grid ---------- */
.rel-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 130, 0, 0.28);
  background: rgba(17, 19, 26, 0.85);
  box-shadow: 0 30px 80px -40px rgba(255, 130, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 34px;
  scroll-margin-top: 84px;      /* stop below the sticky header when scrolled to */
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.rel-spotlight.is-swapping {
  opacity: 0;
  transform: scale(0.985);
}
.rel-spot-bg {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(11, 12, 16, 0.94) 25%, rgba(11, 12, 16, 0.55)), var(--rel-art);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.3);
  opacity: 0.9;
}
.rel-spot-info {
  min-width: 0;
  animation: rel-in 0.5s ease both;
}
.rel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.rel-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.rel-tag-new {
  border-color: rgba(255, 130, 0, 0.6);
  background: linear-gradient(135deg, #ffa133, var(--accent));
  color: #111;
  box-shadow: 0 0 18px rgba(255, 130, 0, 0.5);
}
.rel-spot-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 130, 0, 0.35);
}
.rel-spot-artist {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.rel-spot-desc {
  margin: 16px 0 0;
  max-width: 560px;
  color: #d1d5db;
  line-height: 1.6;
}
.rel-spot-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.rel-spot-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}
.rel-spot-player {
  position: relative;
  width: min(400px, 100%);
  animation: rel-in 0.5s 0.08s ease both;
}
.rel-player-frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255, 160, 60, 0.9), rgba(255, 130, 0, 0.25) 40%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(255, 130, 0, 0.55);
}
.rel-player-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
/* A record peeking out from behind the sleeve; it spins and slides further out on hover. */
.rel-vinyl {
  position: absolute;
  top: 40px;
  left: -96px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0b0c10 0 5%, transparent 5.5%),
    repeating-radial-gradient(circle, #141414 0 2px, #1e1e1e 2px 4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: rel-spin 6s linear infinite;
  transition: left 0.5s ease;
}
.rel-vinyl span {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.6);
}
.rel-spotlight:hover .rel-vinyl {
  left: -150px;
}
.rel-spotlight.no-anim .rel-spot-info,
.rel-spotlight.no-anim .rel-spot-player {
  animation: none;
}
@keyframes rel-spin {
  to { transform: rotate(360deg); }
}
@keyframes rel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rel-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.rel-more-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(17, 19, 26, 0.8);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rel-card-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #0b0c10;
}
.rel-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.rel-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 1.3rem;
  box-shadow: 0 0 30px rgba(255, 130, 0, 0.8);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rel-card-new,
.rel-card-now {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.rel-card-new {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 14px rgba(255, 130, 0, 0.7);
}
.rel-card-now {
  left: auto;
  right: 8px;
  background: rgba(11, 12, 16, 0.85);
  color: var(--accent);
  border: 1px solid rgba(255, 130, 0, 0.6);
  display: none;
}
.rel-card-title {
  font-weight: 800;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-card-artist {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}
.rel-card-kind {
  color: var(--muted);
  font-size: 0.76rem;
}
.rel-card:hover,
.rel-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 130, 0, 0.5);
  box-shadow: 0 18px 40px -18px rgba(255, 130, 0, 0.6);
}
.rel-card:hover .rel-card-art img,
.rel-card:focus-visible .rel-card-art img {
  transform: scale(1.07);
  filter: brightness(0.7);
}
.rel-card:hover .rel-card-play,
.rel-card:focus-visible .rel-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.rel-card.is-current {
  border-color: rgba(255, 130, 0, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 130, 0, 0.35), 0 0 30px -8px rgba(255, 130, 0, 0.6);
}
.rel-card.is-current .rel-card-now {
  display: block;
}

@media (max-width: 980px) {
  .rel-spotlight {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 24px;
  }
  .rel-spot-player {
    justify-self: center;
  }
  .rel-vinyl {
    display: none;            /* no room beside the player on narrow screens */
  }
}
@media (max-width: 560px) {
  .rel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .rel-spot-ctas .btn {
    flex: 1 1 100%;
  }
}
@media (hover: none) {
  .rel-card:hover {
    transform: none;
  }
  .rel-card-play {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Mix card header: same height on every card so players and tiles line up across a row */
.mixc .mixc-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.mixc .mixc-avatar {
  width: 40px;
  height: 40px;
}
.mixc .mixc-title {
  min-height: 2.6em;               /* always room for two lines */
  font-size: 0.95rem;
}
.mixc .mixc-by {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mixc-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  min-width: 0;
}
.mixc-badges {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.mixc-badges .dj-badge,
.mixc-badges .live-badge {
  margin: 0 !important;
  padding: 2px 7px;
  font-size: 0.64rem;
  line-height: 1.4;
  white-space: nowrap;
}
.mixc .mixc-facts {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}
.mixc .mixc-pts {
  flex-direction: row;
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
}

/* ---------- Touch screens and phones ---------- */
/* Phones keep a tapped element "hovered": no lift, spinning frame or sweep there (also saves battery). */
@media (hover: none) {
  .panel-card:hover,
  .mix-card:hover,
  .podium-card:hover,
  .stat-tile:hover,
  .stream-embed-card:hover,
  .raver-showcase-card:hover,
  .raver-spotlight-card:hover,
  .release-card:hover,
  .podcast-ep-card:hover,
  .bounty-card:hover,
  .bounty-period-card:hover,
  .tracker-card:hover,
  .elo-side-card:hover,
  .events-strip-card:hover {
    transform: none;
  }
  .panel-card::after,
  .mix-card::after,
  .podium-card::after,
  .stat-tile::after,
  .stream-embed-card::after,
  .raver-showcase-card::after,
  .raver-spotlight-card::after,
  .release-card::after,
  .podcast-ep-card::after,
  .bounty-card::after,
  .bounty-period-card::after,
  .tracker-card::after,
  .elo-side-card::after,
  .events-strip-card::after {
    display: none;
  }
  .btn:hover,
  .data-row:hover,
  .nav-dropdown a:hover {
    transform: none;
  }
  .btn-primary::after {
    display: none;
  }
}
@media (max-width: 700px) {
  .tracker-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .tracker-card .row-left {
    width: 100%;
  }
  .tracker-card .ev-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  #trackerFilter {
    max-width: 100% !important;
    width: 100%;
  }
  .site-header {
    backdrop-filter: blur(6px);      /* heavy blur is expensive on phones */
  }
  #fxParticles {
    opacity: 0.5;
  }
  .is-live-card {
    animation-duration: 4s;
  }
  .nav-discord {
    padding: 7px 12px;
  }
  .mobile-drawer a {
    padding: 4px 0;                  /* bigger tap targets */
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  #fxParticles {
    display: none;
  }
}

.raver-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.raver-card-footer .mini-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-player-bar[hidden] {
  display: none !important;
}
.pod-player-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 130, 0, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}
.pod-player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.pod-player-meta {
  flex: 1;
  min-width: 0;
}
.pod-player-meta .row-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.pod-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #0b0c10;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pod-seek {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
  height: 5px;
}
.pod-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.mixes-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mixes-pager-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bounty-mobile-tabs {
  display: none;
}
@media (max-width: 760px) {
  .bounty-mobile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  .bounty-workspace[data-mob-tab="daily"] .bounty-period-card.is-weekly-card,
  .bounty-workspace[data-mob-tab="weekly"] .bounty-period-card.is-daily-card {
    display: none;
  }
  .bounty-period-head {
    padding: 12px 14px;
  }
  .bounty-groups-body {
    padding: 10px 12px;
    gap: 10px;
  }
  .bounty-card {
    padding: 10px 12px;
    gap: 7px;
  }
  .bounty-card-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bounty-claimers-foot .raver-watcher-pills .raver-mini-chip:nth-child(n+4) {
    display: none;
  }
}

.prof-act-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.prof-act-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.prof-act-pill:hover {
  border-color: rgba(255, 130, 0, 0.45);
  background: rgba(255, 130, 0, 0.1);
}
.prof-act-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.prof-act-pill .pts-tag {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
}
.prof-act-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 130, 0, 0.25);
  background: rgba(255, 130, 0, 0.06);
  font-size: 0.85rem;
}

.tracker-card.ev-promo { border-color: rgba(255, 215, 0, 0.45); }
.tracker-card.ev-mixcloud { border-color: rgba(56, 189, 248, 0.42); }
.tracker-card.ev-raid { border-color: rgba(168, 85, 247, 0.45); }
.tracker-card.ev-bounty { border-color: rgba(34, 197, 94, 0.42); }
.tracker-card.ev-link { border-color: rgba(255, 130, 0, 0.42); }

.tier-gm       { border-color: rgba(244, 114, 182, 0.75); background: rgba(244, 114, 182, 0.18); color: #f9a8d4; box-shadow: 0 0 12px rgba(244, 114, 182, 0.35); }
.tier-elite    { border-color: rgba(56, 189, 248, 0.75);  background: rgba(56, 189, 248, 0.18);  color: #7dd3fc; box-shadow: 0 0 12px rgba(56, 189, 248, 0.35); }
.tier-titan    { border-color: rgba(250, 204, 21, 0.75);  background: rgba(250, 204, 21, 0.18);  color: #fde047; box-shadow: 0 0 12px rgba(250, 204, 21, 0.35); }
.tier-mythic   { border-color: rgba(239, 68, 68, 0.75);   background: rgba(239, 68, 68, 0.18);   color: #fca5a5; box-shadow: 0 0 12px rgba(239, 68, 68, 0.38); }
.tier-iconic   { border-color: rgba(34, 197, 94, 0.8);    background: rgba(34, 197, 94, 0.2);    color: #4ade80; box-shadow: 0 0 14px rgba(34, 197, 94, 0.42); }

/* =====================================================================================================
   SMART PILLS — Unified pill system driven by --pill-rgb
   ===================================================================================================== */
:root {
  --rgb-mixcloud: 77, 163, 255;
  --rgb-twitch: 168, 85, 247;
  --rgb-discord: 88, 101, 242;
  --rgb-bandcamp: 29, 160, 195;
  --rgb-resident: 255, 130, 0;
  --rgb-community: 56, 189, 248;
  --rgb-staff: 34, 197, 94;
  --rgb-earning: 34, 197, 94;
  --rgb-lurking: 77, 163, 255;
  --rgb-limit: 245, 158, 11;
  --rgb-paused: 148, 163, 184;
  --rgb-live: 239, 68, 68;
  --rgb-bounty: 250, 204, 21;
  --rgb-crate: 255, 130, 0;
  --rgb-lurk: 148, 163, 184;
  --rgb-bronze: 205, 127, 50;
  --rgb-silver: 192, 192, 192;
  --rgb-gold: 255, 215, 0;
  --rgb-platinum: 56, 189, 248;
  --rgb-diamond: 99, 102, 241;
  --rgb-champion: 168, 85, 247;
  --rgb-gc: 236, 72, 153;
  --rgb-legend: 255, 130, 0;
  --rgb-master: 20, 184, 166;
  --rgb-gm: 244, 114, 182;
  --rgb-mythic: 239, 68, 68;
  --rgb-elite: 56, 189, 248;
  --rgb-titan: 250, 204, 21;
  --rgb-iconic: 34, 197, 94;
}

.spill,
.pill,
.tier-pill,
.dj-badge,
.status-pill,
.raver-status-pill,
.live-badge,
.ev-pill {
  --pill-rgb: 148, 163, 184;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
  color: rgb(var(--pill-rgb));
  background: rgba(var(--pill-rgb), 0.14);
  border: 1px solid rgba(var(--pill-rgb), 0.45);
  box-shadow: 0 0 12px -2px rgba(var(--pill-rgb), 0.55);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.spill-mixcloud { --pill-rgb: var(--rgb-mixcloud); }
.spill-twitch   { --pill-rgb: var(--rgb-twitch); }
.spill-discord  { --pill-rgb: var(--rgb-discord); }
.spill-bandcamp { --pill-rgb: var(--rgb-bandcamp); }
.spill-resident, .dj-badge.resident { --pill-rgb: var(--rgb-resident); }
.spill-community, .dj-badge.community { --pill-rgb: var(--rgb-community); }
.spill-staff, .dj-badge.staff { --pill-rgb: var(--rgb-staff); }
.spill-earning, .raver-status-pill.raver-earning { --pill-rgb: var(--rgb-earning); }
.spill-lurking, .raver-status-pill.raver-lurking { --pill-rgb: var(--rgb-lurking); }
.spill-limit, .raver-status-pill.raver-limit { --pill-rgb: var(--rgb-limit); }
.spill-paused, .raver-status-pill.raver-paused { --pill-rgb: var(--rgb-paused); }
.spill-live, .live-badge { --pill-rgb: var(--rgb-live); }
.spill-bounty, .ev-bounty { --pill-rgb: var(--rgb-bounty); }
.spill-crate { --pill-rgb: var(--rgb-crate); }
.spill-lurk { --pill-rgb: var(--rgb-lurk); }
.spill-promo, .ev-promo { --pill-rgb: var(--rgb-gold); }
.spill-raid, .ev-raid { --pill-rgb: var(--rgb-twitch); }
.spill-link, .ev-link { --pill-rgb: var(--rgb-resident); }
.ev-mixcloud { --pill-rgb: var(--rgb-mixcloud); }

.spill-rank-bronze   { --pill-rgb: var(--rgb-bronze); }
.spill-rank-silver   { --pill-rgb: var(--rgb-silver); }
.spill-rank-gold     { --pill-rgb: var(--rgb-gold); }
.spill-rank-platinum { --pill-rgb: var(--rgb-platinum); }
.spill-rank-diamond  { --pill-rgb: var(--rgb-diamond); }
.spill-rank-champion { --pill-rgb: var(--rgb-champion); }
.spill-rank-gc       { --pill-rgb: var(--rgb-gc); }
.spill-rank-legend   { --pill-rgb: var(--rgb-legend); }
.spill-rank-master   { --pill-rgb: var(--rgb-master); }
.spill-rank-gm       { --pill-rgb: var(--rgb-gm); animation: spill-pulse 2.6s ease-in-out infinite; }
.spill-rank-mythic   { --pill-rgb: var(--rgb-mythic); animation: spill-pulse 2.2s ease-in-out infinite, spill-shimmer 4s linear infinite; }
.spill-rank-elite    { --pill-rgb: var(--rgb-elite); animation: spill-pulse 2s ease-in-out infinite, spill-shimmer 3.5s linear infinite; }
.spill-rank-titan    { --pill-rgb: var(--rgb-titan); animation: spill-pulse-strong 1.8s ease-in-out infinite, spill-shimmer 3s linear infinite; }
.spill-rank-iconic   { --pill-rgb: var(--rgb-iconic); animation: spill-pulse-strong 1.6s ease-in-out infinite, spill-iconic-border 3.5s linear infinite; }

.spill-rank-elite::after,
.spill-rank-titan::after,
.spill-rank-iconic::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: spill-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.tracker-card.spill-card {
  border-color: rgba(var(--pill-rgb), 0.45);
  box-shadow: 0 0 16px -6px rgba(var(--pill-rgb), 0.4);
}
.tracker-card.spill-card .pts {
  color: rgb(var(--pill-rgb));
}

@keyframes spill-pulse {
  0%, 100% { box-shadow: 0 0 10px -2px rgba(var(--pill-rgb), 0.45); }
  50%      { box-shadow: 0 0 18px 0px rgba(var(--pill-rgb), 0.85); }
}
@keyframes spill-pulse-strong {
  0%, 100% { box-shadow: 0 0 12px -1px rgba(var(--pill-rgb), 0.6); }
  50%      { box-shadow: 0 0 22px 2px rgba(var(--pill-rgb), 0.95); }
}
@keyframes spill-shimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.88; }
}
@keyframes spill-sweep {
  0%, 55% { left: -120%; }
  100%    { left: 160%; }
}
@keyframes spill-iconic-border {
  0%   { border-color: rgba(34, 197, 94, 0.85); }
  33%  { border-color: rgba(250, 204, 21, 0.9); }
  66%  { border-color: rgba(56, 189, 248, 0.9); }
  100% { border-color: rgba(34, 197, 94, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .spill-rank-gm,
  .spill-rank-mythic,
  .spill-rank-elite,
  .spill-rank-titan,
  .spill-rank-iconic {
    animation: none !important;
  }
  .spill-rank-elite::after,
  .spill-rank-titan::after,
  .spill-rank-iconic::after {
    display: none !important;
  }
}

/* Tidy pill spacing & unison across leaderboard and cards */
.row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.row-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.3;
}
.row-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Fix Chrome Twitch chat iframe click/focus (avoid parent transform & sit above card ::after) */
.stream-embed-card:hover {
  transform: none !important;
}
.chat-frame-wrap {
  z-index: 3;
}
.chat-frame-wrap iframe {
  z-index: 3;
}

/* Mobile header & sub-header tidy */
@media (max-width: 700px) {
  .site-header {
    padding: 0;
  }
  .nav-inner {
    min-height: 56px;
    gap: 8px;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  .brand-wordmark {
    height: 18px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .nav-pill-link {
    display: none;
  }
  .page-shell {
    padding-top: 16px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-header .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 4px;
    display: inline-block;
  }
  .page-header h1 {
    font-size: 1.55rem;
    line-height: 1.18;
    margin: 0 0 6px;
  }
  .page-header p {
    font-size: 0.88rem;
    line-height: 1.48;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 14px 0;
  }
  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .hero-logo-wrap {
    display: none;
  }
  #heroHealthPills {
    gap: 6px !important;
  }
  #heroHealthPills .spill {
    padding: 2px 8px;
    font-size: 0.68rem;
  }
}

/* Smooth progressive rank gradient scale */
.spill[class*="spill-rank-"] {
  background: linear-gradient(135deg, rgba(var(--pill-rgb), 0.24), rgba(var(--pill-rgb), 0.09));
}

/* Fix Chrome Twitch chat input cursor lag: isolate chat iframe & disable parent hover/glow repaints */
.stream-embed-card::after,
.panel-card:has(.chat-frame-wrap)::after {
  display: none !important;
}
.stream-embed-card.is-live-card {
  animation: none !important;
}
.chat-frame-wrap {
  contain: paint layout style;
  isolation: isolate;
  transform: translateZ(0);
  will-change: contents;
}

/* Leaderboard live pill placement & row alignment */
.data-row .row-left {
  flex: 1;
  min-width: 0;
}
.data-row .row-main {
  min-width: 0;
  flex: 1;
}
.data-row .row-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.25;
}
.data-row .row-title .live-badge {
  margin-left: 0;
  order: 1;
}
.data-row .row-title .dj-badge {
  order: 2;
}

/* Leaderboard rows (Rank 4 and under) — Unison, formality and straight pill alignment */
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.lb-row .row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.lb-row .rank-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
  width: 28px;
  flex-shrink: 0;
}
.lb-row .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lb-row .row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.lb-row .lb-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lb-row .row-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.lb-row .lb-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1;
}
.lb-row .row-right {
  text-align: right;
  flex-shrink: 0;
}
.lb-row .pts {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Perfect pill metrics across all pills in lb-row for absolute unison */
.lb-row .spill,
.lb-row .pill,
.lb-row .tier-pill,
.lb-row .dj-badge,
.lb-row .live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  margin: 0 !important;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  box-sizing: border-box;
  vertical-align: middle;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lb-row .live-badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  gap: 4px;
}
.lb-row .live-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  flex-shrink: 0;
}

/* Mobile view: straighten out pill indicators on ranks 4 and under */
@media (max-width: 700px) {
  .lb-row {
    padding: 10px 12px;
    gap: 8px;
  }
  .lb-row .row-left {
    gap: 8px;
  }
  .lb-row .rank-num {
    font-size: 0.82rem;
    width: 26px;
  }
  .lb-row .avatar {
    width: 30px;
    height: 30px;
  }
  .lb-row .lb-top .row-title {
    font-size: 0.86rem;
    max-width: 140px;
  }
  .lb-row .pts {
    font-size: 0.80rem;
  }
  .lb-row .lb-pills {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    padding-bottom: 1px;
  }
  .lb-row .lb-pills::-webkit-scrollbar {
    display: none;
  }
  .lb-row .spill,
  .lb-row .pill,
  .lb-row .tier-pill,
  .lb-row .dj-badge,
  .lb-row .live-badge {
    height: 19px;
    padding: 0 7px;
    font-size: 0.63rem;
    line-height: 17px;
  }
}
