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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #121212;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main Layout */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #000;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1DB954, #191414);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.profile-subtitle {
    font-size: 11px;
    color: #b3b3b3;
    line-height: 1.3;
}

.library-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playlist-list {
    list-style: none;
    flex: 1;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover {
    background: #282828;
}

.playlist-item.active {
    background: #282828;
}

.playlist-cover {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.playlist-cover.about { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.playlist-cover.experience { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.playlist-cover.projects { background: linear-gradient(135deg, #f97316, #ef4444); }
.playlist-cover.readings { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.playlist-cover.movies { background: linear-gradient(135deg, #dc2626, #7c2d12); }
.playlist-cover.songs { background: linear-gradient(135deg, #a855f7, #6366f1); }

.playlist-info {
    overflow: hidden;
}

.playlist-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-meta {
    font-size: 12px;
    color: #b3b3b3;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #282828 0%, #121212 300px);
    display: flex;
    flex-direction: column;
}

/* Playlist Header */
.playlist-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 24px 32px 24px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    flex-shrink: 0;
}

.playlist-header-cover {
    width: 192px;
    height: 192px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: #fff;
}

.playlist-header-cover.about { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.playlist-header-cover.experience { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.playlist-header-cover.projects { background: linear-gradient(135deg, #f97316, #ef4444); }
.playlist-header-cover.readings { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.playlist-header-cover.movies { background: linear-gradient(135deg, #dc2626, #7c2d12); }
.playlist-header-cover.songs { background: linear-gradient(135deg, #a855f7, #6366f1); }

.playlist-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.playlist-header-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
}

.playlist-description {
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 8px;
}

.playlist-stats {
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 8px;
}

.playlist-stats strong {
    color: #fff;
}

/* Track List */
.track-list {
    padding: 24px 32px;
    flex: 1;
    overflow-y: auto;
}

.track-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid #282828;
    margin-bottom: 16px;
    color: #b3b3b3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background 0.2s;
    align-items: center;
}

.track:hover {
    background: #282828;
}

.track:hover .track-number {
    opacity: 0;
}

.track:hover .track-play {
    opacity: 1;
}

.track-number-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-number {
    color: #b3b3b3;
    font-size: 14px;
    transition: opacity 0.2s;
}

.track-play {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
}

.track-title-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.track-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist a {
    color: #b3b3b3;
}

.track-artist a:hover {
    color: #fff;
}

.track-details {
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spotify Embeds Grid */
.spotify-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px 32px;
    flex: 1;
    overflow-y: auto;
}

.spotify-grid iframe {
    width: 100%;
    height: 352px;
}

/* Now Playing Bar */
.now-playing {
    background: #181818;
    border-top: 1px solid #282828;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.now-playing-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    object-fit: contain;
    padding: 4px;
}

.now-playing-info {
    flex: 1;
    min-width: 0;
}

.now-playing-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-title a:hover {
    text-decoration: underline;
}

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

.now-playing-badge {
    background: #1DB954;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.social-links a {
    color: #b3b3b3;
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Content Sections - Hidden by default */
.playlist-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.playlist-content.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        padding: 16px 8px;
    }

    .profile-name,
    .profile-subtitle,
    .library-header,
    .playlist-info {
        display: none;
    }

    .playlist-item {
        justify-content: center;
        padding: 8px;
    }

    .playlist-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 16px;
    }

    .playlist-header-cover {
        width: 128px;
        height: 128px;
    }

    .playlist-header-title {
        font-size: 32px;
    }

    .track-header,
    .track {
        grid-template-columns: 32px 1fr;
    }

    .track-details {
        display: none;
    }

    .track-list {
        padding: 16px;
    }

    .spotify-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .now-playing {
        flex-wrap: wrap;
        gap: 12px;
    }

    .social-links {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

