* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Circular', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  overflow: hidden;
}

.left {
  width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.logo img {
  width: 130px;
  margin-bottom: 20px;
}

.home ul {
  margin-top: 20px;
}

.home ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 10px 0;
  font-weight: bold;
  color: #b3b3b3;
  transition: color 0.2s ease;
  font-size: 14px;
}

.home ul li:hover {
  color: white;
  cursor: pointer;
}

.home ul li img {
  width: 24px;
}

.library {
  flex: 1;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.playlist-section {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  color: #b3b3b3;
}

.heading h2 {
  font-size: 16px;
  flex: 1;
}

.add-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.add-btn:hover {
  color: white;
  transform: scale(1.1);
}

.playlist-categories {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.playlist-categories button {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.playlist-categories button.active {
  background-color: #333;
  color: white;
}

.playlist-categories button:hover {
  background-color: #333;
  color: white;
}

.search-playlist {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 4px;
  margin: 10px 0;
  color: #b3b3b3;
  font-size: 14px;
  cursor: pointer;
}

.search-playlist:hover {
  background-color: #333;
}

.recently-played {
  flex: 1;
  overflow-y: auto;
}

.recently-played h3 {
  color: white;
  font-size: 16px;
  margin: 15px 0;
}

#song-list {
  list-style: none;
}

#song-list li {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  color: #b3b3b3;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#song-list li:hover {
  background-color: #333;
  color: white;
}

.footer {
  padding: 20px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 10px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 10px;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(#2d2d2d, #121212);
  padding: 0 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin: 10px 0;
  background-color: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(10px);
}

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

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #090909;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 1;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container i {
  position: absolute;
  left: 15px;
  color: white;
  font-size: 14px;
}

input.order {
  width: 350px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background-color: #242424;
  padding-left: 40px;
  color: white;
  font-size: 14px;
}

input.order:focus {
  outline: none;
  background-color: #2a2a2a;
}

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

.upgrade-btn {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: #242424;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.upgrade-btn:hover {
  background-color: #2a2a2a;
  transform: scale(1.03);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #090909;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-profile:hover {
  background-color: #282828;
}

.user-profile img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-profile span {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.user-profile i {
  font-size: 12px;
  color: white;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px;
}

.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px 0;
}

.greeting h1 {
  font-size: 32px;
  color: white;
}

.view-all {
  color: #b3b3b3;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: white;
  text-decoration: underline;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.recent-item {
  background-color: #242424;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.recent-item:hover {
  background-color: #333;
}

.recent-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.recent-item span {
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px 0;
}

.section-header h2 {
  font-size: 24px;
  color: white;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background-color: #181818;
  border-radius: 6px;
  padding: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

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

.card-img {
  position: relative;
  margin-bottom: 15px;
}

.card img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: #1db954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card:hover .play-btn {
  opacity: 1;
  transform: translateY(-5px);
}

.play-btn i {
  color: white;
  font-size: 14px;
  margin-left: 2px;
}

.card h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card p {
  color: #b3b3b3;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recently-played-table {
  width: 100%;
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #b3b3b3;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #3e3e3e;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #3e3e3e;
  vertical-align: middle;
}

tr:hover {
  background-color: #282828;
}

#recent-tracks tr {
  cursor: pointer;
}

.playbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: #181818;
  border-top: 1px solid #282828;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.song-info {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 300px;
}

.song-cover img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.song-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

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

.song-actions {
  display: flex;
  gap: 15px;
  margin-left: 15px;
}

.song-actions i {
  color: #b3b3b3;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.song-actions i:hover {
  color: white;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 40%;
}

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

.control-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: white;
}

.control-btn.playpause {
  background-color: white;
  color: black;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn.playpause:hover {
  transform: scale(1.05);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-current, .time-total {
  color: #b3b3b3;
  font-size: 12px;
  min-width: 40px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background-color: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
}

.progress {
  height: 100%;
  width: 30%;
  background-color: #b3b3b3;
  border-radius: 2px;
  position: relative;
}

.progress::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar:hover .progress::after {
  opacity: 1;
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
}

.volume-controls i {
  color: #b3b3b3;
  font-size: 14px;
}

.volume-bar {
  flex: 1;
  height: 4px;
  background-color: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
}

.volume-level {
  height: 100%;
  width: 70%;
  background-color: #b3b3b3;
  border-radius: 2px;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.main-content {
  scrollbar-width: thin;
  scrollbar-color: #333 #121212;
}