: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/background.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 ── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;
  background: linear-gradient(180deg, #ebceeb, #f9fdce);
  /*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);
  animation: cardIn 0.7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── 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-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 ══ */
.player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(480px, calc(100vw - 24px));
  background: linear-gradient(135deg, rgba(42,0,63,0.70), rgba(106,13,173,0.70));
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 8px 40px #2a003faa, 0 0 0 1px rgba(192,58,255,0.3);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-cover {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c03aff, #6a0dad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.player-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.p-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.p-btn:hover { background: rgba(255,255,255,0.22); transform: scale(1.1); }
.p-btn:active { transform: scale(0.93); }

.p-btn-main {
  width: 44px; height: 44px;
  font-size: 16px;
  background: linear-gradient(135deg, #c03aff, #ff5fa0);
  box-shadow: 0 4px 16px #c03aff66;
}
.p-btn-main:hover { background: linear-gradient(135deg, #d050ff, #ff70b0); }

.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-time {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  min-width: 30px;
  font-family: monospace;
}

.p-seek, .p-vol {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.p-seek { flex: 1; }
.p-vol  { width: 70px; }

.p-seek::-webkit-slider-thumb,
.p-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #c03aff;
  box-shadow: 0 0 6px #c03aff99;
  cursor: pointer;
}

.player-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.p-icon { font-size: 13px; }

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

@media (max-width: 500px) {
  .player {
    bottom: 0;
    border-radius: 20px 20px 0 0;
    width: 100%;
  }
  .card { margin-bottom: 130px; }
}

.p-btn img {
  width: 18px; height: 18px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.p-btn-main img {
  width: 22px; height: 22px;
}
.p-icon-img {
  width: 18px; height: 18px;
  object-fit: contain;
}