html, body {
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  background-image: url("https://wallpapercave.com/wp/wp12265613.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 1rem;
  position: relative;
  z-index: 0;
  min-height: 100dvh;
  transition: background-image 0.25s ease-in-out;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.8);
  z-index: -1;
  pointer-events: none;
}

.arrow-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
  z-index: 500;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.arrow-btn:hover {
  color: #bbb;
  transform: translateY(-50%) scale(1.1);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.copy-notification {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(67, 181, 129, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.copy-notification.show {
  opacity: 1;
}

.scale-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transform: scale(1.25);
}

.main-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.left-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: rgba(44, 47, 51, 0.75);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 320px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(160, 160, 180, 0.20);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}

#avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3a3d41;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.user-info {
  flex: 1;
  margin-left: 0.8rem;
  margin-top: 0.9rem;
}

.username-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#username {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

#status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.25rem;
  margin-top: 2px;
  background-color: #747f8d;
  border: 1.5px solid rgba(44, 47, 51, 0.75);
}

#status-icon svg {
  display: none;
}

#copyBtn {
  position: absolute;
  left: -10px;
  top: 0;
  width: 30%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  z-index: 10;
  pointer-events: auto;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #bbb;
  transition: color 0.2s;
}

#copyBtn:hover {
  opacity: 1;
  color: #fff;
  background: transparent;
}

#activity {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: #bbb;
}

.username-row p {
  margin: 2px 0 0 0;
  font-size: 0.85rem;
  color: #999;
}

.spotify {
  width: 336px;
  height: 118px;
  background: rgba(44, 47, 51, 0.75);
  padding: 1rem;
  border-radius: 10px;
  margin-left: 0px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(160, 160, 180, 0.20);
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.spotify:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}

.spotify h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.spotify-track-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 80px;
}

.spotify-track-container img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  overflow: hidden;
}

.track-name, .track-artist, .track-album {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.track-artist {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.track-album {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.track-duration-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.track-time {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  min-width: 25px;
}

.track-time-right {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  min-width: 25px;
  text-align: right;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(100, 100, 100, 0.6);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #bbb;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.spotify-track {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.spotify-track img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotify-embed {
  margin-top: 0.5rem;
  border-radius: 8px;
  border: none;
}

.cat-container {
  background: rgba(44, 47, 51, 0.75);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(160, 160, 180, 0.20);
  width: 157px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cat-container:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}

.cat-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.cat-container h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }

  body {
    padding: 0.5rem;
    align-items: center;
    justify-content: flex-start;
  }

  .scale-wrapper {
    transform: scale(1);
  }

  .main-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .left-container {
    align-items: center;
    width: 100%;
    max-width: 320px;
  }

  .card {
    width: 100%;
    max-width: 320px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
  }

  .card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  }

  .cat-container,
  .spotify {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cat-container:hover,
  .spotify:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  }

  #avatar {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .user-info {
    margin: 0;
    flex: 1;
    width: 100%;
  }

  .username-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  #username {
    font-size: 1.1rem;
    margin: 0;
  }

  #status-icon {
    width: 12px;
    height: 12px;
    margin: 0;
  }

  .username-row p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
  }

  #activity {
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
  }

  .spotify {
    height: auto;
  }

  .spotify h3 {
    width: 100%;
    text-align: center;
    margin: 0 0 0.5rem 0;
  }

  .spotify-track-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }

  .spotify-track-container img {
    width: 100px;
    height: 100px;
  }

  .track-name,
  .track-artist,
  .track-album {
    text-align: center;
    white-space: normal;
  }

  .arrow-btn {
    display: none;
  }
}
