* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background: #121212;
    color: #ffffff;
}

header {
    background: #282828;
    padding: 1rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #1DB954;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
}

.nav-links a:hover {
    color: #1DB954;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: #ffffff;
}

.search-form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #1DB954;
    color: #ffffff;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-results {
    padding: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.artist-card, .album-card {
    background: #282828;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s;
}

.artist-card:hover, .album-card:hover {
    background: #383838;
}

.artist-image, .album-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #282828;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.track-item:hover {
    background: #383838;
}

.track-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.track-info {
    flex-grow: 1;
}

.track-info h3 {
    margin: 0;
    font-size: 1.1em;
}

.track-info p {
    margin: 5px 0;
    color: #b3b3b3;
}

.play-button {
    background: #1DB954;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-button:hover {
    background: #1ed760;
}

.genres {
    font-size: 0.9em;
    color: #b3b3b3;
    margin: 5px 0;
    font-style: italic;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-date {
    color: #b3b3b3;
    font-size: 0.9em;
}

.no-results {
    text-align: center;
    color: #b3b3b3;
    margin-top: 40px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Profile Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    background: #282828;
    padding: 30px;
    border-radius: 8px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0;
    font-size: 2.5em;
    color: #fff;
}

.profile-details {
    display: flex;
    gap: 20px;
    color: #b3b3b3;
    margin-top: 10px;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.playlist-card {
    background: #282828;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s;
}

.playlist-card:hover {
    background: #383838;
}

.playlist-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.playlist-image-placeholder {
    width: 100%;
    height: 200px;
    background: #181818;
}

.playlist-info {
    padding: 15px;
}

.playlist-info h3 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
}

.track-count {
    color: #b3b3b3;
    font-size: 0.9em;
    margin: 5px 0;
}

.visibility-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-top: 5px;
}

.visibility-badge.public {
    background: #1DB954;
    color: #fff;
}

.visibility-badge.private {
    background: #404040;
    color: #b3b3b3;
}

.view-playlist-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #1DB954;
    color: white;
    text-decoration: none;
    margin: 15px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.view-playlist-btn:hover {
    background: #1ed760;
}

/* Playlist View Styles */
.playlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.playlist-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: #282828;
    padding: 30px;
    border-radius: 8px;
}

.playlist-cover {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.playlist-description {
    color: #b3b3b3;
    margin-top: 10px;
}

/* Add these styles to your existing CSS */
.playlist-info .play-button {
    width: 100%;
    margin-top: 10px;
    padding: 8px 16px;
    background: #1DB954;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.playlist-info .play-button:hover {
    background: #1ed760;
}

/* Add these styles to your existing CSS */

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-section {
    text-align: center;
    margin-top: 2rem;
}

.hero-image {
    width: 600px; /* Half the original size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.welcome-content {
    margin-top: 2rem;
}

.welcome-content h1 {
    font-size: 2.5rem;
    color: #1DB954;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: 1.2rem;
    color: #b3b3b3;
}

/* Add to your existing CSS */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #282828;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    width: 200px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #383838;
    transform: translateY(-5px);
}

.action-button i {
    font-size: 2rem;
    color: #1DB954;
    margin-bottom: 1rem;
}

.button-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.button-description {
    font-size: 0.9rem;
    color: #b3b3b3;
    text-align: center;
}

/* Listen Page Styles */
.listen-container {
    display: flex;
    min-height: calc(100vh - 64px); /* Account for header height */
    margin-top: 64px;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #282828;
    padding: 1rem;
    position: fixed;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
}

.playlists-sidebar {
    margin-top: 1rem;
}

.playlists-sidebar h2 {
    color: #b3b3b3;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-item {
    background: #383838;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: #404040;
    transform: translateX(2px);
}

.playlist-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.playlist-thumb-placeholder {
    width: 100%;
    height: 140px;
    background: #181818;
}

.playlist-text {
    padding: 0.8rem;
}

.playlist-text h3 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.playlist-text h3 a {
    color: white;
    text-decoration: none;
}

.playlist-text h3 a:hover {
    text-decoration: underline;
}

.playlist-text p {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
}

.playlist-item .play-button {
    width: calc(100% - 1.6rem);
    margin: 0 0.8rem 0.8rem 0.8rem;
    padding: 0.6rem;
    background: #1DB954;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.playlist-item .play-button:hover {
    background: #1ed760;
    opacity: 1;
    transform: scale(1.02);
}

.playlist-item .play-button i {
    font-size: 0.8rem;
}

/* Quick Search Styles */
.sidebar-search {
    margin-bottom: 1rem;
}

.quick-search-form {
    display: flex;
    gap: 0.5rem;
}

.quick-search-form input {
    flex-grow: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: #383838;
    color: white;
    font-size: 0.9rem;
}

.quick-search-form input::placeholder {
    color: #b3b3b3;
}

.quick-search-form button {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: #1DB954;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quick-search-form button:hover {
    background: #1ed760;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px; /* Match sidebar width */
    padding: 2rem;
    min-height: 100%;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.featured-item {
    background: #282828;
    border-radius: 8px;
    padding: 1rem;
    transition: background-color 0.3s;
}

.featured-item:hover {
    background: #383838;
}

.featured-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Track Card Layout */
.track-card {
    background: #282828;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    width: 100%; /* Let it fill the grid cell */
    display: flex;
    flex-direction: column;
}

.track-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.track-info {
    width: 100%;
    padding-right: 30px; /* Space for play button */
}

.track-info h3 {
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p.artists {
    font-size: 0.75rem;
    color: #b3b3b3;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-card .play-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: #1DB954;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.track-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.track-card .play-button:hover {
    background: #1ed760;
    transform: scale(1.1);
}

section {
    margin-bottom: 1.5rem;
}

section h2 {
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

/* Error Page Styles */
.error-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.error-content {
    background: #282828;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.error-message {
    color: #e22134;
    background-color: rgba(226, 33, 52, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.error-details {
    margin: 2rem 0;
    text-align: left;
    background: #181818;
    padding: 1rem;
    border-radius: 4px;
}

.error-stack {
    color: #b3b3b3;
    font-size: 0.9rem;
    white-space: pre-wrap;
    margin-top: 1rem;
}

.error-actions {
    margin-top: 2rem;
}

.back-home {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #1DB954;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.back-home:hover {
    background: #1ed760;
}

/* Add these styles for categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-item {
    background: #282828;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.category-item:hover {
    background: #383838;
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.category-item h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

/* Search Page Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background: #282828;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #1DB954;
}

.search-forms {
    margin-bottom: 2rem;
}

.search-form {
    display: none;
    background: #282828;
    padding: 2rem;
    border-radius: 8px;
}

.search-form.active {
    display: block;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-group input,
.search-input-group select,
.filter-group select {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: #383838;
    color: white;
}

.search-input-group button,
.filter-group button {
    padding: 0.8rem 1.5rem;
    background: #1DB954;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-input-group button:hover,
.filter-group button:hover {
    background: #1ed760;
}

/* Add JavaScript for tab switching */

/* Add to your existing CSS */
#era-search input[type="number"] {
    width: 150px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #282828;
    border-radius: 4px;
    background: #282828;
    color: white;
}

#era-search input[type="number"]::placeholder {
    color: #b3b3b3;
}

#era-search .filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#era-search .year-inputs,
#era-search .popularity-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

#era-search input[type="number"] {
    width: 150px;
    padding: 8px;
    border: 1px solid #282828;
    border-radius: 4px;
    background: #282828;
    color: white;
}

#era-search .popularity-inputs label {
    color: #b3b3b3;
    min-width: 160px;
}

#era-search input[type="number"]::placeholder {
    color: #b3b3b3;
}

.hipster-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b3b3b3;
    cursor: pointer;
}

.hipster-toggle input[type="checkbox"] {
    accent-color: #1DB954;
}

.popularity-score {
    color: #b3b3b3;
    font-size: 0.9em;
    margin: 4px 0;
}

.popularity-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.popularity-header {
    margin-bottom: 15px;
}

.popularity-header h4 {
    color: #fff;
    margin: 0 0 5px 0;
}

.popularity-note {
    color: #b3b3b3;
    font-size: 0.9em;
    margin: 0;
}

.popularity-inputs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.popularity-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popularity-select label {
    color: #fff;
    min-width: 120px;
}

.popularity-select select {
    padding: 8px;
    border: 1px solid #282828;
    border-radius: 4px;
    background: #282828;
    color: white;
    min-width: 100px;
}

.popularity-select select:focus {
    outline: none;
    border-color: #1DB954;
}

.error-message {
    color: #e22134;
    background-color: rgba(226, 33, 52, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

/* Listen Page Layout */
.listen-container {
    display: flex;
    min-height: calc(100vh - 64px); /* Account for header height */
    margin-top: 64px;
}

/* Artist Grid Layout */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}

.artist-item {
    background: #282828;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.artist-item h3 {
    margin: 8px 0 4px 0;
    font-size: 0.9rem;
    color: white;
}

.artist-item p {
    font-size: 0.8rem;
    color: #b3b3b3;
}

.artist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Track and Artist Info Text Truncation */
.track-info h3, 
.track-info p,
.artist-item h3,
.artist-item p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* For cases where we want to show multiple lines with truncation */
.track-info p.artists {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal; /* Allow text to wrap */
    height: 2.4em; /* Approximately 2 lines of text */
}

/* Time Range Buttons and Mix Controls */
.time-range-selector {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.time-range-button {
    padding: 8px 16px;
    background: #282828;
    border: none;
    border-radius: 20px;
    color: #b3b3b3;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.time-range-button:hover {
    background: #383838;
    color: white;
}

.time-range-button.active {
    background: #1DB954;
    color: white;
}

.mix-controls {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
}

.play-mix-button,
.shuffle-mix-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-mix-button {
    background: #1DB954;
    color: white;
}

.shuffle-mix-button {
    background: #282828;
    color: #b3b3b3;
    border: 1px solid #404040;
}

.play-mix-button:hover {
    background: #1ed760;
    transform: scale(1.02);
}

.shuffle-mix-button:hover {
    background: #383838;
    color: white;
    transform: scale(1.02);
}

/* Recommendation Buttons */
.refresh-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #282828;
    color: #b3b3b3;
    border: 1px solid #404040;
    margin-bottom: 1rem;
}

.refresh-button:hover {
    background: #383838;
    color: white;
    transform: scale(1.02);
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.artist-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.check-out-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1DB954;
    color: white;
}

.check-out-button:hover {
    background: #1ed760;
    transform: scale(1.02);
}

.recommended-artist-card .play-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #282828;
    color: #b3b3b3;
    border: 1px solid #404040;
}

.recommended-artist-card .play-button:hover {
    background: #383838;
    color: white;
    transform: scale(1.02);
}

/* Artist Detail View */
.artist-detail {
    background: #282828;
    border-radius: 8px;
    padding: 20px;
}

.back-navigation {
    margin-bottom: 20px;
}

.back-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #b3b3b3;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: #383838;
    color: white;
}

.artist-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.artist-detail-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.artist-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.artist-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.artist-stats {
    color: #b3b3b3;
    margin-bottom: 20px;
}

.artist-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.genre-tag {
    background: #383838;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #b3b3b3;
}

.top-tracks-section {
    margin-top: 30px;
}

.top-tracks-section h2 {
    margin-bottom: 15px;
    border-bottom: none;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-row {
    display: flex;
    align-items: center;
    padding: 8px 50px 8px 8px; /* Add right padding for play button */
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
    gap: 15px;
    max-width: 100%;
}

.track-row:hover {
    background: #383838;
}

.track-row .track-info {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
    margin-right: 40px; /* Space for play button */
}

.track-info .track-title {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.track-info .track-album {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.track-row .play-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo a {
    color: #1DB954;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #1DB954;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.quick-search {
    width: 300px;
}

.quick-search-form {
    display: flex;
    gap: 0.5rem;
}

.quick-search-form input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 20px;
    background: #383838;
    color: white;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.quick-search-form input:focus {
    background: #404040;
    outline: none;
}

.quick-search-form button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #1DB954;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-search-form button:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-link, .logout-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.profile-link:hover, .logout-link:hover {
    color: white;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #1DB954;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #1ed760;
    transform: translateY(-1px);
}

/* Adjust main container for fixed header */
main {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Album Grid Layout */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-item {
    background: #282828;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.album-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.album-info {
    padding-right: 40px;
}

.album-info h3 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-info p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-top: 4px;
}

.album-item .play-button {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Album Action Buttons */
.album-actions {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
}

.album-actions .play-mix-button,
.album-actions .shuffle-mix-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-actions .play-mix-button {
    background: #1DB954;
    color: white;
}

.album-actions .shuffle-mix-button {
    background: #282828;
    color: #b3b3b3;
    border: 1px solid #404040;
}

.album-actions .play-mix-button:hover {
    background: #1ed760;
    transform: scale(1.02);
}

.album-actions .shuffle-mix-button:hover {
    background: #383838;
    color: white;
    transform: scale(1.02);
}
