/* =========================================================
   1. Base Reset & Global Defaults
   ---------------------------------------------------------
   - Normalizes spacing & sizing across the page
   - Sets the base typography and background handling
   ========================================================= */

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

body {
  --profile-bg: #000;
  background: #000;
  font-family: 'Courier New', monospace;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.home {
  --profile-bg: url('../background/background.gif');
  background-image: var(--profile-bg);
  background-size: 0px;
  background-repeat: no-repeat;
  background-position: center center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--profile-bg, url('../images/backgroundv2.png'))
    center center / cover no-repeat;
  filter: blur(16px);
  opacity: 0.8;
  transform: scale(1.2);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    var(--profile-bg, url('../images/backgroundv2.png'))
      center center / cover no-repeat;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.container {
  text-align: center;
  padding-top: 50px;
  padding-inline: 16px;
  position: relative;
  z-index: 1;
}

.logo {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
}

.typing {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(to right, silver, white, silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2s linear infinite;
  display: inline-block;
}

@keyframes shine {
  0% { background-position: -200px; }
  100% { background-position: 200px; }
}

/* =========================================================
   2. Background Media & Global FX
   ---------------------------------------------------------
   - Handles video backgrounds
   - Blurred image overlay using body::before
   - Dim overlay using body::after
   - Snowflake visual elements
   ========================================================= */

.profile-bg-video-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.profile-bg-video--back {
  z-index: 0;
  filter: blur(20px);
  transform: scale(1.15);
  opacity: 0.9;
}

.profile-bg-video--front {
  z-index: 1;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  height: 100vh;
  width: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6;
  filter: none;
  border-radius: 0;
}

body.has-video-bg::before,
body.has-video-bg::after {
  content: none;
}

.snowflake {
  position: fixed;
  top: -10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 1;
}

/* =========================================
   Entry / Loading Screen
   ========================================= */

.entry-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.entry-screen-content {
  text-align: center;
  animation: entryPulse 2s ease-in-out infinite;
}

.entry-title {
  font-size: 32px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.entry-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.entry-screen--hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes entryPulse {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.5; transform: scale(1); }
}

.entry-loader {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.entry-loader span {
  font-size: 18px;
  font-weight: 700;
}

.entry-message {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  color: rgba(200, 200, 200, 0.8);
  filter: blur(1px);
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.entry-message--show {
  opacity: 1;
  filter: blur(0);
}

/* =========================================================
   3. Profile Grid (Home Page)
   ---------------------------------------------------------
   - Grid layout of profile cards
   - Responsive behavior for tablet & mobile
   ========================================================= */

.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  gap: 8px;
  padding: 16px;
  justify-items: center;
  justify-content: center;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.profiles > :nth-last-child(1):nth-child(3n + 1) {
  grid-column: 2;
}

@media (max-width: 900px) {
  .profiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .profiles {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}


/* =========================================================
   4. Profile Card (Home Page Avatar Tiles)
   ---------------------------------------------------------
   - Small avatar + name widgets
   - Hover/focus motion
   - Mobile-friendly max-width
   ========================================================= */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
  cursor: pointer;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  width: 100%;
  max-width: 160px;
}

.profile:focus-visible {
  outline: 2px solid #d6dbf3;
  outline-offset: 4px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 118px;
  height: 118px;
  padding: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%);
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.12),
    0 12px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-bg {
  position: absolute;
  inset: -6%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 65%);
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
}

.profile-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: filter 0.3s, transform 0.3s;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.profile-avatar-decoration {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: contain;
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.profile-avatar-wrapper.has-decoration .profile-avatar-decoration {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.profile:hover .profile-avatar-wrapper {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile:hover .profile-avatar {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.profile:hover {
  transform: translateY(-2px);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-name {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.4px;
}


/* =========================================================
   5. Profile Detail Layout
   ---------------------------------------------------------
   - Used on individual profile pages
   - Two-column layout that collapses to single column on mobile
   ========================================================= */

.profile-detail {
  max-width: 980px;
  margin: 120px auto 60px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.profile-detail__back {
  color: #d6dbf3;
  text-decoration: none;
  font-size: 16px;
}

.profile-detail__back:hover {
  text-decoration: underline;
}

.profile-detail__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.profile-detail__header h1 {
  font-size: 32px;
}

.profile-detail__tagline {
  color: #d6dbf3;
  font-size: 16px;
}

.profile-detail__content {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
}

.profile-detail__avatar {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.profile-detail__bio {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-detail__bio h2 {
  font-size: 20px;
}

.profile-detail__bio h3 {
  font-size: 16px;
}

.profile-detail__bio ul {
  list-style: disc;
  margin-left: 22px;
  display: grid;
  gap: 8px;
}

.profile-detail__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-detail__pill {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 14px;
  color: #e7eaf3;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   6. Profile Socials (Icon-only Bar)
   ---------------------------------------------------------
   - Minimal icon buttons with glowing brand-colored halos
   - Text labels visually hidden
   ========================================================= */

.profile-socials {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-socials__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.profile-socials__label {
  display: none;
}

.profile-socials__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  --glow-color: currentColor;
  box-shadow: none;
  animation: none;
}

.profile-socials__icon-img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--glow-color));
  animation: profileSocialHalo 2.4s ease-in-out infinite alternate;
}

.profile-socials__icon::before {
  content: none;
}

.profile-socials__item:hover,
.profile-socials__item:focus-visible {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.1);
  outline: none;
}

.profile-socials__item:hover .profile-socials__icon::before,
.profile-socials__item:focus-visible .profile-socials__icon::before {
  opacity: 0.9;
  transform: scale(1.3);
}

.profile-socials__icon--discord {
  --glow-color: #5865f2;
}
.profile-socials__icon--github {
  --glow-color: #ffffff;
}
.profile-socials__icon--instagram {
  --glow-color: #d62976;
}
.profile-socials__icon--youtube {
  --glow-color: #ff0000;
}
.profile-socials__icon--spotify {
  --glow-color: #1db954;
}
.profile-socials__icon--tiktok {
  color: #0d0d0d;
  --glow-color: #0d0d0d;
}
.profile-socials__icon--kick {
  color: #52ff52;
  --glow-color: #52ff52;
}

.profile-socials__empty {
  font-size: 13px;
  color: #cfd4eb;
  opacity: 0.85;
}

@keyframes profileSocialGlow {
  from {
    box-shadow:
      0 0 8px color-mix(in srgb, var(--glow-color) 45%, transparent),
      0 0 16px color-mix(in srgb, var(--glow-color) 35%, transparent);
  }
  to {
    box-shadow:
      0 0 14px color-mix(in srgb, var(--glow-color) 70%, transparent),
      0 0 26px color-mix(in srgb, var(--glow-color) 55%, transparent);
  }
}

@keyframes profileSocialHalo {
  from {
    filter: drop-shadow(0 0 6px var(--glow-color));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 0 12px var(--glow-color));
    transform: scale(1.05);
  }
}

/* =========================================================
   7. Profile Music Player Component (Azu style for everyone)
   ========================================================= */

.profile-music {
  --azu-accent: #030303;
  --azu-accent-2: #000000;
  --azu-glow: rgba(0, 0, 0, 0.7);
  padding: 14px 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--azu-accent) 28%, transparent), transparent 42%),
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--azu-accent-2) 26%, transparent), transparent 40%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(13, 14, 15, 0.82));
  border: 1px solid color-mix(in srgb, var(--azu-accent) 36%, rgba(36, 20, 20, 0.14));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.62),
    0 0 18px color-mix(in srgb, var(--azu-accent) 32%, transparent),
    0 0 32px color-mix(in srgb, var(--azu-accent-2) 26%, transparent);
  display: flex;
  align-items: stretch;
  flex-direction: row;
  gap: 14px;
}

.profile-music__cover {
  width: clamp(96px, 12vw, 120px);
  height: clamp(96px, 12vw, 120px);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-music__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.profile-music__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-music__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-music__play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--azu-accent), #1d2646 72%);
  color: #f8f9ff;
  font-size: 16px;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.65),
    0 0 18px var(--azu-glow),
    0 0 32px color-mix(in srgb, var(--azu-accent-2) 35%, transparent);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.profile-music__play-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.profile-music__play:hover,
.profile-music__play:focus-visible {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.08);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.7),
    0 0 22px var(--azu-glow),
    0 0 38px color-mix(in srgb, var(--azu-accent-2) 40%, transparent);
  outline: none;
}

.profile-music__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.profile-music__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--azu-accent) 35%, #dce2ff);
  opacity: 0.85;
}

.profile-music__title {
  font-size: 14px;
  font-weight: 600;
  color: #f7f8ff;
  text-shadow: 0 0 12px color-mix(in srgb, var(--azu-accent) 22%, transparent);
}

.profile-music__time {
  margin-left: auto;
  font-size: 12px;
  color: color-mix(in srgb, var(--azu-accent) 35%, #dce2ff);
}

.profile-music__progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-music__progress {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  accent-color: var(--azu-accent);
  background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--azu-accent) 30%, transparent),
      color-mix(in srgb, var(--azu-accent-2) 24%, transparent)
    ),
    rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 12px color-mix(in srgb, var(--azu-accent) 18%, transparent);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.profile-music__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--azu-accent), #6f8dff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--azu-accent) 18%, transparent),
    0 0 14px var(--azu-glow);
}

.profile-music__progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--azu-accent), #6f8dff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--azu-accent) 18%, transparent),
    0 0 14px var(--azu-glow);
}

.profile-music__duration {
  font-size: 12px;
  color: color-mix(in srgb, var(--azu-accent) 35%, #dce2ff);
}

.profile-music__volume-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 2px;
}

.profile-music__volume-icon {
  font-size: 13px;
  opacity: 0.9;
}

.profile-music__volume {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  accent-color: var(--azu-accent);
  background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--azu-accent) 30%, transparent),
      color-mix(in srgb, var(--azu-accent-2) 24%, transparent)
    ),
    rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 12px color-mix(in srgb, var(--azu-accent) 18%, transparent);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.profile-music__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--azu-accent), #6f8dff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--azu-accent) 18%, transparent),
    0 0 14px var(--azu-glow);
}

.profile-music__volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--azu-accent), #6f8dff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--azu-accent) 18%, transparent),
    0 0 14px var(--azu-glow);
}

.profile-music__progress:hover,
.profile-music__progress:focus-visible,
.profile-music__volume:hover,
.profile-music__volume:focus-visible {
  filter: brightness(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 16px color-mix(in srgb, var(--azu-accent) 24%, transparent),
    0 0 24px color-mix(in srgb, var(--azu-accent-2) 18%, transparent);
  outline: none;
}

@media (max-width: 520px) {
  .profile-music {
    flex-direction: column;
    align-items: center;
  }

  .profile-music__body {
    width: 100%;
  }
}


/* =========================================================
   8. Discord Presence Widget
   ---------------------------------------------------------
   - Banner, avatar + decoration, status dot
   - Activity row and small stats
   ========================================================= */

.discord-presence {
  position: relative;
  margin: 10px 0 24px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.discord-presence__banner {
  background-size: cover;
  background-position: center;
  height: 160px; 
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.discord-presence__banner--placeholder {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25));
}

.discord-presence__banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.discord-presence__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: -40px;
}

.discord-presence__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.discord-presence__avatar {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  background: #0d0f17;
  border: none;
}

.discord-presence__avatar-decoration {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.discord-presence__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.discord-presence__meta-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.discord-presence__status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
}

.discord-presence__label-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-presence__server-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7eaf3;
  opacity: 0.9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
  margin-top: 0px;
}

.discord-presence__server-tag:hover,
.discord-presence__server-tag:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.7);
  outline: none;
}

.discord-presence__server-tag-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-presence__server-tag-text {
  line-height: 1;
}

.discord-presence__status-dot {
  position: absolute;
  right: -4px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #0d0f17;
  background: #6b7280;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.discord-presence__status-dot[data-state='online'] {
  background: #22c55e;
}

.discord-presence__status-dot[data-state='idle'] {
  background: #facc15;
}

.discord-presence__status-dot[data-state='dnd'] {
  background: #ef4444;
}

.discord-presence__status-dot[data-state='offline'],
.discord-presence__status-dot:not([data-state]) {
  background: #6b7280;
}

.discord-presence__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #cfd4eb;
  margin: 0;
}

.discord-presence__status {
  margin: 0;
  font-weight: 700;
  color: #f6f8ff;
  font-size: 16px;
}

.discord-presence__status[data-state='error'] {
  color: #ffb3b3;
}

.discord-presence__activity-row {
  position: absolute;
  left: 55.5%;
  transform: translateX(-50%);
  bottom: 8px;
  width: calc(100% - 129px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-presence__server-tag:empty,
.discord-presence__server-tag[data-discord-server-tag=""] {
  display: none;
}

.discord-presence__activity {
  margin: 0;
  color: #d6dbf3;
  font-size: 14px;
  opacity: 0.92;
  flex: 1;
  text-align: center;
}

.discord-presence__activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.discord-presence__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7eaf3;
  font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.discord-presence.is-loading .discord-presence__activity {
  opacity: 0.7;
}


/* =========================================================
   9. Now Playing Row & Socials Card
   ---------------------------------------------------------
   - Two-column layout: now-playing + socials block
   - Each side becomes full-width stacked on smaller screens
   ========================================================= */

.now-playing-row {
  display: grid;
  grid-template-columns: 1.8fr minmax(240px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 14px 0 26px;
}

.now-playing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.now-playing-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.now-playing-card__cover-wrap {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
}

.now-playing-card__cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.now-playing-card--inactive .now-playing-card__cover {
  opacity: 0.4;
  filter: grayscale(1);
}

.now-playing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.22);
}

.now-playing-card--inactive {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  color: #a8adc1;
  box-shadow: none;
}

.now-playing-card__label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #cfd4eb;
  opacity: 0.9;
}

.now-playing-card__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #f6f8ff;
}

.now-playing-card__artist {
  margin: 0;
  font-size: 14px;
  color: #d6dbf3;
}

.now-playing-card__since {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c3c9df;
}

.now-playing-card--inactive .now-playing-card__title,
.now-playing-card--inactive .now-playing-card__artist,
.now-playing-card--inactive .now-playing-card__since {
  color: #9ba1b8;
}

.profile-socials-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-socials-card__title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #cfd4eb;
  opacity: 0.9;
}


/* =========================================================
   10. Affiliations & Discord Server Card
   ---------------------------------------------------------
   - Small affiliation box
   - Large Discord invite-style card
   ========================================================= */

.affiliations {
  margin: 40px auto 0;
  background: #0f131d;
  padding: 22px;
  border-radius: 14px;
  max-width: 360px;
  border: 1px solid #3d4c70;
  box-shadow: 0 18px 38px rgba(109, 70, 145, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.affiliations h2 {
  margin: 0 0 16px;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: stretch;
  flex-wrap: wrap;
}

.discord-card {
  flex: 1 1 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.18), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(145deg, #0e0f14, #0c0c11 45%, #11131a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: #e7eaf3;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.discord-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
  border-color: rgba(88, 101, 242, 0.6);
}

.discord-card__banner {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.6), rgba(13, 16, 27, 0.95));
  overflow: hidden;
}

.discord-card__accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 40%, rgba(255, 255, 255, 0.22), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(88, 101, 242, 0.35), transparent 32%),
    radial-gradient(circle at 60% 80%, rgba(0, 0, 0, 0.3), transparent 60%);
  filter: blur(6px);
  opacity: 0.85;
  pointer-events: none;
}

.discord-card__avatar {
  position: absolute;
  bottom: -26px;
  left: 20px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #11131a, #0c0d13);
  color: #f3f4fb;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.65), inset 0 1px 6px rgba(255, 255, 255, 0.06);
}

.discord-card__tag {
  position: absolute;
  bottom: 16px;
  right: 18px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #d6dbf3;
  backdrop-filter: blur(6px);
}

.discord-card__body {
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-card__headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.discord-card__title {
  font-size: 18px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: #f7f8ff;
}

.discord-card__chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discord-card__chip {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.discord-card__stats {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: #c5c9da;
  opacity: 0.95;
}

.discord-card__stats strong {
  color: #f7f8ff;
}

.discord-card__description {
  font-size: 13px;
  line-height: 1.5;
  color: #cdd2e3;
}

.discord-card__button {
  margin-top: 6px;
  align-self: flex-start;
  padding: 12px 18px;
  background: linear-gradient(135deg, #5865f2, #3b49c8);
  border-radius: 12px;
  color: #f5f6ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-card:hover .discord-card__button {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.45);
}

.discord-card:active .discord-card__button {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}


/* =========================================================
   11. Utility: Visits Badge
   ---------------------------------------------------------
   - Small floating pill for visit counter
   - Repositionable for mobile via media queries
   ========================================================= */

.visits {
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 10px;
  z-index: 3;
}

.visits i {
  margin-right: 6px;
}

/* =========================================================
   Mobile Optimizations: General Layout and Text Sizing
   ---------------------------------------------------------
   - Adjusts layouts, font sizes, padding, and margins for mobile-friendly display.
========================================================= */

@media (max-width: 800px) {
  .profile-detail {
    margin: 90px auto 40px;
    padding: 22px 18px;
  }

  .profile-detail__content {
    grid-template-columns: 1fr;
    text-align: left;
    align-items: flex-start;
  }

  .profile-detail__header h1 {
    font-size: 26px;
  }
}

@media (max-width: 960px) {
  .now-playing-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .discord-presence {
    padding: 12px 12px 14px;
  }

  .discord-presence__banner {
    height: 110px;
  }

  .discord-presence__body {
    margin-top: -32px;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .discord-presence__avatar-wrap {
    width: 80px;
    height: 80px;
  }

  .discord-presence__avatar {
    width: 68px;
    height: 68px;
  }

  .discord-presence__activity-row {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }

  .profile-music {
    padding: 12px 18px;
    flex-direction: column;
    align-items: center;
  }

  .profile-music__cover {
    width: 96px;
    height: 96px;
  }

  .profile-music__body {
    width: 100%;
  }

  .profile-music__play {
    width: 32px;
    height: 32px;
  }

  .profile-music__title {
    font-size: 13px;
  }

  .profile-music__time,
  .profile-music__duration {
    font-size: 11px;
  }

  .profile-socials {
    flex-direction: column;
    align-items: center;
  }

  .profile-socials__item {
    margin: 6px 0;
  }

  .visits {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .profile-socials {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .profile-socials__item {
    margin: 6px;
  }

  .profile-socials__icon-img {
    width: 30px;
    height: 30px;
  }

  .profile-socials__item:hover,
  .profile-socials__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
}


@media (max-width: 520px) {
  .profile-music {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 12px 12px 14px;
  }

  .profile-music__body {
    width: 100%;
  }

  .profile-music__cover {
    width: 96px;
    height: 96px;
  }

  .profile-music__title {
    font-size: 13px;
  }

  .profile-music__time,
  .profile-music__duration {
    font-size: 11px;
  }

  .profile-detail__bio {
    padding: 14px;
  }

  .profile-detail__bio h2 {
    font-size: 16px;
  }

  .profile-detail__bio h3 {
    font-size: 14px;
  }

  .now-playing-card__title {
    font-size: 14px;
  }

  .now-playing-card__artist {
    font-size: 12px;
  }

  .profile-detail__header h1 {
    font-size: 22px;
  }

  .discord-presence__avatar-wrap {
    width: 60px;
    height: 60px;
  }

  .discord-presence__avatar {
    width: 50px;
    height: 50px;
  }

  .profile-socials__item {
    margin: 6px;
  }

  .profile-socials__icon-img {
    width: 30px;
    height: 30px;
  }

  .visits {
    bottom: 14px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .snowflake {
    display: none;
  }

  .profile-bg-video--back {
    display: none;
  }
}

@media (max-width: 480px) {
  .profile-detail {
    margin: 70px auto 24px;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .profile-detail__header h1 {
    font-size: 24px;
  }

  .now-playing-card__title {
    font-size: 16px;
  }

  .discord-card__title {
    font-size: 16px;
  }

  .discord-presence__meta-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .discord-presence__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .discord-presence__avatar-wrap {
    margin-bottom: 6px;
  }

  .discord-presence__activity-row {
    margin-top: -20px;
  }

  .discord-presence__activity {
    font-size: 13px;
  }

  .visits {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .profile-avatar-wrapper {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: 13px;
  }

  .snowflake {
    display: none;
  }

  .profile-bg-video--back {
    display: none;
  }
}
