* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: "Papyrus", serif;
  color: white;
  overflow: hidden;
  user-select: none;
  height: 100vh;
  width: 100vw;
}

/* Background Layer */
#bg-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

video.bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

video.bg.active {
  opacity: 1;
}

#enter-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  opacity: 1;
  transition: opacity 0.6s ease;
  cursor: pointer;
  z-index: 999;
}

#enter-screen:hover { opacity: 0.85; }

/* Parallax */
:root {
  --move-x: 0px;
  --move-y: 0px;
  --card-width: 300px;
}

#center-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)));
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease, transform 0.1s linear;
  z-index: 10;
}

/* Main Container */
#container {
  position: relative;
  width: 300px;
  height: auto;
  display: flex;
  align-items: stretch;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-content {
  width: 300px;
  flex-shrink: 0;
  padding: 24px 20px;
  text-align: center;
}

/* ABOUT PANEL */
.extra-content {
  width: 0;
  opacity: 0;
  overflow: hidden;
  border-left: 1px solid transparent;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 14px;
  white-space: nowrap;
}

#container.show-more {
  width: 500px;
}

#container.show-more .extra-content {
  width: 200px;
  opacity: 1;
  padding: 24px 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
  white-space: normal;
}

/* ABOUT TAB */
#bio-toggle {
  position: absolute;
  top: 24px;
  right: -34px; 
  width: 32px;
  height: 32px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.1);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

#bio-toggle:hover { background: rgba(40,40,40,0.65); }

#bio-toggle svg {
  width: 16px; height: 16px;
  fill: white; opacity: 0.8;
}

/* INFO TAB BUTTON */
#info-toggle {
  position: absolute;
  top: 70px;
  right: -34px;
  width: 32px;
  height: 32px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.1);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}

#info-toggle img {
  width: 18px;
  opacity: 0.8;
}

#info-toggle:hover {
  background: rgba(40,40,40,0.65);
}

/* INFO PANEL */
.info-content {
  width: 0;
  opacity: 0;
  overflow: hidden;
  border-left: 1px solid transparent;
  transition: width 0.4s cubic-bezier(0.25,1,0.5,1), opacity 0.3s ease;
  padding: 24px 0px;
}

#container.show-info {
  width: 500px;
}

#container.show-info .info-content {
  width: 200px;
  opacity: 1;
  padding: 24px 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* PFP */
.pfp-wrapper {
  width: 110px; height: 110px;
  margin: 0 auto 14px auto;
  padding: 4px;
  border-radius: 50%;
  border: 3px solid yellow;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 18px rgba(255,255,0,0.25);
  transition: margin 0.25s ease;
}

#container.extended .main-content { padding-top: 36px; }
#container.extended .pfp-wrapper { margin-top: -12px; margin-bottom: 26px; }
#container.extended .hover-uid { transform: translateY(12px); }

.pfp {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: spin 7s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* UID */
#bio {
  font-size: 32px; opacity: 0.75;
  margin-bottom: 18px; letter-spacing: 0.5px;
}

.hover-uid {
  position: relative; display: inline-block;
  transition: transform 0.25s ease;
}

.uid-box {
  position: absolute; bottom: 105%; left: 50%;
  transform: translateX(-50%);
  background: rgba(100,100,100,0.35);
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; white-space: nowrap;
  opacity: 0; backdrop-filter: blur(6px);
  transition: opacity 0.25s ease; pointer-events: none;
}
.hover-uid:hover .uid-box { opacity: 1; }

.icons {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 15px;
}
.icons img {
  width: 32px; opacity: 0.8; transition: 0.2s ease;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.25)); cursor: pointer;
}
.icons img:hover {
  opacity: 1; transform: translateY(-2px) scale(1.12);
}

.about-title {
  margin-bottom: 10px; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px;
}

/* PLAYER */
#player-container {
  width: var(--card-width);
  height: 80px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 12px;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cover-art {
  width: 50px; height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.cover-art img {
  width: 100%; height: 100%; object-fit: cover;
}

.track-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.track-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.controls-wrapper {
  flex-shrink: 0;
}

.play-pause-btn {
  width: 24px; height: 24px;
  display: flex; 
  justify-content: center; 
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.play-pause-btn:hover { background: rgba(255,255,255,0.2); }
.play-pause-btn i { font-size: 10px; margin-left: 1px; } 

#credit-pill {
  position: fixed;
  bottom: 20px; 
  left: 50%;
  transform: translate(calc(-50% + var(--move-x)), calc(0px + var(--move-y)));
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(4px); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 12px;
  padding: 6px 14px; 
  z-index: 100;
  pointer-events: none; 
}

/* Parallax Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('parallax_layer.png') center/cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}
