/* ==========================================================================
   DARK OBSIDIAN + WHITE & PINK AESTHETIC THEME
   Palette: Velvet Black, Crisp Pure White, Soft Pastel Rose Pink
   ========================================================================== */

:root {
  /* Dark Theme Base */
  --bg-main: #07080b;
  --bg-card: rgba(15, 16, 23, 0.82);
  --bg-card-hover: rgba(22, 24, 34, 0.95);
  --bg-surface: rgba(255, 255, 255, 0.04);

  /* White & Pink Palette */
  --white-pure: #ffffff;
  --white-soft: #f8fafc;
  --white-muted: #cbd5e1;

  --pink-pale: #fce7f3;
  --pink-light: #fbcfe8;
  --pink-main: #f472b6;
  --pink-bright: #fb7185;
  --pink-deep: #ec4899;
  
  --pink-glow: rgba(244, 114, 182, 0.35);
  --pink-glow-subtle: rgba(244, 114, 182, 0.15);
  --white-glow: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --grad-pink-white: linear-gradient(135deg, #ffffff 0%, #f472b6 100%);
  --grad-pink-bright: linear-gradient(135deg, #fda4af 0%, #fb7185 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Radius */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.09);
  --border-pink: 1px solid rgba(244, 114, 182, 0.3);
  --border-hover: 1px solid rgba(255, 255, 255, 0.25);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: var(--pink-main);
  color: #07080b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #08090d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ffffff, #f472b6);
  border-radius: 4px;
}

/* Atmospheric Rain Canvas */
#rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-top {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.24) 0%, rgba(7, 8, 11, 0) 70%);
  top: -160px;
  right: -100px;
}

.glow-bottom {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(244, 114, 182, 0.15) 40%, rgba(7, 8, 11, 0) 70%);
  bottom: 0%;
  left: -160px;
}

/* Main Container Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  border-color: rgba(244, 114, 182, 0.28);
}

/* Top Header Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--pink-light);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-main);
  box-shadow: 0 0 10px var(--pink-main);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: #fff;
  border-color: var(--pink-main);
  background: rgba(244, 114, 182, 0.12);
  transform: translateY(-1px);
}

.btn-icon i {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   PROFILE CARD WITH BANNER (НАД АВОЙ)
   ========================================================================== */
.profile-card {
  padding: 0 0 24px 0;
  position: relative;
}

.profile-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #101118;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.profile-card:hover .banner-img {
  transform: scale(1.03);
}

.banner-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(15, 16, 23, 1) 0%, rgba(15, 16, 23, 0.4) 60%, transparent 100%);
}

.profile-content {
  position: relative;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -55px;
}

.avatar-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 14px;
}

.avatar-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--pink-main));
  box-shadow: 0 0 16px var(--pink-glow);
  pointer-events: none;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border: 3px solid #0f1017;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.name-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.verified-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink-main);
  color: #07080b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verified-icon i {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.profile-handle {
  font-size: 0.9rem;
  color: var(--pink-light);
  font-weight: 500;
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.55;
  margin-top: 2px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.pill-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white-muted);
  transition: all var(--transition-fast);
}

.pill-tag:hover {
  border-color: var(--pink-main);
  color: #ffffff;
  background: rgba(244, 114, 182, 0.1);
}

/* ==========================================================================
   SLEEK MUSIC PLAYER CARD (DARK + WHITE & PINK)
   ========================================================================== */
.player-card {
  padding: 22px;
}

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

.player-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.player-label .music-icon {
  width: 18px;
  height: 18px;
  color: var(--pink-main);
}

.rotating-disc {
  transition: transform 0.5s ease;
}

.player-body.playing .rotating-disc {
  animation: spinDisc 6s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-body {
  display: flex;
  gap: 18px;
  align-items: center;
}

.track-artwork {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: #151622;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.player-body.playing .artwork-img {
  transform: scale(1.06);
}

.artwork-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to top, rgba(7, 8, 11, 0.9), transparent);
  pointer-events: none;
}

#audio-visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

.track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.8rem;
  color: var(--pink-light);
  margin-top: 1px;
}

/* Progress bar */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.2s ease;
}

.progress-bar:hover {
  height: 6px;
}

.progress-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--grad-pink-white);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--pink-glow);
}

.time-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-sub {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.ctrl-sub:hover {
  color: #ffffff;
}

.ctrl-sub.active {
  color: var(--pink-main);
}

.ctrl-sub i {
  width: 17px;
  height: 17px;
}

.ctrl-main {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-pink-white);
  border: none;
  color: #07080b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px var(--pink-glow);
  transition: transform var(--transition-fast);
}

.ctrl-main:hover {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.6);
}

.ctrl-main i {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.volume-btn:hover {
  color: var(--pink-light);
}

.volume-btn i {
  width: 15px;
  height: 15px;
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-main);
  box-shadow: 0 0 6px var(--pink-glow);
  cursor: pointer;
}

/* ==========================================================================
   LINKS SECTION
   ========================================================================== */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.section-title-row h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--pink-main);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-text:hover {
  text-decoration: underline;
  color: var(--pink-light);
}

.btn-text i {
  width: 13px;
  height: 13px;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.link-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(244, 114, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6), 0 0 16px var(--pink-glow-subtle);
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.link-icon i {
  width: 19px;
  height: 19px;
}

.tg-theme { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.vk-theme { background: rgba(244, 114, 182, 0.12); color: var(--pink-light); }
.pin-theme { background: rgba(251, 113, 133, 0.15); color: #fb7185; }
.spot-theme { background: rgba(244, 114, 182, 0.18); color: var(--pink-main); }
.disc-theme { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.link-text {
  flex: 1;
  min-width: 0;
}

.link-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.link-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.arrow-icon, .copy-icon i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.link-item:hover .arrow-icon {
  color: var(--pink-main);
}

.tgk-theme { 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(244, 114, 182, 0.22)); 
  color: #ffffff; 
  border: 1px solid rgba(244, 114, 182, 0.4);
}

.tgk-item:hover {
  border-color: var(--pink-main);
  box-shadow: 0 8px 24px -6px rgba(244, 114, 182, 0.35);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(22, 24, 34, 0.95);
  border: 1px solid var(--pink-main);
  box-shadow: 0 0 15px var(--pink-glow);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.82rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 540px) {
  .container {
    padding: 18px 14px 60px 14px;
    gap: 16px;
  }

  .profile-banner {
    height: 150px;
  }

  .avatar-wrapper {
    width: 96px;
    height: 96px;
  }

  .profile-content {
    margin-top: -48px;
    padding: 0 16px;
  }

  .profile-name {
    font-size: 1.55rem;
  }

  .player-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-artwork {
    width: 100%;
    height: 130px;
  }

  .volume-container {
    display: none;
  }
}
