/* =====================
   RESET & ROOT
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glass-bg:     rgba(58, 58, 62, 0.75);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-inner:  rgba(45, 45, 48, 0.88);
  --text:         #f0ede8;
  --muted:        rgba(240, 237, 232, 0.52);
  --player-bg:    rgba(38, 38, 41, 0.97);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: #0e0e0e;
}

/* =====================
   SPLASH SCREEN
   ===================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

/* "dilsher" — small, white, plain */
.splash-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* "CLICK TO ENTER" — big bold */
.splash-click {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 68px;
  letter-spacing: -2px;
  color: #ffffff;
  line-height: 1;
}

/* =====================
   MAIN SCENE
   ===================== */
.scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.scene.visible {
  opacity: 1;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* =====================
   PROFILE CARD
   ===================== */
.card {
  width: 310px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 55px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
}

.avatar-wrap {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: #1a1a1e;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes rgb {
  0%   { color: #ff4444; }
  14%  { color: #ff8800; }
  28%  { color: #ffee00; }
  42%  { color: #44ff44; }
  57%  { color: #00ccff; }
  71%  { color: #8844ff; }
  85%  { color: #ff44cc; }
  100% { color: #ff4444; }
}
.name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-top: 2px;
  animation: rgb 3s linear infinite;
}

.bio {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.25px;
}

/* =====================
   DISCORD STATUS PILL
   ===================== */
.status-pill {
  width: 100%;
  background: var(--glass-inner);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 3px;
}

.status-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  position: relative;
}
.status-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--glass-inner);
  transition: background 0.3s;
  background: #747f8d;
}
.status-dot.online  { background: #3ba55d; }
.status-dot.idle    { background: #faa81a; }
.status-dot.dnd     { background: #ed4245; }
.status-dot.offline { background: #747f8d; }

.status-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.status-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.status-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* =====================
   SOCIAL LINKS
   ===================== */
.socials {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: nowrap;
  justify-content: center;
}
.social-link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.88;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.17s, filter 0.17s, opacity 0.17s;
}
.social-link:hover {
  transform: translateY(-3px) scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}
.social-link svg {
  width: 21px;
  height: 21px;
}

/* =====================
   VIEWS COUNTER
   ===================== */
.views {
  position: absolute;
  bottom: 9px;
  left: 13px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.views svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.55;
}

/* =====================
   MUSIC PLAYER
   ===================== */
.player {
  width: 310px;
  background: var(--player-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 13px 15px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.6);
}

.player-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.track-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #28282c, #363639);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.track-icon svg {
  width: 19px;
  height: 19px;
  fill: #8888a0;
}

.track-info { flex: 1; min-width: 0; }
.track-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-timesub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tlabel {
  font-size: 10px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}
.tlabel.r { text-align: right; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: rgba(255,255,255,0.16);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}
#progressBar {
  background: linear-gradient(to right, #fff var(--prog, 0%), rgba(255,255,255,0.16) var(--prog, 0%));
}
#volumeBar {
  background: linear-gradient(to right, #fff var(--vol, 70%), rgba(255,255,255,0.16) var(--vol, 70%));
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: opacity 0.15s, transform 0.15s;
}
.ctrl-btn:hover { opacity: 1; transform: scale(1.15); }
.ctrl-btn svg { width: 16px; height: 16px; fill: currentColor; }

.ctrl-btn.play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.ctrl-btn.play svg { width: 14px; height: 14px; }
.ctrl-btn.play:hover { background: #eee; transform: scale(1.08); }

.volume-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vol-icon {
  display: flex;
  align-items: center;
  opacity: 0.45;
}
.vol-icon svg { width: 13px; height: 13px; fill: var(--text); }

audio { display: none; }

/* =====================
   BACKGROUND VIDEO
   ===================== */
#bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* keep main UI above the video and overlay */
.scene {
  position: relative;
  z-index: 2;
}


/* =====================
   CHANGE VIDEO BUTTON
   ===================== */
.changevid-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.changevid-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  width: 100%;
  justify-content: center;
}
.changevid-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}
.changevid-btn:hover {
  background: rgba(255,255,255,0.13);
  color: var(--text);
  transform: translateY(-1px);
}
