:root {
  --purple-dark: #2a003f;
  --purple-mid: #6a0dad;
  --purple-bright: #c03aff;
  --pink: #ff5fa0;
  --cyan: #00e5ff;
  --card-bg: rgba(255,255,255,0.92);
  --card-radius: 22px;
  --btn-radius: 50px;
  --glow-purple: 0 0 18px #c03aff99, 0 0 40px #6a0dad55;
  --glow-pink:   0 0 18px #ff5fa099;
  --glow-cyan:   0 0 18px #00e5ff99;
}

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

body {
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  background-image: url('images/tree.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 12px 60px;
  overflow-x: hidden;
}

/* Animated background orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #c03aff44, transparent 70%);
  top: -100px; right: -100px;
  animation: orb1 8s ease-in-out infinite alternate;
}
body::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ff5fa033, transparent 70%);
  bottom: -100px; left: -100px;
  animation: orb2 10s ease-in-out infinite alternate;
}
@keyframes orb1 { to { transform: translate(60px, 80px) scale(1.2); } }
@keyframes orb2 { to { transform: translate(80px, -60px) scale(1.15); } }

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;

  background: linear-gradient(
    180deg,
    rgba(235, 206, 235, 0.6),
    rgba(249, 253, 206, 0.6)
  );

  /*background: var(--card-bg);*/
  border-radius: var(--card-radius);
  padding: 28px 18px 1px;
  box-shadow: 0 8px 60px #2a003f88, 0 0 0 1.5px rgba(192,58,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cardIn 0.7s cubic-bezier(.22,1,.36,1) both;
}
/* ── Profile ── */
.profile { text-align: center; margin-bottom: 18px; position: relative; }

/* Обёртка аватарки + кнопка аналитики */
.avatar-area {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
}

/* Маленькая круглая кнопка аналитики — абсолютно справа, на уровне аватара */
.stats-btn {
  position: absolute;
  right: 85px;
  top: 20%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a0c0c5;
  border: 1.5px solid rgba(86, 85, 170, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(108, 100, 180, 0.35);
  overflow: hidden;
}

.stats-btn img {
  width: 22px; height: 22px;
  object-fit: contain;
  display: block;
}
.stats-btn:hover {
  box-shadow: 0 0 18px rgba(100, 164, 180, 0.6), 0 0 32px rgba(100, 119, 180, 0.25);
}
.stats-btn:active { transform: scale(0.93); }


/* Маленькая круглая кнопка визитки слева, на уровне аватара */
.visit-btn {
  position: absolute;
  left: 85px;
  top: 20%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5d1f5;
  border: 1.5px solid rgba(170, 100, 170, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(180, 100, 180, 0.35);
  overflow: hidden;
}

.visit-btn img {
  width: 30px; height: 30px;
  object-fit: contain;
  display: block;
}
.visit-btn:hover {
  box-shadow: 0 0 18px rgba(180,100,180,0.6), 0 0 32px rgba(180,100,180,0.25);
}
.visit-btn:active { transform: scale(0.93); }


.avatar-wrap {
  display: inline-block;
  position: relative;
}
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#c03aff, #ff5fa0, #00e5ff, #c03aff);
  animation: spin 3s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid #fff;
  display: block;
  background: linear-gradient(135deg, #c03aff22, #6a0dad22);
}

.username {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #2a003f;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bio {
  font-style: italic;
  color: #7a7a9d;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

/* ── Banner ── */
.banner-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 22px;
  box-shadow: 0 4px 24px #c03aff33;
}
.banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ── Sections ── */
.section { margin-bottom: 18px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c03aff44, transparent);
  margin: 10px 0 18px;
}

/* ── Buttons ──
   3-column grid: [icon 48px] [text flex] [spacer 48px]
   The spacer mirrors the icon so .btn-text is visually centred on the full button width.
*/
.btn {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: var(--btn-radius);
  padding: 0 4px 0 4px;
  height: 56px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 9px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.22s ease,
              filter 0.18s ease;
  outline: none;
  opacity: 0;
  animation: btnIn 0.5s cubic-bezier(.22,1,.36,1) both;
}

/* Shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 140%; }

.btn:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.1);
}
.btn:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

/* Icon — left column, circle, larger */
.btn-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.btn-icon img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Steam icon wrapper — same size */
.icon-svg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Text — middle column, centred on full button */
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.btn-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.btn-sub {
  font-size: 11px;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

/* .btn-proxy {
  display: flex;
  height: auto;
  min-height: 56px;
  padding: 10px 4px;
  align-items: center;
}

.btn-proxy .btn-icon {
  align-self: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.btn-proxy .btn-spacer {
  width: 48px;
  flex-shrink: 0;
}

.btn-proxy .btn-text {
  flex: 1;
  align-self: center;
}

.btn-proxy .btn-title,
.btn-proxy .btn-sub {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
} */

/* Right spacer — invisible, balances the icon column */
.btn-spacer { width: 44px; }

/* ── Colour themes ── */
.btn-blue   { background: linear-gradient(90deg,#1a6eff,#2196f3); color:#fff; box-shadow:0 4px 20px #1a6eff44; }
.btn-blue:hover   { box-shadow:0 6px 28px #1a6eff77, var(--glow-cyan); }

.btn-dark   { background: linear-gradient(90deg,#1a1a2e,#16213e); color:#fff; box-shadow:0 4px 18px #00000055; }
.btn-dark:hover   { box-shadow:0 6px 28px #000a, 0 0 20px #c03aff44; }

.btn-teal   { background: linear-gradient(90deg,#00bfa5,#00e5c3); color:#fff; box-shadow:0 4px 20px #00bfa544; }
.btn-teal:hover   { box-shadow:0 6px 28px #00bfa577, var(--glow-cyan); }

.btn-red    { background: linear-gradient(90deg,#e53935,#ff1744); color:#fff; box-shadow:0 4px 20px #e5393555; }
.btn-red:hover    { box-shadow:0 6px 28px #ff174477, var(--glow-pink); }

.btn-redviolet    { background: linear-gradient(90deg,#e669ff,#e771ff); color:#fff; box-shadow:0 4px 20px #e5393555; }
.btn-redviolet:hover    { box-shadow:0 6px 28px #b86bff77, var(--glow-pink); }

.btn-violet { background: linear-gradient(90deg,#4a148c,#7b1fa2); color:#fff; box-shadow:0 4px 20px #7b1fa255; }
.btn-violet:hover { box-shadow:0 6px 28px #c03aff66, var(--glow-purple); }

.btn-salmon { background: linear-gradient(90deg,#ff6f61,#ff8a65); color:#fff; box-shadow:0 4px 20px #ff6f6155; }
.btn-salmon:hover { box-shadow:0 6px 28px #ff6f6177, var(--glow-pink); }

.btn-darkblue { background: linear-gradient(90deg,#0f0e4e,#928afc); color:#fff; box-shadow:0 4px 20px #9861ff55; }
.btn-darkblue:hover { box-shadow:0 6px 28px #19142e80, var(--glow-pink); }

.btn-peach  { background: linear-gradient(90deg,#ffb199,#ff7f7f); color:#fff; box-shadow:0 4px 20px #ffb19944; }
.btn-peach:hover  { box-shadow:0 6px 28px #ffb19977, var(--glow-pink); }

.btn-indigo { background: linear-gradient(90deg,#3949ab,#5c6bc0); color:#fff; box-shadow:0 4px 20px #3949ab44; }
.btn-indigo:hover { box-shadow:0 6px 28px #5c6bc077, var(--glow-purple); }

.btn-sky    { background: linear-gradient(90deg,#81d4fa,#4fc3f7); color:#1a237e; box-shadow:0 4px 20px #81d4fa44; }
.btn-sky:hover    { box-shadow:0 6px 28px #4fc3f777, var(--glow-cyan); }

.btn-steam  { background: linear-gradient(90deg,#1b2838,#2a475e); color:#c7d5e0; box-shadow:0 4px 18px #1b283866; }
.btn-steam:hover  { box-shadow:0 6px 28px #2a475e99, 0 0 20px #66c0f444; }

.btn-coral  { background: linear-gradient(90deg,#ff5252,#ff867f); color:#fff; box-shadow:0 4px 20px #ff525255; }
.btn-coral:hover  { box-shadow:0 6px 28px #ff525277, var(--glow-pink); }

.btn-yellow { background: linear-gradient(90deg,#fdd835,#ffee58); color:#2a003f; box-shadow:0 4px 20px #fdd83555; }
.btn-yellow:hover { box-shadow:0 6px 28px #fdd83577; }

/* ── Staggered entrance animations ── */
@keyframes btnIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}

.btn:nth-of-type(1)  { animation-delay: 0.15s; }
.btn:nth-of-type(2)  { animation-delay: 0.22s; }
.btn:nth-of-type(3)  { animation-delay: 0.29s; }
.btn:nth-of-type(4)  { animation-delay: 0.36s; }
.btn:nth-of-type(5)  { animation-delay: 0.43s; }
.btn:nth-of-type(6)  { animation-delay: 0.50s; }
.btn:nth-of-type(7)  { animation-delay: 0.57s; }
.btn:nth-of-type(8)  { animation-delay: 0.64s; }
.btn:nth-of-type(9)  { animation-delay: 0.71s; }
.btn:nth-of-type(10) { animation-delay: 0.78s; }
.btn:nth-of-type(11) { animation-delay: 0.85s; }
.btn:nth-of-type(12) { animation-delay: 0.92s; }
.btn:nth-of-type(13) { animation-delay: 0.99s; }

/* ── Responsive ── */
@media (max-width: 500px) {
  .card { padding: 20px 10px 14px; }
  .btn-title { font-size: 13px; }
  .btn-sub   { font-size: 10.5px; }
  .avatar    { width: 70px; height: 70px; }

  /* Баннер — полная высота, не обрезать */
  .banner {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  /* Аватарки на кнопках — чуть меньше под телефон */
  .btn-icon, .icon-svg {
    width: 44px; height: 44px;
    min-width: 44px;
  }
  .btn { grid-template-columns: 48px 1fr 48px; height: 52px; }
  .btn-spacer { width: 44px; }
}



/* ══ PLAYER (glass) ══ */
:root {
  --mp-accent: #c03aff;
}

@keyframes mp-eq {
  0%, 100% { transform: scaleY(0.28); }
  50%      { transform: scaleY(1); }
}

.mp-root {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(420px, calc(100vw - 24px));
  color: #fff;
  user-select: none;
  transition: width 0.7s ease-out;
}

.mp-root.collapsed { width: 188px; }

.mp-toggle {
  position: absolute;
  right: -12px;
  top: -12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(42,0,63,0.85), rgba(106,13,173,0.85));
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.mp-toggle:hover { transform: scale(1.05); }
.mp-toggle:active { transform: scale(0.95); }
.mp-toggle svg { width: 16px; height: 16px; stroke: #fff; }

.mp-avatar {
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 20;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  outline: 1px solid rgba(255,255,255,0.2);
}

.mp-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 70px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(192,58,255,0.3);
  background: linear-gradient(135deg, rgba(42,0,63,0.75), rgba(106,13,173,0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px #2a003faa;
  padding: 0 20px 0 96px;
}

.mp-eq {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.mp-eq span {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5fa0, var(--mp-accent));
  transform-origin: bottom;
  transform: scaleY(0.28);
  animation: mp-eq 0.9s ease-in-out infinite;
  animation-play-state: paused;
}
.mp-eq span:nth-child(1) { animation-duration: 0.9s; }
.mp-eq span:nth-child(2) { animation-duration: 1.08s; }
.mp-eq span:nth-child(3) { animation-duration: 1.26s; }
.mp-eq span:nth-child(4) { animation-duration: 1.44s; }
.mp-root.playing .mp-eq span { animation-play-state: running; }

.mp-info-controls {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.3s ease 0.35s;
}
.mp-root.collapsed .mp-info-controls {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

.mp-info { min-width: 0; flex: 1; }
.mp-title {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}
.mp-artist {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}
.mp-btn {
  border: none;
  background: none;
  padding: 6px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.mp-btn:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.mp-btn svg { width: 16px; height: 16px; stroke: #fff; fill: #fff; display: block; }
.mp-btn.mp-play {
  background: linear-gradient(135deg, #c03aff, #ff5fa0);
  box-shadow: 0 4px 16px #c03aff66;
  opacity: 1;
}
.mp-btn.mp-play:hover { background: linear-gradient(135deg, #d050ff, #ff70b0); }
.mp-btn.mp-play svg { width: 18px; height: 18px; }

.mp-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.mp-root.collapsed .mp-progress { display: none; }
.mp-progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.18);
}
.mp-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #c03aff, #ff5fa0);
  transition: width 0.1s linear;
}

/* Отступ снизу чтобы плеер не перекрывал кнопки */
.card { margin-bottom: 110px; }

@media (max-width: 500px) {
  .mp-root {
    bottom: 10px;
    width: calc(100% - 24px);
    left: 50%;
    transform: translateX(-50%);
  }
  .mp-root.collapsed { width: 188px; }
  .mp-bar { border-radius: 20px; }
  .card { margin-bottom: 110px; }
}