* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.background {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px;
}

.left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}

#username {
  font-size: 2.4em;
  margin-bottom: 15px;
  text-align: center;
  user-select: none;
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  color: #fff;
  font-size: 1.8em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #1db954; /* Spotify green */
}

.right {
  max-width: 280px;
  font-size: 1em;
  opacity: 0.85;
  line-height: 1.5;
  text-align: right;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  user-select: none;
  position: relative;
}

.slide-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 50px 80px;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  text-align: center;
  user-select: text;
}

#music-title {
  font-size: 2.8em;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.7);
  display: inline-block;
  border-radius: 10px;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
}

audio#audio-player {
  width: 100%;
  max-width: 600px;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
}

.arrow {
  background: none;
  border: none;
  font-size: 3.8em;
  color: white;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0 25px;
  z-index: 10;
  user-select: none;
  transition: color 0.3s ease;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  color: #1db954;
}

footer {
  width: 100%;
  margin-top: 40px;
}

.piano {
  display: flex;
  width: 100vw;
  height: 140px;
  position: relative;
  user-select: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  background: #222;
  padding: 0 4px;
  overflow: visible;
}

.key {
  border: 1px solid #000;
  height: 100%;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  border-radius: 0 0 6px 6px;
  user-select: none;
  flex-shrink: 0;
}

.white {
  background: #fff;
  width: calc(100vw / 52);
  z-index: 1;
  margin-right: 1.3px;
}

.white:last-child {
  margin-right: 0;
}

.white:hover {
  filter: brightness(0.93);
  box-shadow: inset 0 0 15px #f0f0f0;
}

.white:active {
  filter: brightness(0.85);
  box-shadow: inset 0 0 25px #bbb;
}

.black {
  background: #111;
  width: calc((100vw / 52) * 0.6);
  height: 75%;
  position: absolute;
  top: 0;
  z-index: 2;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
  margin-left: -calc(((100vw / 52) * 0.3));
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.black:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 15px #222, 0 3px 12px #555;
}

.black:active {
  filter: brightness(1.4);
  box-shadow: 0 0 25px #666, 0 3px 15px #888;
}
