/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0b1020, #000);
  color: #e6e9f0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin-top: 60px;
}

/* ================= AVATAR ================= */
.avatar-wrapper {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto;
}

#avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(120,140,255,.6);
}

#avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(6px);
  animation: ringRotate 18s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* ================= NAME ================= */
h1 {
  margin: 14px 0 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

/* ================= STATUS ================= */
.online  { --accent:#00ff88; }
.idle    { --accent:#ffaa00; }
.dnd     { --accent:#ff4444; }
.offline { --accent:#777; }

/* ================= CARD ================= */
.card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 0 35px color-mix(in srgb, var(--accent), transparent 40%);
}

/* ================= SPOTIFY ================= */
#spotify {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

#spotify-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  text-align: left;
}

#spotify-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-artist {
  font-size: 0.8rem;
  opacity: 0.7;
}

.spotify-progress {
  margin-top: 6px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}

#spotify-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ================= DISCORD BUTTON ================= */
.discord-button {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: rgba(88,101,242,0.9);
}

/* ================= COMMENTS SIDEBAR ================= */
.comments-card {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 300px;
  max-height: calc(100vh - 120px);
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );
  backdrop-filter: blur(12px);
}

/* ================= COMMENT FORM ================= */
.comment-form {
  display: flex;
  gap: 8px;
}

.comment-form textarea {
  flex: 1;
  resize: none;
  height: 34px;
  border-radius: 10px;
  border: none;
  padding: 6px 8px;
  font-size: 0.8rem;
}

.comment-form button {
  border-radius: 10px;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* ================= COMMENT LIST ================= */
.comment-list {
  margin-top: 12px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= COMMENT ================= */
.comment {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 8px 10px;
  position: relative;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-body {
  display: flex;
  flex-direction: column;
}

.comment-body strong {
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-body span {
  font-size: 0.8rem;
  opacity: 0.85;
  word-break: break-word;
}

/* ================= DELETE BUTTON ================= */
.comment button {
  position: absolute;
  right: 6px;
  top: 6px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
}

.comment button:hover {
  opacity: 1;
}

.comment-avatar.placeholder {
  background: linear-gradient(135deg, #5865f2, #404eed);
}
