/* ==========================================================================
   SWARA PROFILE & CREATOR STUDIO THEME ENGINE
   Modernized Glassmorphism, Horizontal Social Dock, Anime.js & Interactive Bento Layout
   ========================================================================== */

@font-face {
  font-family: 'Manufacturing Consent';
  src: url('../fonts/ManufacturingConsent-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --profile-bg: #0f0f12;
  --profile-card-bg: rgba(24, 24, 28, 0.75);
  --profile-card-border: rgba(255, 255, 255, 0.08);
  --profile-card-border-hover: rgba(255, 255, 255, 0.2);
  --profile-accent: #ffffff;
  --profile-text: #f4f4f5;
  --profile-muted: #a1a1aa;
  --profile-dim: #71717a;
  --profile-card-radius: 1rem;
  --profile-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --glass-glow: rgba(255, 255, 255, 0.05);
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.profile-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--profile-bg);
  color: var(--profile-text);
  font-family: var(--profile-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Ambient Floating Glow Orbs */
.ambient-glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  will-change: transform;
}

.glow-orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--profile-accent, #fff) 0%, rgba(255,255,255,0) 70%);
}

.glow-orb-2 {
  width: 360px;
  height: 360px;
  bottom: 5%;
  right: -80px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.3) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.profile-container {
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
  padding: 2rem 1.25rem 5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .profile-container {
    padding: 1rem 0.75rem 5rem;
    max-width: 100vw;
  }
  .glow-orb {
    filter: blur(25px);
    opacity: 0.12;
  }
}

/* Cover Banner */
.profile-banner-wrapper {
  width: 100%;
  height: 160px;
  border-radius: var(--profile-card-radius);
  overflow: hidden;
  margin-bottom: -50px;
  border: 1px solid var(--profile-card-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--profile-card-blur));
  -webkit-backdrop-filter: blur(var(--profile-card-blur));
  position: relative;
  z-index: 1;
}

.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Identity Card */
.profile-header-card {
  background: var(--profile-card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--profile-card-border);
  border-radius: var(--profile-card-radius);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-header-card:hover {
  border-color: var(--profile-card-border-hover);
}

.profile-avatar-box {
  width: 96px;
  height: 96px;
  margin: -68px auto 0.85rem;
  position: relative;
  z-index: 10;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--profile-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--profile-card-border);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-box:hover .profile-avatar-img {
  transform: scale(1.05);
}

.badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  max-width: 100%;
}

.dev-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(234, 88, 12, 0.15) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.official-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.custom-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  margin: 0 0 0.25rem;
}

.profile-name {
  font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: center;
}

.verified-name-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.profile-vanity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--profile-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  max-width: 100%;
  word-break: break-all;
  transition: all 0.2s ease;
}

.profile-vanity-badge:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.profile-headline {
  font-size: 0.92rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 0.45rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.profile-bio {
  font-size: 0.86rem;
  color: var(--profile-muted);
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--profile-dim);
  margin-bottom: 1.15rem;
  max-width: 100%;
}

/* ==========================================================================
   Horizontal Social Icon Dock
   ========================================================================== */
.profile-social-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  text-decoration: none;
  position: relative;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon-btn svg,
.social-icon-btn img,
.social-icon-img {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-btn img,
.social-icon-img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  border-radius: 4px;
}

.social-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px var(--glass-glow);
}

.social-icon-btn:hover svg,
.social-icon-btn:hover img,
.social-icon-btn:hover .social-icon-img {
  transform: scale(1.12);
}

.social-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Platform-specific brand accents on hover */
.social-icon-btn[data-platform="instagram"]:hover { color: #e1306c; border-color: rgba(225, 48, 108, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(225, 48, 108, 0.35); }
.social-icon-btn[data-platform="youtube"]:hover { color: #ff0000; border-color: rgba(255, 0, 0, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 0, 0, 0.35); }
.social-icon-btn[data-platform="spotify"]:hover { color: #1db954; border-color: rgba(29, 185, 84, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(29, 185, 84, 0.35); }
.social-icon-btn[data-platform="patreon"]:hover { color: #ff424d; border-color: rgba(255, 66, 77, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 66, 77, 0.35); }
.social-icon-btn[data-platform="discord"]:hover { color: #5865f2; border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(88, 101, 242, 0.35); }
.social-icon-btn[data-platform="tiktok"]:hover { color: #00f2fe; border-color: rgba(0, 242, 254, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 242, 254, 0.35); }
.social-icon-btn[data-platform="twitter"]:hover,
.social-icon-btn[data-platform="x"]:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 255, 255, 0.2); }
.social-icon-btn[data-platform="kofi"]:hover,
.social-icon-btn[data-platform="ko-fi"]:hover { color: #ff5e5b; border-color: rgba(255, 94, 91, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 94, 91, 0.35); }
.social-icon-btn[data-platform="gumroad"]:hover { color: #ff90e8; border-color: rgba(255, 144, 232, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 144, 232, 0.35); }
.social-icon-btn[data-platform="soundcloud"]:hover { color: #ff5500; border-color: rgba(255, 85, 0, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 85, 0, 0.35); }
.social-icon-btn[data-platform="twitch"]:hover { color: #a970ff; border-color: rgba(169, 112, 255, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(169, 112, 255, 0.35); }
.social-icon-btn[data-platform="github"]:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }
.social-icon-btn[data-platform="custom"]:hover { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px var(--glass-glow); }

/* Tooltip */
.social-icon-btn .social-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f4f4f5;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.social-icon-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Bento Section Blocks
   ========================================================================== */
.profile-block {
  background: var(--profile-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--profile-card-border);
  border-radius: var(--profile-card-radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.profile-block:hover {
  border-color: var(--profile-card-border-hover);
}

.block-header {
  margin-bottom: 1.15rem;
}

.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.block-subtitle {
  font-size: 0.8rem;
  color: var(--profile-dim);
}

/* Projects Bento Grid */
.projects-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.project-card {
  background: var(--profile-card-bg);
  backdrop-filter: blur(var(--profile-card-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--profile-card-blur)) saturate(160%);
  border: 1px solid var(--profile-card-border);
  border-radius: var(--profile-card-radius);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-thumbnail {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-bottom: 1px solid var(--profile-card-border);
  background: #18181b;
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.03);
}

.project-content {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-size: 0.68rem;
  color: #a1a1aa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.project-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tag-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
}

.project-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  margin-top: 0.7rem;
  transition: color 0.15s ease;
}

.project-action-link:hover {
  color: var(--profile-accent, #ffffff);
  text-decoration: underline;
}

/* Service Chips */
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e4e4e7;
  transition: all 0.18s ease;
}

.service-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ==========================================================================
   Modernized Message Form (Glassmorphism & Clean Focus Rings)
   ========================================================================== */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.profile-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--profile-muted);
  letter-spacing: 0.01em;
}

.profile-form-input,
.profile-form-textarea {
  width: 100%;
  background: rgba(14, 14, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  color: #ffffff;
  font-family: var(--profile-font);
  font-size: 0.88rem;
  padding: 0.75rem 0.95rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-form-input::placeholder,
.profile-form-textarea::placeholder {
  color: #71717a;
}

.profile-form-input:hover,
.profile-form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 24, 0.6);
}

.profile-form-input:focus,
.profile-form-textarea:focus {
  border-color: var(--profile-accent, #ffffff);
  background: rgba(24, 24, 30, 0.75);
  box-shadow: 0 0 0 3.5px rgba(255, 255, 255, 0.1);
}

.profile-form-textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

.profile-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--profile-accent, #ffffff);
  color: #09090b;
  border: none;
  border-radius: 0.65rem;
  font-family: var(--profile-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
}

.profile-submit-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.profile-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.profile-msg-status {
  padding: 0.75rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideFadeIn 0.3s ease-out;
}

.profile-msg-status.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.profile-msg-status.status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Watermark Badge */
.swara-creator-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(24, 24, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--profile-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99;
  transition: all 0.2s ease;
}

.swara-creator-badge:hover {
  background: rgba(39, 39, 42, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Background Media Layer (Video / Custom Image with Glass Overlay)
   ========================================================================== */
.profile-bg-media-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.profile-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(1px);
}

/* ==========================================================================
   Floating Song Theme Audio Player
   ========================================================================== */
.floating-song-player {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: var(--profile-card-bg, rgba(20, 20, 24, 0.85));
  backdrop-filter: blur(var(--profile-card-blur, 24px));
  -webkit-backdrop-filter: blur(var(--profile-card-blur, 24px));
  border: 1px solid var(--profile-card-border, rgba(255, 255, 255, 0.15));
  border-radius: 9999px;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  animation: floatPlayerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

.floating-song-player:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px -6px rgba(0, 0, 0, 0.85);
}

@keyframes floatPlayerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.player-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--profile-accent, #ffffff);
  color: #09090b;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-toggle-btn:hover {
  transform: scale(1.08);
}

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

.player-toggle-btn .icon-play {
  display: block;
}

.player-toggle-btn .icon-pause {
  display: none;
}

.floating-song-player.is-playing .player-toggle-btn .icon-play {
  display: none !important;
}

.floating-song-player.is-playing .player-toggle-btn .icon-pause {
  display: block !important;
}

.player-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  padding: 0 4px;
}

.eq-bar {
  width: 3.5px;
  background: var(--profile-accent, #ffffff);
  border-radius: 9999px;
  height: 4px;
  min-height: 4px;
  transition: height 0.15s ease;
  transform-origin: bottom;
}

.floating-song-player.is-playing .eq-bar.bar-1 { animation: eqPulse 0.75s ease-in-out infinite alternate !important; }
.floating-song-player.is-playing .eq-bar.bar-2 { animation: eqPulse 0.55s ease-in-out infinite alternate 0.12s !important; }
.floating-song-player.is-playing .eq-bar.bar-3 { animation: eqPulse 0.85s ease-in-out infinite alternate 0.25s !important; }
.floating-song-player.is-playing .eq-bar.bar-4 { animation: eqPulse 0.65s ease-in-out infinite alternate 0.38s !important; }

@keyframes eqPulse {
  0% { height: 4px; }
  50% { height: 18px; }
  100% { height: 7px; }
}

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 80px;
  max-width: 180px;
  overflow: hidden;
}

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

.player-artist {
  font-size: 0.68rem;
  color: var(--profile-muted, #a1a1aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.player-time {
  font-size: 0.7rem;
  color: var(--profile-dim, #71717a);
  font-family: ui-monospace, monospace;
}

.player-mute-btn {
  background: transparent;
  border: none;
  color: var(--profile-muted, #a1a1aa);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.player-mute-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Counter Stats Bento Block (Max 3 Items)
   ========================================================================== */
.counter-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.counter-stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--profile-card-radius) * 0.75);
  padding: 1.15rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.counter-stat-val {
  font-family: var(--profile-heading-font);
  font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--profile-accent, #e4e4e7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-all;
  white-space: nowrap;
}

.counter-stat-lbl {
  font-size: clamp(0.6rem, 2.2vw, 0.72rem);
  font-weight: 600;
  color: var(--profile-muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 640px) {
  .profile-container {
    padding: 0.85rem 0.65rem 5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .profile-header-card {
    padding: 1.5rem 0.85rem 1.25rem !important;
    margin-bottom: 0.85rem !important;
  }
  .profile-block {
    padding: 1.15rem 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }
  .counter-stats-grid {
    gap: 0.35rem !important;
  }
  .counter-stat-item {
    padding: 0.75rem 0.2rem !important;
  }
}


