:root {
  --primary-color: #1db954;
  --bg-color: #121212;
  --sidebar-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --hover-color: #282828;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr auto;
  height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  background-color: var(--sidebar-color);
  padding: 24px 16px;
  grid-row: 1 / 3;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary-color);
}

.logo span {
  font-size: 24px;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  margin-bottom: 24px;
}

.nav-links li {
  margin-bottom: 16px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background-color: var(--hover-color);
}

.nav-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-links .active a {
  color: var(--text-primary);
}

.playlists h3 {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.playlists ul {
  list-style: none;
}

.playlists a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px;
  display: block;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.playlists a:hover {
  color: var(--text-primary);
  background-color: var(--hover-color);
}

/* Main Content Styles */
.main-content {
  padding: 24px;
  overflow-y: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.user-nav {
  display: flex;
  gap: 16px;
}

.nav-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.profile-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.profile-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
}

/* Featured Section */
.featured {
  margin-bottom: 48px;
}

.featured h1 {
  margin-bottom: 24px;
  font-size: 32px;
}

.featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.game-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-art-container {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
}

.game-description {
  opacity: 0;
  height: 0;
  transition: all 0.3s ease;
}

.game-card:hover .game-description {
  opacity: 1;
  height: auto;
  margin-top: 12px;
}

/* Player Bar */
.player-bar {
  grid-column: 2;
  background-color: #181818;
  border-top: 1px solid #282828;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
}

.current-game {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.game-info h4 {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.game-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.like-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.like-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.player-controls button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-controls button:hover {
  color: var(--text-primary);
}

.player-controls svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.play-btn {
  width: 32px;
  height: 32px;
  background-color: var(--text-primary) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg {
  fill: var(--bg-color);
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.volume-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--text-secondary);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-games > *,
.game-grid > * {
  animation: fadeIn 0.3s ease-out forwards;
}