:root {
  color-scheme: dark;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-gothic: 'UnifrakturCook', cursive;
  --font-serif: 'Cinzel', serif;
  
  /* Black to Red Gradient Palette */
  --bg-dark: #060102;
  --bg-darker: #020001;
  --card-glass: rgba(18, 5, 8, 0.72);
  --card-glass-border: rgba(255, 60, 80, 0.12);
  --inner-card-bg: rgba(12, 3, 5, 0.9);
  --inner-card-border: rgba(255, 60, 80, 0.08);
  
  --accent-red: #ef4444;
  --accent-crimson: #dc2626;
  --accent-fire: #ff2a4b;
  --accent-dark-red: #7f1d1d;
  --accent-pink: #ff3b5c;
  
  --text-white: #ffffff;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --status-dnd: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  background: radial-gradient(circle at 50% 0%, #200408 0%, #080102 55%, #020001 100%);
  font-family: var(--font-main);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 2.5rem 1.5rem;
}

/* Moving Background Video Base - Crisp bg1.mp4 */
.bg-media {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: #060102;
  background-image: url('../assets/images/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.92) contrast(1.05);
  pointer-events: none;
}

body.entered .bg-video {
  filter: brightness(0.88) contrast(1.05);
}

/* Subtle Dither Scanline Matrix Overlay */
.bg-dither {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* Ambient Black-to-Red Vignette Overlay (Transparent Center so BG is clear) */
.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(4, 1, 2, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 1s ease;
}

body.entered .bg-vignette {
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 42, 75, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(220, 38, 38, 0.1), transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(4, 1, 2, 0.45) 100%);
}

/* Minimalist Click Anywhere Overlay */
.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  user-select: none;
}

.entry-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.entry-text {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0.55rem 1.45rem;
  border-radius: 999px;
  background: rgba(14, 3, 6, 0.75);
  border: 1px solid rgba(255, 60, 80, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 42, 75, 0.3);
  animation: breathe 2.4s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.entry-text::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1.5px;
  background: linear-gradient(90deg, #ff2a4b, #dc2626, #7f1d1d, #ef4444, #ff2a4b);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradientShift 3s linear infinite;
  pointer-events: none;
}

.entry-text:hover {
  transform: scale(1.08);
  background: rgba(26, 6, 10, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 42, 75, 0.55);
  color: #ffffff;
  letter-spacing: 0.28em;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* 3-Card Main Grid (Revealed after click) */
.profile-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 290px 280px;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 920px;
  width: 100%;
  opacity: 0;
  transform: translateY(28px) scale(0.95);
  pointer-events: none;
  perspective: 1200px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-layout.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Shared Glass Panel Base with 3D Motion & Black-to-Red Gradient Light Border */
.panel-card {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--card-glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) translateY(var(--move-y, 0px)) scale(var(--scale, 1));
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Interactive Cursor Spotlight with Red Glow */
.panel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 42, 75, 0.18), rgba(185, 28, 28, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* Glowing Animated Black-to-Red Gradient Light Line on Hover */
.panel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(135deg, #ff2a4b, #dc2626, #450a0a, #ef4444, #ff2a4b);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.28;
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.panel-card:hover {
  box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(220, 38, 38, 0.28), 0 0 25px rgba(255, 42, 75, 0.18);
  border-color: transparent;
}

.panel-card:hover::before {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 42, 75, 0.6));
  animation: gradientShift 4s ease infinite;
}

.panel-card:hover::after {
  opacity: 1;
}

/* ============================================================
   LEFT CARD: Groups & Affiliations
   ============================================================ */
.left-card {
  gap: 1rem;
  justify-content: flex-start;
}

.group-box {
  position: relative;
  background: var(--inner-card-bg);
  border: 1px solid var(--inner-card-border);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.group-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.8), rgba(153, 27, 27, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.group-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(220, 38, 38, 0.25);
}

.group-box:hover::before {
  opacity: 1;
}

.group-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  border-radius: 14px;
  background: rgba(255, 42, 75, 0.05);
  border: 1px solid rgba(255, 60, 80, 0.12);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bigger & clearer UTOPIA server logo */
.server-utopia-box .group-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 60, 80, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 75, 0.12);
}

.logo-avatar {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 60, 80, 0.2);
  padding: 0;
}

.server-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.gothic-avatar {
  font-family: var(--font-gothic);
  font-size: 2.75rem;
  line-height: 1;
  color: #ffffff;
  background: radial-gradient(circle, rgba(255, 42, 75, 0.15) 0%, rgba(255, 42, 75, 0.02) 100%);
  text-shadow: 0 0 16px rgba(255, 42, 75, 0.5);
}

.emblem-avatar {
  color: var(--accent-pink);
  background: rgba(255, 42, 75, 0.1);
  border-color: rgba(255, 42, 75, 0.22);
}

.group-box:hover .group-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(255, 42, 75, 0.3);
}

.group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.pill-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 42, 75, 0.06);
  border: 1px solid rgba(255, 60, 80, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Compact Socials Grid */
.social-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.compact-social-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.3rem;
  border-radius: 12px;
  background: rgba(12, 3, 5, 0.85);
  border: 1px solid rgba(255, 60, 80, 0.08);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.compact-social-btn span {
  white-space: nowrap;
}

.compact-social-btn.ig-btn svg { color: #f43f5e; }
.compact-social-btn.tt-btn svg { color: #ff2a4b; }
.compact-social-btn.dc-btn svg { color: #ef4444; }

.compact-social-btn:hover {
  background: rgba(26, 6, 10, 0.95);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
}

.compact-social-btn.ig-btn:hover {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(244, 63, 94, 0.35);
}

.compact-social-btn.tt-btn:hover {
  border-color: rgba(255, 42, 75, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 75, 0.35);
}

.compact-social-btn.dc-btn:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.35);
}

/* ============================================================
   CENTER CARD: Main Profile
   ============================================================ */
.center-card {
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem;
  background: rgba(26, 7, 11, 0.75);
  border-color: rgba(255, 60, 80, 0.15);
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  border: 2px solid rgba(255, 60, 80, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 75, 0.2);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Discord Live Avatar Decoration / Frame Overlay */
.avatar-decoration-img {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 2;
}

.avatar-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sparkle {
  position: absolute;
  font-size: 0.9rem;
  animation: floatDecor 3s ease-in-out infinite alternate;
}

.sparkle-1 { top: 6px; right: 8px; color: #ff3b5c; text-shadow: 0 0 8px #ff3b5c; }
.sparkle-2 { bottom: 8px; left: 8px; font-size: 1rem; color: #ef4444; animation-delay: -1s; }
.sparkle-3 { top: 4px; left: 10px; font-size: 0.85rem; color: #fff; animation-delay: -2s; }

@keyframes floatDecor {
  0% { transform: scale(0.9) rotate(-4deg); opacity: 0.8; }
  100% { transform: scale(1.15) rotate(6deg); opacity: 1; }
}

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #140508;
  z-index: 4;
  transition: background-color 0.3s ease;
}

.status-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-indicator.idle {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-indicator.dnd {
  background: var(--status-dnd);
  box-shadow: 0 0 8px var(--status-dnd);
}

.status-indicator.offline {
  background: #71717a;
  box-shadow: 0 0 4px #71717a;
}

.welcome-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.username-title {
  font-family: var(--font-gothic);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  min-height: 1.2em;
  text-shadow: 0 0 20px rgba(255, 42, 75, 0.45);
}

#typewriter::after {
  content: '│';
  display: inline-block;
  margin-left: 2px;
  color: var(--accent-fire);
  font-family: var(--font-main);
  font-weight: 300;
  text-shadow: 0 0 10px var(--accent-fire);
  animation: cursorBlink 0.9s infinite cubic-bezier(1, 0, 0, 1);
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.user-handle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.quote-text {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(244, 244, 245, 0.85);
  margin: 0.75rem 0 1.15rem;
  line-height: 1.4;
}

.local-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 42, 75, 0.06);
  border: 1px solid rgba(255, 60, 80, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}

.local-time-pill strong {
  color: #fff;
  font-weight: 700;
}

/* Discord Status Box with Gradient Light Line */
.discord-status-box {
  position: relative;
  width: 100%;
  margin-top: auto;
  background: rgba(14, 3, 6, 0.85);
  border: 1px solid rgba(255, 60, 80, 0.1);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  overflow: hidden;
}

.discord-status-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.85), rgba(185, 28, 28, 0.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.discord-status-box:hover {
  background: rgba(26, 6, 10, 0.95);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 42, 75, 0.3);
}

.discord-status-box:hover::before {
  opacity: 1;
}

.discord-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 42, 75, 0.15);
  color: #ff3b5c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-text-content {
  flex-grow: 1;
  overflow: hidden;
}

.status-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
}

.copy-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-quote {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

/* ============================================================
   RIGHT CARD: Spotify / Music Player with Volume Adjuster
   ============================================================ */
.right-card {
  background: rgba(18, 5, 8, 0.82);
  border-color: rgba(255, 60, 80, 0.12);
  padding: 1.35rem;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}

.listening-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Crimson Red Equalizer Wave Animation */
.spotify-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.s-bar {
  width: 2.5px;
  background-color: var(--accent-fire);
  border-radius: 2px;
  height: 3px;
  transition: height 0.2s ease;
  box-shadow: 0 0 6px rgba(255, 42, 75, 0.5);
}

.spotify-bars.playing .b1 { animation: spotifyBounce 0.8s ease-in-out infinite alternate; }
.spotify-bars.playing .b2 { animation: spotifyBounce 1.1s ease-in-out infinite alternate 0.25s; }
.spotify-bars.playing .b3 { animation: spotifyBounce 0.7s ease-in-out infinite alternate 0.4s; }

@keyframes spotifyBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Album Cover Image with Gradient Light Line */
.album-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #000;
  border: 1px solid rgba(255, 60, 80, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.album-cover-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.9), rgba(185, 28, 28, 0.7), rgba(255, 42, 75, 0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.album-cover-container:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 42, 75, 0.35);
}

.album-cover-container:hover::before {
  opacity: 1;
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.album-cover-container:hover .album-img {
  transform: scale(1.05);
}

.album-overlay-typography {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.homecoming-script {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.album-badge-sub {
  align-self: flex-end;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(18, 4, 7, 0.7);
  border: 1px solid rgba(255, 60, 80, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Track Metadata */
.track-info-block {
  text-align: left;
  margin-bottom: 0.85rem;
}

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

.player-artist {
  font-size: 0.76rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

/* Timeline & Seek Bar */
.timeline-container {
  margin-bottom: 0.9rem;
}

.time-readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.seek-bar-wrapper {
  display: flex;
  align-items: center;
}

/* Custom Range Input for Timeline and Volume */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #24080c;
  outline: none;
  cursor: pointer;
}

/* Timeline Seek Slider (Black to Red gradient fill) */
#seek-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff2a4b 0%, #ff2a4b var(--seek-fill, 0%), #24080c var(--seek-fill, 0%), #24080c 100%);
}

#seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -3px;
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.75);
  transition: transform 0.15s ease;
}

#seek-slider:hover::-webkit-slider-thumb {
  transform: scale(1.4);
}

/* Playback Control Buttons */
.player-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.nav-control-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: all 0.2s ease;
}

.nav-control-btn:hover {
  color: #ff3b5c;
  transform: scale(1.15);
}

.main-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #0c0204;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 42, 75, 0.4);
}

.main-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 42, 75, 0.65);
}

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

/* Dedicated Volume Adjuster Bar */
.volume-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 42, 75, 0.05);
  border: 1px solid rgba(255, 60, 80, 0.08);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
}

.volume-speaker-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.2s ease;
}

.volume-speaker-btn:hover {
  color: #ff3b5c;
}

.vol-slider-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

#vol-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff2a4b 0%, #dc2626 var(--vol-fill, 75%), #24080c var(--vol-fill, 75%), #24080c 100%);
}

#vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -3px;
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.75);
  transition: transform 0.15s ease;
}

#vol-slider:hover::-webkit-slider-thumb {
  transform: scale(1.3);
}

.vol-percent-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Toast Notification */
.toast-pill {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 40px);
  background: rgba(20, 5, 8, 0.95);
  border: 1px solid rgba(255, 60, 80, 0.3);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 42, 75, 0.3);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast-pill.active {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 880px) {
  .profile-layout {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 1.25rem;
  }
}
