/* Bio-link full styles - matching reference design */

/* Background */

.bg-video {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2 !important;
  opacity: 0.8;
}

.bg-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

#ent_ov.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.ent-content {
  text-align: center;
  animation: entFadeIn 0.8s ease-out;
}

@keyframes entFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ent-icon {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 20px;
  animation: entPulse 2s ease-in-out infinite;
}

@keyframes entPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.ent-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
}

.ent-hint {
  color: rgba(255,255,255,0.4);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* Main Layout */
.wrap {
  perspective: 800px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  transform-style: preserve-3d;
  text-align: center;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 25px;
}

.avatar:hover {
  transform: scale(1.05) translateZ(20px);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 35px 80px rgba(0,0,0,0.8);
}

.nick {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.tagline {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 300;
  margin: 0 0 30px 0;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ── Music Disc ── */
.disc-wrap {
  position: fixed;
  bottom: 115px;
  left: 30px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.vinyl {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #2a2a2a, #0d0d0d 60%, #050505);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.08),
    0 0 0 8px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.7),
    inset 0 -10px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.vinyl::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
}

.vinyl-light {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

/* Glow ring when spinning */
.vinyl.spinning {
  animation: spin 4s linear infinite, glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 0 0 8px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.7), 0 0 20px rgba(0,255,136,0.1); }
  100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 0 0 8px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(0,255,136,0.25); }
}

.vinyl-cover {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 3;
  position: relative;
  pointer-events: none;
}

.vinyl-hole {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a1a;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.vinyl.paused {
  animation-play-state: paused;
}

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

/* Disc tip (play/pause label) */
.disc-tip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 400;
}

.disc-wrap:hover .disc-tip {
  color: rgba(255,255,255,0.8);
}

.disc-wrap:hover .vinyl {
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.12),
    0 0 0 8px rgba(255,255,255,0.05),
    0 25px 70px rgba(0,0,0,0.8),
    inset 0 -10px 40px rgba(0,0,0,0.5);
}

.presence {
  margin: 35px 0 45px 0;
  padding: 25px 35px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  transform: translateZ(120px);
  transform-style: preserve-3d;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.p-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
}

.p-text {
  flex: 1;
  text-align: left;
}

#txt1 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

#txt2 {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 12px rgba(0,255,136,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.icon:hover {
  transform: translateY(-8px) scale(1.1);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.icon.paypal:hover {
  background: #003087;
  border-color: #003087;
  box-shadow: 0 0 18px rgba(0,48,135,0.6);
}

.icon.discord:hover { background:#5865F2; border-color:#5865F2; box-shadow:0 0 18px rgba(88,101,242,0.6); }
.icon.spotify:hover { background:#1DB954; border-color:#1DB954; box-shadow:0 0 18px rgba(29,185,84,0.6); }
.icon.instagram:hover { background:#C13584; border-color:#C13584; box-shadow:0 0 18px rgba(193,53,132,0.6); }
.icon.tiktok:hover { background:#6e5494; border-color:#6e5494; box-shadow:0 0 18px rgba(110,84,148,0.6); color:#fff; }
.icon.github:hover { background:#2c3e50; border-color:#2c3e50; box-shadow:0 0 18px rgba(44,62,80,0.6); }

/* Toasts & Popups */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 14px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(15px);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.volume-control {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

#vol_in {
  width: 80px;
  height: 4px;
  accent-color: #00ff88;
}

/* ── Mobile Bottom Player ── */
.mobile-player {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
  z-index: 500;
  align-items: center;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-player.visible {
  transform: translateY(0);
}

.mp-disc {
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mp-vinyl {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #2a2a2a, #0d0d0d 60%, #050505);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 0 0 4px rgba(255,255,255,0.03),
    0 8px 24px rgba(0,0,0,0.6),
    inset 0 -6px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mp-vinyl::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 1.5px,
    rgba(255,255,255,0.015) 1.5px,
    rgba(255,255,255,0.015) 3px
  );
  pointer-events: none;
}

.mp-vinyl-light {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.mp-cover {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 3;
  position: relative;
  pointer-events: none;
}

.mp-hole {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a1a1a;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.mp-vinyl.spinning {
  animation: mpSpin 4s linear infinite;
}

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

.mp-vinyl.paused {
  animation-play-state: paused;
}

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

.mp-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-track {
  font-size: 13px;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}

.mp-volume {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-vol-icon {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

#mp_vol_in {
  width: 56px;
  height: 3px;
  accent-color: #00ff88;
  cursor: pointer;
}

/* ── Responsive / Mobile Optimization ── */

/* Tablet & small laptop */
@media (max-width: 820px) {
  .avatar { width: 160px; height: 160px; }
  .vinyl { width: 170px; height: 170px; }
  .vinyl-cover { width: 76px; height: 76px; }
  .presence { padding: 20px 24px; max-width: 380px; }
  .icon { width: 64px; height: 64px; font-size: 21px; }
  .icons { gap: 16px; }
}

/* Large phones */
@media (max-width: 600px) {
  html, body {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
  }

  .wrap {
    padding: 16px;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }

  .card {
    padding-top: 10px;
  }

  .avatar {
    width: 130px;
    height: 130px;
    margin-bottom: 18px;
    border-width: 3px;
  }

  .nick {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 6px;
  }

  .tagline {
    font-size: clamp(0.82rem, 2.8vw, 1rem);
    margin-bottom: 22px;
    padding: 0 10px;
  }

  /* Hide inline disc on mobile */
  .disc-wrap { display: none; }

  /* Show mobile player */
  .mobile-player { display: flex; }

  /* Hide old floating volume on mobile */
  .volume-control { display: none !important; }

  .presence {
    margin: 18px 0 28px 0;
    padding: 16px 18px;
    gap: 14px;
    max-width: 320px;
    border-radius: 18px;
  }

  .p-avatar {
    width: 48px;
    height: 48px;
  }

  #txt1 {
    font-size: 14px;
  }

  #txt2 {
    font-size: 12px;
  }

  .icons {
    gap: 10px;
    padding: 12px 0 90px;
  }

  .icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
    border-width: 1.5px;
  }

  .icon:hover {
    transform: none;
  }

  .icon:active {
    transform: scale(0.92);
  }

  .toast {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 13px;
  }

  .volume-control {
    bottom: 20px;
    left: 20px;
    padding: 12px;
    gap: 8px;
  }

  #vol_in {
    width: 60px;
  }

  /* Mobile player responsive sizing */
  .mobile-player {
    padding: 10px 12px;
    gap: 10px;
  }

  .mp-vinyl { width: 46px; height: 46px; }
  .mp-cover { width: 22px; height: 22px; }
  .mp-hole { width: 4px; height: 4px; }
  .mp-track { font-size: 12px; }
  #mp_vol_in { width: 44px; }

  .toast {
    bottom: 80px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .avatar {
    width: 105px;
    height: 105px;
    margin-bottom: 14px;
  }

  .nick {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .tagline {
    font-size: clamp(0.72rem, 2.5vw, 0.85rem);
    margin-bottom: 18px;
  }

  .presence {
    padding: 14px 14px;
    max-width: 260px;
  }

  .icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .icons {
    gap: 8px;
    padding-bottom: 85px;
  }

  .toast {
    bottom: 80px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .wrap {
    padding: 10px 20px;
  }

  .avatar {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .vinyl {
    width: 100px;
    height: 100px;
  }

  .vinyl-cover {
    width: 44px;
    height: 44px;
  }

  .nick {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 4px;
  }

  .tagline {
    display: none;
  }

  .presence {
    margin: 10px 0 14px 0;
    padding: 10px 14px;
  }

  .p-avatar {
    width: 36px;
    height: 36px;
  }

  .icon {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .icons {
    gap: 8px;
    padding: 8px 0 70px;
  }

  /* Landscape mobile player */
  .mobile-player {
    padding: 8px 14px;
    gap: 10px;
  }

  .mp-vinyl { width: 42px; height: 42px; }
  .mp-cover { width: 20px; height: 20px; }
  .mp-hole { width: 4px; height: 4px; }
  .mp-track { font-size: 11px; }
  #mp_vol_in { width: 40px; }

  .toast { bottom: 70px; }
}

/* Dark room dimming for OLED */
@media (prefers-color-scheme: dark) {
  .vinyl {
    background: radial-gradient(ellipse at 30% 30%, #222, #080808 60%, #020202);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .vinyl.spinning {
    animation-duration: 8s;
  }
  .status-dot {
    animation: none;
  }
}
