:root {
    --background-base: #121212;
    --background-highlight: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #1ed760;
    --content-background: #1A2940;  /* Darkened to a very dark navy blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.spotify-theme {
    background-color: var(--background-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-highlight);
    padding: 16px;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid #282828;
}

.top-banner h1 {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.container {
    padding-top: 60px;
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 60px;
    left: 50%;
    bottom: 0;
    width: 300px;
    overflow-y: auto;
    background-color: var(--background-highlight);
    border-right: 1px solid #282828;
    padding: 24px 12px;
    z-index: 100;
    margin-left: calc(-800px + 24px); /* Half of max-width + padding */
    display: flex;
    flex-direction: column;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.nav-buttons button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.library-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.library-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.library-item img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 12px;
}

.item-details h4 {
    color: var(--text-primary);
    font-size: 14px;
}

.item-details p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: calc(50% - 476px);
    padding: 24px 48px;
    background: linear-gradient(180deg, 
        rgba(63, 94, 251, 0.8) 0%,
        var(--content-background) 40%
    );
    min-height: calc(100vh - 60px);
    overflow-y: auto;
    max-width: calc(1600px - 300px - 48px);
}

.song-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    padding: 32px;
    background: linear-gradient(90deg, 
        rgba(63, 94, 251, 0.4) 0%,
        rgba(30, 215, 96, 0.4) 100%
    );
    border-radius: 8px;
}

.song-cover {
    width: 232px;
    height: 232px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.song-cover[src*="lightning.png"] {
    background-color: var(--background-highlight);
    padding: 20px;
    object-fit: contain;
}

.song-info {
    flex: 1;
}

.label {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.song-title {
    font-size: 96px;
    font-weight: 900;
    margin: 8px 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.artist-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--background-highlight);
    padding: 2px;
}

.controls-section {
    margin-top: 24px;
}

.player-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-base);
}

.like-btn, .more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
}

.recommended {
    margin-top: 32px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.song-list {
    display: grid;
    gap: 16px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.song-item img {
    width: 40px;
    height: 40px;
    margin-right: 16px;
}

.song-duration {
    margin-left: auto;
    color: var(--text-secondary);
}

/* Album section styles */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.album {
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* General album cover image styling */
.album img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Specific styling for The Big W album cover */
.album img[src*="the_big_w.png"] {
  width: 50%; /* Reduces this specific image to 50% of its container width */
}

.album img[src*="bird_sign.png"] {
  width: 50%; /* Reduces this specific image to 50% of its container width */
}

/* Song list styling */
.album ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.album li {
  padding: 5px 0;
}

/* Singles section styling */
.singles {
  margin-top: 40px;
}

.singles ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.singles li {
  padding: 10px 0;
}
.singles {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.singles img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  width: 20%;
  margin-bottom: 20px;
}

.singles ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.singles li {
  padding: 10px 0;
}

/* Add to the Sidebar Styles section */
.nav-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.library-section {
    margin-bottom: 24px;
}

.section-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Album view styles */
.album-tracks {
    margin-top: 24px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.track-number {
    color: var(--text-secondary);
    width: 32px;
}

.track-info {
    flex: 1;
    margin-left: 16px;
}

.track-info h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.track-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.track-duration {
    color: var(--text-secondary);
}

/* Add responsive adjustments */
@media (max-width: 1700px) {
    .container {
        max-width: 90%;
    }
    
    .sidebar {
        left: calc(5%);
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 324px; /* sidebar width + padding */
        max-width: none;
    }
}

/* Add contact info styles */
.contact-info {
    margin-top: auto;
    padding: 24px 8px;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid #282828;
}

.contact-info a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Update media queries for mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-top: 120px; /* Increased to account for collapsed header */
    }
    
    /* Make sidebar collapsible */
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        margin-left: 0;
        transition: max-height 0.3s ease-in-out;
        z-index: 1900; /* Just below menu toggle */
        background-color: var(--background-highlight);
    }
    
    .sidebar.open {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        z-index: 100; /* Below sidebar and menu toggle */
        position: relative;
        margin-left: 0;
        padding: 16px;
        width: 100%;
        max-width: none;
    }
    
    /* Adjust song header for mobile */
    .song-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    
    .song-title {
        font-size: 48px; /* Smaller font size for mobile */
    }
    
    .song-cover {
        width: 200px;
        height: 200px;
    }
    
    /* Adjust track list for mobile */
    .track-item {
        padding: 12px 8px;
    }
    
    /* Add menu toggle button */
    .menu-toggle {
        display: flex !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
    }
    
    /* Update top banner padding to accommodate hamburger */
    .top-banner {
        padding-left: 60px;
        z-index: 1500; /* Lower than menu toggle */
    }
}

/* Update menu toggle styles */
.menu-toggle {
    display: none; /* Hidden by default for desktop */
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000; /* Increase z-index to be above everything */
    padding: 8px;
    background-color: var(--background-highlight); /* Add background color */
    border: none;
    border-radius: 4px; /* Add rounded corners */
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Update hamburger lines to be more visible */
.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white; /* Make lines white */
    transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Add these hamburger styles back */
.hamburger {
    position: relative;
    display: block;
    width: 24px;
    height: 18px;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 8px;
}

.hamburger-line:nth-child(3) {
    top: 16px;
}
