body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  background: #e4e4e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  position: relative;
  margin-left: 20px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #555;
}

nav a:hover::after {
  width: 100%;
}

.switch-container {
  margin-left: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  background-color: #ccc;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .switch {
  background-color: #666;
}

input[type="checkbox"]:checked + .switch::before {
  transform: translateX(20px);
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  transition: background 0.3s ease;
}

.artist-list h2 {
  text-align: center;
  margin-bottom: 20px;
}

.artists {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.artist-card.selected {
  border-color: var(--artist-color);
  background-color: color-mix(in srgb, var(--artist-color) 5%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px var(--artist-color); }
  50% { box-shadow: 0 0 20px var(--artist-color); }
  100% { box-shadow: 0 0 5px var(--artist-color); }
}

.artist-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--artist-color);
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.artist-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  image-rendering: optimizeQuality;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.artist-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px var(--artist-color);
}

.artist-name {
  margin-top: 8px;
  font-size: 14px;
  color: inherit;
}

.artist-info {
  display: none;
}

.artist-card.selected .socials i {
  color: var(--artist-color);
  transition: color 0.3s ease;
}

.artist-card.selected .socials i:hover {
  color: color-mix(in srgb, var(--artist-color) 80%, black 20%);
}

.socials i {
  font-size: 18px;
  margin: 0 8px;
  color: inherit;
  transition: color 0.3s ease;
}

.socials i:hover {
  color: #555;
}

.discography {
  max-width: 600px;
  width: 100%;
  margin-bottom: 40px;
  display: none;
}

.song-card {
  background: #e4e4e4;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.song-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ccc;
}

.song-info {
  flex: 1;
}

.song-info .title {
  display: block;
  font-weight: bold;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #ccc;
  border-radius: 3px;
  margin-top: 8px;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.2s ease;
}

.timestamp {
  font-size: 12px;
  color: #333;
  margin-top: 4px;
}

.play-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease;
}

footer {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: #e4e4e4;
  transition: background 0.3s ease;
}

footer .socials i {
  margin: 0 8px;
  font-size: 18px;
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease;
}

footer .socials i:hover {
  color: #555;
}

body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

body.dark-mode header {
  background: #1e1e1e;
}

body.dark-mode nav a {
  color: #f5f5f5;
}

body.dark-mode nav a::after {
  background-color: #f5f5f5;
}

body.dark-mode .switch {
  background-color: #666;
}

body.dark-mode main {
  background: #121212;
}

body.dark-mode .artist-name,
body.dark-mode .discography h3,
body.dark-mode .artist-info p {
  color: #f5f5f5;
}

body.dark-mode .song-card {
  background: #2a2a2a;
}

body.dark-mode .song-cover {
  border-color: #555;
}

body.dark-mode .timestamp {
  color: #ccc;
}

body.dark-mode .play-btn {
  color: #f5f5f5;
}

body.dark-mode .progress-container {
  background: #444;
}

body.dark-mode .progress-bar {
  background: #f5f5f5;
}

body.dark-mode footer {
  background: #1e1e1e;
}

body.dark-mode footer .socials i {
  color: #f5f5f5;
}

body.dark-mode footer .socials i:hover {
  color: #999;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  .switch-container {
    margin-left: 0;
    margin-top: 10px;
  }
}

.switch::before {
  content: "\f186";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-48%);
  background-color: #2c3e50;
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    content 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

input[type="checkbox"]:checked + .switch::before {
  content: "\f185";
  color: #f1c40f;
  background-color: #111;
  transform: translate(20px, -48%);
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.song-actions .youtube-btn {
  font-size: 18px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.song-actions .youtube-btn:hover {
  color: #FF0000;
}