html {
  width: 100vw;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Asimovian", sans-serif;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* ✅ Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  object-fit: cover;
  z-index: -2;
}

/* ✅ Dark + Blur Overlay */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  z-index: -1;
}

/* Particles and Music removed */

/* Card */
.card {
  position: relative;
  background: rgba(10,12,18,0.2);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: min(92vw, 560px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.08) inset;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, opacity 0.35s ease;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 1;
}

/* Loader Overlay */
#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  animation: loader-in 450ms ease-out both;
}
.loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(18px);
}
.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(10px) scale(0.98);
  animation: loader-content-in 550ms cubic-bezier(.2,.8,.2,1) both;
}
.loader-content lord-icon {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.9)) drop-shadow(0 0 18px rgba(255,255,255,0.7));
}
.loader-text {
  color: #000;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,255,255,0.9);
}

/* Exit state (added via JS) */
#loader.is-exiting { animation: loader-out 550ms cubic-bezier(.2,.8,.2,1) forwards; }
#loader.is-exiting .loader-content { animation: none; }
#loader.is-exiting .loader-content lord-icon { animation: loader-icon-pop 600ms cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-content-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes loader-out { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes loader-content-out {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes loader-icon-pop {
  0% { transform: scale(1); }
  60% { transform: scale(1.25); }
  100% { transform: scale(0.9); opacity: 0; }
}

/* App entrance after loader (disabled for card; only loader icon pops) */
.app-loaded .card { animation: none; }

/* Banner Video */
.banner {
  width: 100%;
  height: clamp(120px, 22vw, 180px);
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: -60px;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(255,255,255,0.6), 0 0 48px rgba(255,255,255,0.35), 0 0 72px rgba(255,255,255,0.22);
}
.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Profile */
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 10;
}
.username {
  margin: 20px 0 5px;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 14px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Tags (GIFs) */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 6px;
  cursor: pointer;
  padding: 12px 14px; /* larger, easier hit area */
  border-radius: 9999px;
  background: #000;
  box-shadow: 0 0 12px rgba(255,255,255,0.18), 0 0 10px rgba(0,0,0,0.3) inset;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
  transform-origin: center;
  z-index: 20;
  min-width: 40px;
  min-height: 40px;
  line-height: 1;
}
.tag:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255,255,255,0.8), 0 0 25px rgba(255,255,255,0.6);
  z-index: 25;
}
/* Icon turns black on hover */
.tag:hover .tag-icon { filter: brightness(0); }

/* Artist tag: icon only, no circular background; keep white glow */
.tag[aria-label="Artist"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
}
.tag[aria-label="Artist"] .tag-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.8)) drop-shadow(0 0 14px rgba(255,255,255,0.5));
  will-change: filter;
}
.tag[aria-label="Artist"]:hover {
  background: transparent;
  box-shadow: none;
}
.tag[aria-label="Artist"]:hover .tag-icon {
  animation: artist-rainbow-full 2.5s linear infinite;
}

@keyframes artist-rainbow-full {
  0% {
    filter: sepia(1) saturate(10) hue-rotate(0deg) drop-shadow(0 0 10px rgba(255,255,255,0.9)) drop-shadow(0 0 16px rgba(255,255,255,0.6));
  }
  100% {
    filter: sepia(1) saturate(10) hue-rotate(360deg) drop-shadow(0 0 10px rgba(255,255,255,0.9)) drop-shadow(0 0 16px rgba(255,255,255,0.6));
  }
}
/* ✅ Force GIF icons to be white */
.tag-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
/* Ensure lord-icon in tag inherits icon styling */
.tag lord-icon.tag-icon { filter: none; }
.tag:hover lord-icon.tag-icon { filter: brightness(0); }
.tag .tooltip {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #07141c;
  border: 1px solid rgba(255,255,255,0.4);
  color: #c7fff9;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  box-shadow: 0 0 18px rgba(255,255,255,0.15);
  transition: transform 0.15s ease;
  z-index: 3;
}
.tag:hover .tooltip {
  opacity: 1; /* instant */
  transform: translateX(-50%) translateY(0);
}

/* Bio */
.bio {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 15px;
}

/* About */
.about {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  color: #efefef;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,255,255,0.12) inset, 0 0 24px rgba(255,255,255,0.06) inset;
}
.about .highlight {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: none;
}
.about .highlight:hover {
  text-shadow: none;
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px 0;
}
.links-title {
  text-align: center;
  margin: 10px 0 14px;
  font-size: 20px;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 18px rgba(255,255,255,0.5);
}
.link-btn {
  position: relative;
  --bg: #000; /* black default */
  --fg: #fff; /* white text/icon */
  background: var(--bg);
  padding: 16px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 460px);
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: none; /* no border/glow */
  will-change: transform, box-shadow;
  transform-origin: center;
  cursor: pointer;
  z-index: 20;
  min-height: 72px;
  line-height: 1;
  color: var(--fg);
  text-decoration: none; /* remove underline */
}
.link-btn::before, .link-btn::after { content: none; }
.link-btn .link-inner { display: inline-flex; align-items: center; gap: 16px; color: inherit; }
.link-btn lord-icon { width: 36px; height: 36px; }
.link-btn .label { font-size: 22px; font-weight: 700; letter-spacing: 0.4px; }
.link-btn:hover { background: #fff; color: #000; transform: translateY(-2px); }
.link-btn:hover lord-icon { filter: brightness(0); }
.link-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
/* removed spinning glow */
/* Icon turns black on hover */
.link-btn:hover img { filter: brightness(0); }
.link-btn .tooltip {
  position: absolute;
  bottom: -30px;
  background: #07141c;
  border: 1px solid rgba(255,255,255,0.4);
  color: #c7fff9;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  box-shadow: 0 0 18px rgba(255,255,255,0.15);
  transition: transform 0.15s ease;
  white-space: nowrap;
  z-index: 3;
}
.link-btn:hover .tooltip {
  opacity: 1; /* instant */
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 520px) {
  .profile-pic { width: 104px; height: 104px; }
  .username { font-size: 22px; }
  .bio { font-size: 13px; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
