/* jew.onl — frail.lol-style profile */

:root {
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --card-w: 400px;
  --radius: 20px;
  --pad: 14px 16px;
}

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

html,
body {
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) brightness(0.82);
  pointer-events: none;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(0, 0, 0, 0.15), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

/* —— Enter —— */
.enter {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  cursor: pointer;
}

.enter .grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.enter p {
  position: relative;
  z-index: 1;
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  animation: enterPulse 2.6s ease-in-out infinite;
}

.enter.fade {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@keyframes enterPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* —— Mute —— */
.mute {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.mute:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

svg[hidden] {
  display: none !important;
}

/* —— Profile layout —— */
.profile {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 16px 64px;
  font-family: "Lora", Georgia, serif;
}

.profile[hidden],
.mute[hidden] {
  display: none !important;
}

.stack {
  width: min(100%, var(--card-w));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.profile-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.avatar-wrap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.avatar-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(0.96) saturate(0.95);
}

.identity {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 0 6px;
}

.name-wrap {
  line-height: 1;
}

.display-name {
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.07em;
  line-height: 1.15;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  line-height: 1;
}

.location svg {
  opacity: 0.75;
  flex-shrink: 0;
}

.location span {
  opacity: 0.68;
}

.bio {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(12px, 3.2vw, 14px);
  color: rgba(255, 255, 255, 0.9);
  min-height: 1.4em;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
}

#bioText {
  display: inline;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.1em;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.85;
  animation: blink 0.95s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0; }
}

/* —— Glass cards —— */
.glass-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: none;
}

.roblox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--pad);
  min-height: 76px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.roblox-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.roblox-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.roblox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
}

.roblox-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "Outfit", sans-serif;
  text-align: left;
  min-width: 0;
}

.roblox-meta strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.roblox-meta span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roblox-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.roblox-logo {
  opacity: 0.85;
}

.view-profile {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

/* —— Music —— */
.music-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--pad);
  width: 100%;
}

.music-top {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.cover-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cover-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.7) saturate(1.3);
  transform: scale(1.25);
}

.cover {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  font-family: "Outfit", sans-serif;
  text-align: left;
}

.track-meta strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seek-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.wave {
  position: relative;
  z-index: 1;
  height: 26px;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
}

#waveCanvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#seek {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  /* Wave owns pointer seeking — unstyled range maps every click to 0 */
  pointer-events: none;
  accent-color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

#seek::-webkit-slider-runnable-track,
#seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 420px) {
  .profile {
    padding: 72px 14px 56px;
  }

  .stack {
    gap: 16px;
  }

  .profile-block {
    gap: 14px;
  }

  .avatar-ring {
    width: 104px;
    height: 104px;
  }

  .display-name {
    font-size: 24px;
    letter-spacing: 0.06em;
  }

  .location {
    font-size: 13px;
  }

  .bio {
    font-size: 12px;
  }

  .glass-card {
    border-radius: 16px;
  }

  .roblox-card,
  .music-card {
    padding: 12px 14px;
  }

  .roblox-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .music-top {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .cover-wrap {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .cover {
    border-radius: 9px;
  }

  .seek-row {
    grid-template-columns: 32px 1fr 32px;
    gap: 8px;
  }

  .mute {
    top: 12px;
    left: 12px;
  }
}
