:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  --primary-accent: #f472b6;
  --secondary-accent: #a78bfa;
}

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

body {
  font-family: var(--font-main);
  background-color: #0b0f19;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ========================================================
   FULLSCREEN VIDEO BACKGROUND
   ======================================================== */
.video-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0.7) contrast(1.1) saturate(1.15);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.35) 0%, rgba(11, 15, 25, 0.8) 100%);
  backdrop-filter: blur(2px);
}

/* ========================================================
   GLASSMORPHISM CARD
   ======================================================== */
.glass-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  box-shadow: var(--glass-shadow);
  padding: 44px 32px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.card-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.3) 0%, rgba(167, 139, 250, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ========================================================
   CIRCULAR AVATAR
   ======================================================== */
.avatar-wrapper {
  position: relative;
  width: 154px;
  height: 154px;
  margin-bottom: 24px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f472b6, #c084fc, #60a5fa, #34d399, #f472b6);
  animation: rotateRing 8s linear infinite;
  filter: blur(4px);
  opacity: 0.85;
}

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

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.04);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 18px;
  height: 18px;
  background-color: #10b981;
  border: 3px solid rgba(15, 23, 42, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 12px #10b981;
}

/* ========================================================
   NAME & TYPOGRAPHY
   ======================================================== */
.profile-name {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #fbcfe8 75%, #ddd6fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fce7f3;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quote {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ========================================================
   PLAYER BAR (GLASS)
   ======================================================== */
.player-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.player-bar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.control-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.control-btn:active {
  transform: scale(0.95);
}

.icon {
  width: 18px;
  height: 18px;
}

.track-info {
  flex: 1;
  text-align: left;
  overflow: hidden;
}

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

.track-artist {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Equalizer Bars */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  padding-right: 4px;
}

.equalizer .bar {
  width: 3px;
  background: linear-gradient(to top, #f472b6, #c084fc);
  border-radius: 3px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}

.equalizer .bar-1 { height: 60%; animation-delay: 0.1s; }
.equalizer .bar-2 { height: 100%; animation-delay: 0.3s; }
.equalizer .bar-3 { height: 40%; animation-delay: 0.2s; }
.equalizer .bar-4 { height: 80%; animation-delay: 0.4s; }

.equalizer.paused .bar {
  animation: none;
  height: 4px;
  opacity: 0.4;
}

@keyframes eqBounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Unmute Banner */
.unmute-banner {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbcfe8;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  animation: pulseUnmute 2s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.unmute-banner:hover {
  background: rgba(244, 114, 182, 0.25);
  transform: scale(1.03);
}

.unmute-banner.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

@keyframes pulseUnmute {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hidden {
  display: none !important;
}

/* Animations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .glass-card {
    padding: 36px 24px 28px 24px;
    border-radius: 28px;
  }
  .avatar-wrapper {
    width: 130px;
    height: 130px;
  }
  .profile-name {
    font-size: 2.5rem;
  }
  .player-bar {
    padding: 10px 14px;
    gap: 10px;
  }
}
