@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --rta-flame: #ff8a1f;
  --rta-gold: #ffc53d;
  --rta-ember: #ff6a00;
  --rta-ink: #111111;
  --rta-soft: #f4f4f4;
  --rta-muted: #666666;
  --rta-peach: #ffb366;
  --rta-tan: #f7d794;
  --rta-footer: #121212;
  --rta-max: 1100px;
  --rta-font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rta-display: "Archivo Black", Impact, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rta-font);
  color: var(--rta-ink);
  background: #fff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* Top strip */
.ad-strip {
  background: #000;
  color: #fff;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.ad-strip strong {
  font-family: var(--rta-display);
  letter-spacing: 0.04em;
  color: var(--rta-gold);
}

.ad-strip .pill {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ad-strip .pill:hover {
  background: #fff;
  color: #000;
}

/* Header */
.site-header {
  background: linear-gradient(105deg, var(--rta-ember) 0%, var(--rta-flame) 45%, var(--rta-gold) 100%);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(0, 0, 0, 0.12), transparent 60%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  font-family: var(--rta-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  animation: brandIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-right .signup {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  min-width: min(240px, 36vw);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 0.85rem;
}

.search button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.song-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr minmax(220px, 300px);
  gap: 1.5rem;
  padding: 1rem 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: coverPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.song-meta h1 {
  margin: 0 0 0.35rem;
  font-family: var(--rta-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: rise 0.7s 0.1s both;
}

.song-meta .artist {
  font-size: 1.35rem;
  font-weight: 700;
  animation: rise 0.7s 0.18s both;
}

.credits-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.92rem;
  animation: rise 0.7s 0.26s both;
}

.credits-row .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.album-line {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.75rem;
  animation: rise 0.7s 0.32s both;
}

.meta-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: rise 0.7s 0.38s both;
}

.meta-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: rise 0.7s 0.2s both;
}

.media-main {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.media-main .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.45));
}

.media-main .play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.media-main .play:hover span {
  transform: scale(1.08);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.thumb-row a {
  display: block;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-decoration: none;
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.thumb-row a:hover img {
  transform: scale(1.06);
}

/* Lyrics layout */
.page {
  max-width: var(--rta-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
}

.lyrics-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.lyrics-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  background: linear-gradient(135deg, var(--rta-ember), var(--rta-gold));
}

.avatars span:first-child {
  margin-left: 0;
}

.lyrics {
  font-size: 1.05rem;
  line-height: 1.55;
}

.lyrics .block {
  margin: 0 0 1.6rem;
}

.lyrics .section {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lyrics p {
  margin: 0;
  white-space: pre-line;
}

.lyrics .line {
  display: block;
  padding: 0.05rem 0.2rem;
  margin: 0 -0.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lyrics .line:hover,
.lyrics .line.active {
  background: #efefef;
}

.sidebar .ad-card {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 1rem;
}

.sidebar .ad-card .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rta-muted);
  margin-bottom: 0.5rem;
}

.sidebar .ad-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--rta-display);
  font-size: 1.15rem;
  line-height: 1.15;
}

.sidebar .ad-card img {
  margin: 0 auto 0.85rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sidebar .ad-card .btn {
  display: inline-block;
  border: 1px solid #111;
  padding: 0.45rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.share-row button {
  border: 1px solid #111;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease;
}

.share-row button:hover {
  background: #f3f3f3;
}

/* Orange sections */
.band {
  background: var(--rta-peach);
  padding: 3rem 1.25rem;
}

.band.tan {
  background: var(--rta-tan);
}

.band-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.band h2 {
  margin: 0 0 1rem;
  font-family: var(--rta-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.unreviewed {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e26;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(238, 34, 102, 0.08),
    rgba(238, 34, 102, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
}

.bio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.bio {
  text-align: left;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.qa-list {
  margin-top: 1.5rem;
  text-align: left;
  border-top: 1px solid #111;
}

.qa-item {
  border-bottom: 1px solid #111;
}

.qa-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.qa-item .answer {
  display: none;
  padding: 0 0 1rem;
  color: #222;
}

.qa-item.open .answer {
  display: block;
}

.ask-btn {
  display: inline-block;
  margin: 1rem 0 0.5rem;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.album-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  text-align: left;
  align-items: center;
  margin-bottom: 1.5rem;
}

.album-panel img {
  width: 160px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tracklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2rem;
  text-align: left;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: track;
}

.tracklist li {
  counter-increment: track;
  padding: 0.2rem 0;
}

.tracklist li::before {
  content: counter(track) ". ";
  font-weight: 600;
}

.tracklist li.current {
  outline: 1px solid #111;
  padding: 0.2rem 0.4rem;
  font-weight: 700;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  text-align: left;
  margin-top: 1rem;
}

.credits-grid h3 {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--rta-display);
  margin: 0 0 0.5rem;
}

.credits-grid .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.tags span {
  border: 1px solid #111;
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-wrap {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.comments {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.comments h2 {
  margin: 0 0 1rem;
  font-family: var(--rta-display);
  font-size: 2rem;
}

.comments textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #111;
  padding: 0.75rem;
  resize: vertical;
}

.comments .empty {
  text-align: center;
  color: var(--rta-muted);
  margin: 1.5rem 0 0;
}

.signup-band {
  text-align: center;
  padding: 3rem 1.25rem;
  border-bottom: 1px solid #ddd;
}

.signup-band h2 {
  margin: 0;
  font-family: var(--rta-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.signup-band p {
  max-width: 560px;
  margin: 0.75rem auto 1.25rem;
}

.signup-band .btn {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
}

.footer {
  background: var(--rta-footer);
  color: #fff;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer h3 {
  margin: 0 0 1rem;
  font-family: var(--rta-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.2;
}

.footer a {
  text-decoration: none;
  color: #ddd;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #aaa;
}

.artist-index {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bbb;
  line-height: 1.7;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes coverPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .song-hero {
    grid-template-columns: 160px 1fr;
  }

  .media-rail {
    grid-column: 1 / -1;
    max-width: 420px;
  }

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

  .sidebar .ad-card {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    width: 100%;
  }

  .search {
    flex: 1;
  }

  .song-hero {
    grid-template-columns: 1fr;
  }

  .cover {
    max-width: 220px;
  }

  .credits-row,
  .tracklist,
  .credits-grid,
  .album-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— FOMO HUD —— */
.hud {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  background: #111;
  color: #fff;
  border-bottom: 2px solid var(--rta-flame);
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hud .stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
}

.hud .stat em {
  font-style: normal;
  color: var(--rta-gold);
  font-family: var(--rta-display);
  font-size: 1.15rem;
}

.hud .stat em.bump {
  animation: bump 0.25s ease;
}

.hud .pulse {
  font-size: 0.78rem;
  color: #8cffb0;
  animation: pulse 1.4s ease-in-out infinite;
}

.hud .ghost {
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.hud .ghost:hover {
  border-color: var(--rta-gold);
  color: var(--rta-gold);
}

#points-toast {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 60;
  background: var(--rta-ink);
  color: var(--rta-gold);
  font-weight: 800;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#points-toast.show {
  opacity: 1;
  transform: none;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 3.5rem;
}

.panel-card {
  border: 1px solid #ddd;
  padding: 1rem;
  background: #fff;
}

.panel-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--rta-display);
  font-size: 1.05rem;
}

.panel-card .hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--rta-muted);
}

#leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}

#leaderboard li {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.4rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
}

#leaderboard li.you {
  background: #fff7e8;
  margin: 0 -0.4rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  font-weight: 700;
}

#leaderboard .r {
  color: var(--rta-muted);
}

#leaderboard .p {
  font-variant-numeric: tabular-nums;
  color: var(--rta-ember);
  font-weight: 700;
}

#live-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  font-size: 0.82rem;
}

#live-feed li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
}

#live-feed em {
  color: var(--rta-ember);
  font-style: normal;
  font-weight: 700;
}

.lyrics .line {
  position: relative;
  padding-right: 1.6rem;
}

.lyrics .line.has-note {
  background: #fff3df;
}

.lyrics .line .ann-count {
  position: absolute;
  right: 0.15rem;
  top: 0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--rta-ember);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 0.25rem;
}

/* Annotation + DM drawers */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 50;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.25rem;
}

.drawer.open {
  transform: none;
}

.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.drawer header h3 {
  margin: 0;
  font-family: var(--rta-display);
  font-size: 1.2rem;
}

.drawer .line-quote {
  font-size: 0.95rem;
  font-weight: 600;
  background: #f6f6f6;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--rta-flame);
}

.drawer textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #111;
  padding: 0.65rem;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.drawer .actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.drawer .actions button,
.comment-actions button,
.join-row button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
}

.drawer .actions button.secondary,
.comment-actions button.secondary {
  background: #fff;
  color: #111;
}

.ann-list {
  overflow: auto;
  flex: 1;
}

.ann-card {
  border-top: 1px solid #eee;
  padding: 0.75rem 0;
}

.ann-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.ann-card p {
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--rta-muted);
  font-size: 0.9rem;
}

.vote-row,
.vote-col {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vote-col {
  flex-direction: column;
  min-width: 2rem;
}

.vote {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
  padding: 0.1rem;
}

.vote.up:hover {
  color: var(--rta-ember);
}

.vote.down:hover {
  color: #444;
}

.score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.comment-card {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  border-top: 1px solid #ddd;
  padding: 0.9rem 0;
}

.comment-body header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.comment-body p {
  margin: 0.25rem 0 0.4rem;
}

.linkish {
  border: 0;
  background: none;
  color: var(--rta-ember);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
}

.replies {
  margin-top: 0.4rem;
  padding-left: 0.75rem;
  border-left: 2px solid #eee;
}

.reply {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.65rem 0 1rem;
}

.join-box {
  display: grid;
  gap: 0.65rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.join-box input {
  width: 100%;
  border: 1px solid #111;
  padding: 0.65rem 0.75rem;
}

.join-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  text-align: left;
}

.rewards-grid div {
  border: 1px solid #111;
  padding: 0.55rem 0.65rem;
  background: #fff;
  font-size: 0.85rem;
}

.rewards-grid strong {
  display: block;
  color: var(--rta-ember);
}

.dm-thread {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.dm-bubble {
  background: #f4f4f4;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  max-width: 90%;
}

.dm-bubble.me {
  align-self: flex-end;
  background: #fff1d6;
}

.dm-bubble p {
  margin: 0.2rem 0 0;
}

.drop-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  text-align: left;
  margin-top: 1rem;
}

.drop-map code {
  display: block;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2rem 0.35rem;
  margin-bottom: 0.25rem;
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  text-align: left;
}

.track-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: center;
  border: 1px solid #111;
  background: #fff;
  padding: 0.65rem;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.track-card img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.track-card strong {
  font-size: 0.95rem;
}

.track-card span {
  font-size: 0.78rem;
  color: var(--rta-muted);
}

.track-card:hover,
.track-card:active {
  background: #fff7e8;
  transform: translateY(-1px);
}

.track-card.current {
  outline: 2px solid var(--rta-ember);
  background: #fff3df;
}

.profile-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.profile-top .badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rta-ember), var(--rta-gold));
  display: grid;
  place-items: center;
  font-family: var(--rta-display);
  font-size: 0.85rem;
  color: #111;
}

.level-bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.level-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rta-ember), var(--rta-gold));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.profile-stats {
  margin-top: 0;
}

/* Banners + studio + wallet */
.banner-rail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  max-height: 220px;
  overflow: hidden;
  background: #111;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.studio-stage {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.studio-stage img,
.studio-stage video,
.studio-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.studio-stage audio {
  width: calc(100% - 1.5rem);
  margin: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.studio-actions button,
.wallet-actions button,
.wallet-card button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
}

.studio-actions button.secondary,
.wallet-actions button.secondary {
  background: #fff;
  color: #111;
}

.studio-tracklist {
  display: grid;
  gap: 0.45rem;
}

.studio-track {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
  text-align: left;
}

.studio-track img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.studio-track strong {
  display: block;
}

.studio-track em {
  font-style: normal;
  color: var(--rta-muted);
  font-size: 0.8rem;
}

.studio-track.active {
  outline: 2px solid var(--rta-ember);
  background: #fff3df;
}

.wallet-grid,
.market-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wallet-card,
.market-card {
  border: 1px solid #111;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  text-align: left;
}

.wallet-card .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rta-muted);
  margin-top: 0.35rem;
}

.wallet-card strong {
  font-family: var(--rta-display);
  font-size: 1.45rem;
  color: var(--rta-ember);
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.market-card {
  cursor: pointer;
  transition: background 0.15s ease;
}

.market-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--rta-muted);
  font-size: 0.85rem;
}

.market-card:hover,
.market-card.picked {
  background: #fff7e8;
}

.profile-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-feed li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
}

@media (min-width: 800px) {
  .studio-shell {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .wallet-grid,
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .wallet-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .market-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mini player + social + celebrate */
.mini-player {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 47;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: rgba(17, 17, 17, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 138, 31, 0.55);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.mini-player[hidden] {
  display: none !important;
}

.mini-player img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.mini-player .mini-meta {
  flex: 1;
  min-width: 0;
}

.mini-player .mini-meta strong {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player button,
.mini-player a {
  border: 0;
  background: var(--rta-ember);
  color: #fff;
  border-radius: 999px;
  min-width: 40px;
  min-height: 40px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
  padding: 0 0.7rem;
}

body.has-mini {
  padding-bottom: calc(72px + 64px + env(safe-area-inset-bottom, 0px));
}

.follow-rail {
  display: grid;
  gap: 0.55rem;
}

.follow-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.55rem;
}

.follow-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rta-ember), var(--rta-gold));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.follow-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--rta-muted);
}

.follow-card button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}

.follow-card button.on {
  background: #fff;
  color: #111;
}

.notif-wrap {
  position: relative;
}

.notif-wrap button {
  position: relative;
}

#notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rta-ember);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

#notif-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(300px, 80vw);
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  z-index: 60;
  max-height: 280px;
  overflow: auto;
}

#notif-panel.open {
  display: block;
}

#notif-panel ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

#notif-panel li {
  padding: 0.55rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.82rem;
}

#notif-panel li.unread {
  background: #fff7e8;
}

#celebrate {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  opacity: 0;
}

#celebrate.show {
  opacity: 1;
}

#celebrate i {
  position: absolute;
  top: -10%;
  font-style: normal;
  font-size: 1.4rem;
  animation: fall 1.4s linear forwards;
  color: var(--rta-gold);
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(240deg);
    opacity: 0.2;
  }
}

@media (min-width: 900px) {
  .mini-player {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: min(380px, 40vw);
  }

  body.has-mini {
    padding-bottom: 0;
  }
}

@keyframes bump {
  50% {
    transform: scale(1.12);
    color: #fff;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .sidebar-stack {
    position: static;
  }

  .rewards-grid,
  .drop-map {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .rewards-grid,
  .drop-map {
    grid-template-columns: 1fr;
  }
}

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