* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #000;
  color: white;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.back-portfolio {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  margin: 10px 10px 0 14px;
  font-size: 13px;
  font-weight: bold;
  color: #b3b3b3;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #333;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-portfolio:hover {
  color: #fff;
  border-color: #1db954;
  background: rgba(29, 185, 84, 0.12);
}

.app {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* SIDEBAR À GAUCHE */

.sidebar {
  width: 250px;
  background: #000;
  padding: 25px;
  border-right: 1px solid #222;
}

.sidebar h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tagline {
  font-size: 12px;
  line-height: 1.45;
  color: #777;
  margin-bottom: 28px;
  font-weight: normal;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu a {
  color: #b3b3b3;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.menu a:hover {
  color: white;
}

/* CONTENU PRINCIPAL */

.main-content {
  flex: 1;
  background: linear-gradient(#1f1f1f, #121212);
  padding: 30px;
  overflow-y: auto;
}

.main-content h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

.playlist-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.playlist-card {
  background: #181818;
  width: 180px;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.playlist-card:hover {
  background: #282828;
  transform: translateY(-5px);
}

.cover {
  height: 150px;
  background: linear-gradient(135deg, #1db954, #191414);
  border-radius: 10px;
  margin-bottom: 15px;
}

.playlist-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.playlist-card p {
  color: #b3b3b3;
  font-size: 14px;
}

/* LECTEUR EN BAS */

.player {
  height: 90px;
  background: #181818;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.player h4 {
  font-size: 16px;
}

.player p {
  color: #b3b3b3;
  font-size: 14px;
}

.player button {
  background: white;
  color: black;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.player button:hover {
  transform: scale(1.1);
}

.cover {
  position: relative;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #1db954;
  color: black;

  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.playlist-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.card-play:hover {
  transform: scale(1.1);
}
.page {
  display: none;
}

.active-page {
  display: block;
}

.menu-link.active {
  color: #1db954;
}

.search-input {
  width: 100%;
  max-width: 450px;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  margin-bottom: 25px;
  font-size: 16px;
  outline: none;
}

.page-text {
  color: #b3b3b3;
  font-size: 16px;
}

.library-card {
  background: #181818;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  max-width: 450px;
}

.library-card h3 {
  margin-bottom: 8px;
}

.library-card p {
  color: #b3b3b3;
}
.search-results {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.search-message {
  color: #b3b3b3;
  margin-top: 20px;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}