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

a {
  text-decoration: none;
}

body {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
  background-color: #000000;
  background-image: radial-gradient(circle, #2a2a2a 5px, transparent 2.5px);
  background-size: 35px 35px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: #222222;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #333333;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

#splash {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

#splash span {
  font-size: 35px;
  font-weight: 400;
  color: #ffffff;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#main-content {
  width: 100%;
  max-width: 640px;
}

.container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.card {
  background: #080808;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.04);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cccccc;
  font-size: 13px;
  padding-top: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  font-size: 13px;
  opacity: 0.85;
}

.meta-divider {
  color: #333;
  font-size: 16px;
}

.username {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.bio {
  font-size: 14px;
  color: #888888;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.social-icon {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: transform 0.15s;
}

.social-icon i {
  font-size: 28px;
}

.social-icon:hover {
  transform: scale(1.2);
}

.presence-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}

.discord-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.discord-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #747f8d;
  border: 2.5px solid #080808;
  transition: background 0.3s;
}

.status-dot.online  { background: #23a55a; }
.status-dot.idle    { background: #f0b232; }
.status-dot.dnd     { background: #f23f43; }
.status-dot.offline { background: #747f8d; }

.presence-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.presence-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.presence-name {
  font-size: 16px;
  font-weight: 700;
}

.presence-handle {
  font-size: 13px;
  font-weight: 400;
  color: #555555;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-guns {
  background: #0d0d0d;
  color: #cccccc;
  border: 1px solid #222222;
}

.presence-activity-line {
  font-size: 13px;
  color: #aaaaaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-activity-line strong {
  font-weight: 700;
  color: #ffffff;
}

.presence-activity-detail {
  font-size: 12px;
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-status {
  font-size: 13px;
  color: #666666;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: auto;
  display: none;
}

.player-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 0;
}

.album-art {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.8);
}

.track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.track-meta-text {
  min-width: 0;
}

.track-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 13px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.progress-section {
  margin-bottom: 16px;
}

.progress-bar {
  height: 4px;
  background: #1c1c1c;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar:hover .progress-fill {
  background: #1db954;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
  pointer-events: none;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.time {
  font-size: 11px;
  color: #666666;
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.1s;
  padding: 0;
}

.ctrl-btn:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.play-pause-btn {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  color: #000000;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.1s, background 0.15s;
}

.play-pause-btn:hover {
  color: #000000;
  transform: scale(1.06);
  background: #e0e0e0;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
}

.playlist-label {
  font-size: 11px;
  font-weight: 700;
  color: #555555;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  padding: 0 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.playlist-item:hover {
  background: rgba(255,255,255,0.04);
}

.playlist-item.active {
  background: rgba(255,255,255,0.07);
}

.playlist-item-art {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.playlist-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.playlist-item-name {
  font-size: 13px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.active .playlist-item-name {
  color: #ffffff;
}

.playlist-item-artist {
  font-size: 11px;
  color: #444444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.playlist-item-playing {
  display: none;
  color: #1db954;
  font-size: 12px;
  flex-shrink: 0;
}

.playlist-item.active .playlist-item-playing {
  display: block;
}

@media (max-width: 480px) {
  body {
    padding: 20px 12px 40px;
  }

  .card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
  }

  .username {
    font-size: 28px;
  }

  .bio {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 4px;
  }

  .social-icon {
    width: 38px;
    height: 38px;
  }

  .social-icon i {
    font-size: 22px;
  }

  .presence-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .discord-avatar-img {
    width: 48px;
    height: 48px;
  }

  .activity-img {
    width: 48px;
    height: 48px;
  }

  .presence-name {
    font-size: 14px;
  }

  .presence-handle {
    font-size: 12px;
  }

  .player-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .album-art {
    width: 52px;
    height: 52px;
  }

  .track-name {
    font-size: 13px;
  }

  .track-artist {
    font-size: 11px;
  }

  .time {
    font-size: 11px;
  }

  .ctrl-btn {
    font-size: 13px;
  }

  .play-pause-btn {
    font-size: 15px;
  }
}
