
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #121212;
  color: #fff;
  overflow-x: hidden;
}


.sidebar {
  width: 230px;
  background: #000;
  height: 100vh;
  position: fixed;
  padding: 20px;
}


.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: bold;
}

.sidebar .logo .spotify-text {
  color: #1db954;
  font-size: 24px;
  font-family: 'Arial', sans-serif;
}

.sidebar ul {
  list-style: none;
  margin-top: 20px;
}

.sidebar ul li {
  margin: 25px 0;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
}

.sidebar button {
  margin-top: 10px;
  padding: 10px;
  background: #282828;
  color: #fff;
  border: none;
  cursor: pointer;
}

.sidebar button:hover {
  background: #1db954;
}

.sidebar ul li a i {
  margin-right: 10px;
}


.sidebar ul li a:hover {
  color: #1db954;
}


.main-content {
  margin-left: 230px;
  padding: 20px;
  padding-bottom: 80px;
}


.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  padding: 10px 0;
}


.top-search {
  flex: 1;
  min-width: 120px;
}

.top-search input {
  width: 100%;
  max-width: 300px;
  height: 35px;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #454444;
  color: #fff;
  font-size: 14px;
}


.profile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}


@media (max-width: 480px) {
  .topbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 10px;
  }

  .top-search {
    order: 2;
    width: calc(100% - 60px);
  }

  .top-search input {
    height: 30px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .profile {
    order: 1;
  }
}


.profile-pic, .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1db954;
  display: block;
}


.profile-menu {
  display: none;
  position: absolute;
  top: 46px;           
  right: 0;
  background: #181818;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  min-width: 150px;
  padding: 6px 0;
  z-index: 10000;
}

.profile-menu.show {
  display: block;
}

.profile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-menu li {
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}


.profile-menu li:hover {
  background: #1db954; 
  color: #000;
}


.profile-menu li:last-child:hover {
  background: red;  
  color: #fff;      
}


.hero {
  position: relative;
  background: url('images/vtv.jpg') center/cover no-repeat;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
  border-radius: 10px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-play-btn {
  padding: 10px 20px;
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

.hero-play-btn:hover {
  transform: scale(1.05);
}


.banner,
.card-row,
.artist-container,
.recently-played {
  display: flex;
  gap: 20px;
  overflow-x: auto; 
  scroll-behavior: smooth;
  margin-bottom: 30px;
}

.banner::-webkit-scrollbar,
.card-row::-webkit-scrollbar,
.artist-container::-webkit-scrollbar,
.recently-played::-webkit-scrollbar {
  display: none;
}

.banner-card, .card, .artist, .recent-card {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #181818;
  text-align: center;
  position: relative;
}


.banner-card {
  width: 220px;
  height: 120px;
  background-size: cover;
  background-position: center;
}

.card img, .artist img, .recent-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.artist img {
  width: 150px; 
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}


section h2 {
  margin-bottom: 25px;
  font-size: 1.5rem;
}


.recent-card img {
  width: 140px;
  height: 140px;
}


.artist img {
  border-radius: 50%;
}


.play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
}

.card:hover .play-btn,
.artist:hover .play-btn,
.recent-card:hover .play-btn {
  opacity: 1;
}


.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;           
  background: #181818;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-top: 1px solid #333;
  z-index: 1000;
}

.song-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.song-info img {
  width: 45px;           
  height: 45px;
  border-radius: 4px;
}

.song-info div {
  display: flex;
  flex-direction: column;
}

.song-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.song-artist {
  font-size: 12px;
  color: #aaa;
}


.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.controls button:hover {
  color: #1db954;
  transform: scale(1.2);
}


.volume input[type="range"] {
  width: 100px;
  cursor: pointer;
}

@media (max-width: 480px) {
 
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    width: 230px;
    z-index: 10000;
    transition: 0.3s;
  }

 
  .toggle-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: #1db954;
    z-index: 10001;
    cursor: pointer;
  }

 
  .profile {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
  }

 
  .topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding-top: 15px;
    position: relative;
  }

 
  .sidebar.active {
    left: 0;
  }

 
  .main-content {
    margin-left: 0;
    padding: 10px;
    padding-bottom: 120px;
  }

 
  .top-search input {
    width: 140px;
    text-align: center;
  }

 
  .hero {
    height: 180px;
    padding: 10px;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-play-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

 
  .artist {
    width: 100px;
  }

 
@media (max-width: 480px) {
  .artist img {
    width: 80px;
    height: 80px;
  }
}

  .artist-name {
    font-size: 10px;
  }

 
  .profile-menu {
    position: fixed;
    top: 55px;
    right: 15px;
    z-index: 10002;
  }
}


@media (min-width: 481px) and (max-width: 768px) {
  .sidebar {
    width: 180px;
    left: -220px;
  }

  .toggle-btn {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 28px;
    z-index: 10001;
  }

  .profile {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
  }

  .topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding-top: 20px;
    position: relative;
  }

  .top-search input {
    width: 180px;
    text-align: center;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 15px;
  }

  .hero {
    height: 220px;
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-play-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

 
  .artist {
    width: 120px;
  }


@media (min-width: 481px) and (max-width: 768px) {
  .artist img {
    width: 100px;
    height: 100px;
  }
}
  .artist-name {
    font-size: 12px;
  }

 
  .profile-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 10002;
  }
}


@media (min-width: 769px) {
  .toggle-btn {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: 230px;
    transition: none;
  }

  .profile {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
  }

  .topbar {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px 20px;
    position: relative;
  }

  .top-search input {
    width: 200px;
    text-align: left;
  }

  .main-content {
    margin-left: 230px;
  }

 
  .artist {
    width: 150px;
  }

  .artist-name {
    font-size: 14px;
  }

 
  .profile-menu {
    position: fixed;
    top: 50px;
    right: 15px;
    z-index: 10002;
  }
}






