:root {
  --bg: #000;
  --text: #f7f7f7;
  --muted: rgba(255, 255, 255, 0.52);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
}

.bg-orbit {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 24%, transparent 0 112px, rgba(255, 255, 255, 0.018) 113px, transparent 115px),
    radial-gradient(circle at 50% 24%, transparent 0 170px, rgba(255, 255, 255, 0.01) 171px, transparent 173px),
    #000;
  animation: orbitBreath 7s ease-in-out infinite;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.05s ease, visibility 1.05s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 48px 14px 20px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.page-shell.show {
  opacity: 1;
  transform: none;
}

.bio-stack {
  width: min(92vw, 470px);
  display: grid;
  gap: 11px;
}

.icon-dock {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: slideUp 0.75s ease both;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 27px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.icon-dock .material-symbols-rounded {
  width: auto;
  height: auto;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

.icon-dock .material-symbols-rounded:hover {
  transform: translateY(-2px) scale(1.06);
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.24));
}

.profile-card {
  position: relative;
  overflow: visible;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  align-items: start;
  justify-items: center;
  text-align: center;
  animation: slideUp 0.85s 0.08s ease both;
}

.profile-banner {
  width: 100%;
  height: 190px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.62)),
    url("https://i.ibb.co/0yk2VBGt/91281384321982d615af2c9c5edba744.gif") center / cover no-repeat;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.profile-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-top: -49px;
  padding-bottom: 4px;
}

.avatar-zone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.avatar-ring {
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  padding: 4px;
  background: #07080b;
  box-shadow: 0 18px 44px rgba(0,0,0,0.82);
}

.avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 999px;
  background: #080910;
  display: block;
}

.status-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 7px solid #07080b;
  background: #80848e;
  overflow: hidden;
}

.status-dot::before,
.status-dot::after {
  content: "";
  position: absolute;
  display: none;
}

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

.status-dot.idle::before {
  display: block;
  width: 18px;
  height: 18px;
  right: -6px;
  top: -6px;
  border-radius: 999px;
  background: #07080b;
}

.status-dot.dnd::before {
  display: block;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: #07080b;
  transform: translateY(-50%);
}

.status-dot.offline::before {
  display: block;
  inset: 4px;
  border-radius: 999px;
  background: #07080b;
}

.badges {
  position: absolute;
  right: -66px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.badges img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  animation: badgePop 0.8s ease both;
}

.badges img:nth-child(2) { animation-delay: 0.08s; }

.profile-card h1 {
  margin: 9px 0 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.72);
}

.spotify-card,
.music-panel {
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.68), rgba(3, 3, 4, 0.74));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.spotify-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  animation: slideUp 0.9s 0.16s ease both;
}

.spotify-cover-wrap {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.spotify-cover {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.07);
}

.spotify-info {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.spotify-info span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotify-info strong,
.spotify-info p {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spotify-info strong {
  font-size: 16px;
  color: #fff;
}

.spotify-info p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.progress { display: none; }

.music-panel {
  padding: 12px;
  animation: slideUp 0.94s 0.2s ease both;
}

.tab-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 11px;
}

.tab-button,
.playlist-pill {
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tab-button {
  height: 34px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tab-button.active,
.playlist-pill.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.tab-button:hover,
.playlist-pill:hover,
.track-card:hover {
  transform: translateY(-1px);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.track-list {
  display: grid;
  gap: 8px;
  max-height: 244px;
  overflow-y: auto;
  padding-right: 2px;
}

.track-list::-webkit-scrollbar { width: 4px; }
.track-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

.track-card {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 17px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.2s ease, background 0.2s ease;
}

.track-card:hover { background: rgba(255, 255, 255, 0.08); }

.track-card img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.07);
}

.track-card span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.track-card strong,
.track-card small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-card strong {
  font-size: 13px;
  color: #fff;
}

.track-card small,
.panel-muted {
  font-size: 12px;
  color: rgba(255,255,255,0.48);
}

.panel-muted {
  margin: 7px 2px;
  text-align: center;
}

.playlist-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 9px;
  margin-bottom: 2px;
}

.playlist-tabs::-webkit-scrollbar { display: none; }

.playlist-pill {
  flex: 0 0 auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.playlist-pill img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes badgePop {
  from { opacity: 0; transform: translateY(8px) scale(0.8); }
  to { opacity: 1; transform: none; }
}

@keyframes orbitBreath {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 460px) {
  .page-shell { padding: 34px 10px 12px; }
  .bio-stack {
    width: min(90vw, 340px);
    gap: 9px;
  }
  .icon-dock {
    height: 36px;
    gap: 20px;
  }
  .icon-dock .material-symbols-rounded { font-size: 25px; }
  .profile-banner {
    height: 165px;
    border-radius: 24px;
  }
  .profile-content {
    margin-top: -44px;
    padding-bottom: 2px;
  }
  .avatar-ring {
    width: 88px;
    height: 88px;
  }
  .avatar {
    width: 80px;
    height: 80px;
  }
  .status-dot {
    width: 29px;
    height: 29px;
    right: -1px;
    bottom: -1px;
    border-width: 7px;
  }
  .status-dot.idle::before {
    width: 17px;
    height: 17px;
    right: -5px;
    top: -5px;
  }
  .badges {
    right: -60px;
    bottom: 1px;
    gap: 7px;
  }
  .badges img {
    width: 22px;
    height: 22px;
  }
  .profile-card h1 {
    margin-top: 8px;
    font-size: clamp(24px, 8vw, 32px);
  }
  .spotify-card {
    min-height: 82px;
    padding: 11px;
    border-radius: 22px;
  }
  .spotify-cover-wrap,
  .spotify-cover {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .spotify-info strong { font-size: 15px; }
  .spotify-info p { font-size: 13px; }
  .music-panel {
    padding: 10px;
    border-radius: 22px;
  }
  .track-list { max-height: 230px; }
}