@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  font-family: "JetBrains Mono", "Consolas", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Intro Screen */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 0.3s ease-out;
}

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

.intro-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 48px;
  color: #ffffff;
  letter-spacing: 0.05em;
  padding: 20px 40px;
  transition: opacity 0.2s ease;
}

/* Canvas */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-color: #000000;
}

/* Main Content */
.main-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Bio Card */
.bio-card {
  position: relative;
  width: 380px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner {
  position: relative;
  width: 100%;
  height: 120px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

.avatar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px 24px;
}

.username {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: lowercase;
}

.bio-text {
  text-align: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  white-space: nowrap;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.link-item {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.link-item:hover {
  color: #aaaaaa;
}

.link-item:hover::before {
  content: "> ";
}

/* Music Button */
.music-button-container {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-button {
  background-color: #000000;
  color: #ffffff;
  padding: 16px 10px;
  font-size: 14px;
  font-family: "Noto Sans JP", "Meiryo", sans-serif;
  border: 1px solid #ff69b4;
  box-shadow: 0 0 6px 0 #ff69b4, inset 0 0 6px 0 #ff69b4;
  cursor: pointer;
  transition: opacity 0.2s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.music-button:hover {
  opacity: 0.8;
}

/* Decoration Image */
.decoration-image {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  opacity: 0.7;
  z-index: 5;
}

.decoration-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal Overlay */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 10;
  display: none;
  transition: background-color 0.3s ease;
}

#modal-overlay.visible {
  display: block;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Music Modal */
#music-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 360px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  border: 1px solid #ff69b4;
  box-shadow: 0 0 6px 0 #ff69b4, inset 0 0 6px 0 #ff69b4;
  font-family: "JetBrains Mono", monospace;
  padding: 20px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#music-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Song Info */
.song-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cover-art {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  box-shadow: 0 0 8px 0 #ff69b4;
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.song-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seek Bar */
.seek-container {
  margin-bottom: 16px;
}

.seek-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #ff69b4 0%, #333333 0%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #ff69b4;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 6px 0 #ff69b4;
}

.seek-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #ff69b4;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 6px 0 #ff69b4;
}

.time-display {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* Controls Row */
.controls-row {
  display: grid;
  grid-template-columns: 85px 1fr 85px;
  align-items: center;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 55px;
}

.volume-slider {
  width: 40px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #ff69b4 25%, #333333 25%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #ff69b4;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 6px 0 #ff69b4;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #ff69b4;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 6px 0 #ff69b4;
}

.volume-percent {
  font-size: 9px;
  color: #ff69b4;
  font-weight: 600;
  min-width: 22px;
}

/* Playback Buttons */
.playback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.playback-buttons button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.playback-buttons button:hover {
  opacity: 0.8;
}

.skip-btn {
  color: rgba(255, 255, 255, 0.7) !important;
}

.play-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background-color: #ff69b4 !important;
  box-shadow: 0 0 10px 0 #ff69b4;
}

.right-spacer {
  width: 85px;
}

/* Shimmer Text Effect */
.shimmer-text {
  background: linear-gradient(
    135deg, 
    #ff69b4 0%, 
    #ffffff 25%, 
    #ffffff 50%, 
    #ff69b4 75%,
    #ff69b4 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 105, 180, 0.5));
}

@keyframes shimmer {
  0% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 100% 0%;
  }
}
