/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light theme - cnrad.dev style */
    --color-primary: #000000;
    --color-secondary: #4c4c4c;
    --color-tertiary: #838383;
    --color-background: #ffffff;
    --color-surface: #f5f5f5;
    --color-surface-hover: #ebebeb;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-light: #8b8b8b;
    --color-accent: #3b82f6;
    --font-sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 100ms ease;
    --transition-normal: 200ms ease-out;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --fade-step: 70ms;
}

html {
    width: 100%;
    height: 100dvh;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-y: scroll;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.25s ease-out;
    text-transform: lowercase;
}

/* Sun rays background - cnrad.dev style */
.sun-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    background: linear-gradient(to left, #121212, #ffffff 75%);
    opacity: 0.2;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100%);
}

.sun-ray {
    background: var(--color-background);
    margin-left: 50vw;
    width: 200vw;
    filter: blur(8px);
}

.sun-ray-1 {
    min-height: 8.5rem;
    margin-top: 20rem;
    animation: sway 7s infinite ease-in-out;
}

.sun-ray-2 {
    min-height: 7.5rem;
    margin-top: 12rem;
    animation: sway 6s infinite ease-in-out;
}

.sun-ray-3 {
    min-height: 16rem;
    margin-top: 4.5rem;
    animation: sway 8s infinite ease-in-out;
}

@keyframes sway {
    0% {
        transform: rotate(28deg);
    }
    50% {
        transform: rotate(31deg);
    }
    100% {
        transform: rotate(28deg);
    }
}

/* Hide scrollbar */
* {
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    display: none;
}

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--color-surface-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-tertiary);
}

/* Desktop Navigation (top left) - hide completely, using bottom nav instead */
.desktop-nav {
    display: none;
}

/* Bottom Floating Navigation Bar - cnrad.dev style */
.mobile-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: block;
    animation: slideUp 0.4s ease backwards;
    animation-delay: 0.2s;
}

.mobile-nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 8px 24px -4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.mobile-nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    color: #71717a;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 100ms ease;
    -webkit-touch-callout: none;
    user-select: none;
    border-radius: 9999px;
}

.mobile-nav-link:hover {
    color: #52525b;
}

.mobile-nav-link:active {
    transform: scale(0.9);
}

.mobile-nav-link.active {
    color: #18181b;
    font-weight: 500;
}

/* Active highlight pill behind the active button */
.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
    z-index: -1;
}

/* Main Content - cnrad.dev layout */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .content-wrapper {
        flex-direction: row;
        height: 100vh;
    }
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: min-content;
    padding: 2.5rem;
    padding-bottom: 5rem;
    animation: fadeIn 0.6s ease backwards;
    background: transparent;
    margin: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .sidebar {
        max-width: 32rem;
        min-width: 26rem;
        height: 100%;
        padding-top: 2rem;
        padding-left: 2.5rem;
        margin-top: 1rem;
        padding-bottom: 5rem;
    }
}

@media (max-width: 640px) {
    .sidebar {
        position: relative;
        min-height: auto;
        overflow-y: auto;
        padding: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 5rem;
    }
}

/* Hero Section - cnrad.dev style */
.hero-section {
    margin-bottom: 0.25rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .hero-section {
        margin-top: 0;
    }
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.hero-tagline {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Content Sections - cnrad.dev style */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    color: var(--color-primary);
    font-size: 0.875rem;
    animation: fadeIn 0.6s ease backwards;
    animation-delay: 0.15s;
}

@media (max-width: 768px) {
    .content-sections {
        padding-bottom: 3.5rem;
    }
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bio {
    color: var(--color-secondary);
    line-height: 1.6;
    max-width: 28rem;
}

/* Social Links - cnrad.dev style (inline) */
.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    gap-y: 0.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--color-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
    white-space: nowrap;
}

.social-link:hover {
    color: var(--color-secondary);
}

.social-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Section Title - cnrad.dev style */
.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

/* Philosophy List - cnrad.dev style */
.philosophy-list {
    color: var(--color-secondary);
    margin-left: 0.75rem;
}

.philosophy-list p {
    margin-bottom: 0;
}

/* Projects List - cnrad.dev style */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-left: 0.75rem;
}

.project-card {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
    cursor: pointer;
}

.project-card:hover .project-name {
    color: var(--color-accent);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.project-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.project-tag {
    font-size: 0.875rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-tertiary);
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 0.125rem;
}

.project-tag::before {
    content: '[';
}

.project-tag::after {
    content: ']';
}

.project-desc {
    font-size: 0.875rem;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.5;
}

.project-tech {
    display: none;
}

.tech-badge {
    display: none;
}

/* Skills Grid - cnrad.dev style */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-left: 0.75rem;
}

.skill-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
}

.skill-logo {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

.skill-item .skill-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-secondary);
    text-align: left;
}

/* Primary skills - bold styling */
.skill-item .skill-name.skill-primary {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* Contact Link - cnrad.dev style */
.contact-link {
    display: inline-block;
    color: var(--color-tertiary);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-secondary);
}

/* Footer - cnrad.dev style */
.footer {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 1.5rem;
}

@media (max-width: 640px) {
    .footer {
        display: none;
    }
}

.footer-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.time {
    font-weight: 500;
    color: var(--color-primary);
}

.separator {
    width: 3px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 50%;
}

.date {
    color: var(--color-tertiary);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Slide animations - inspired by cubedhuang/portfolio */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(calc(-1 * 2rem * var(--direction, 1)));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(calc(2rem * var(--direction, 1)));
    }
}

/* Staggered fade-in animation */
.fade-container > * {
    animation: fadeIn 0.7s cubic-bezier(0.37, 0.69, 0.39, 0.99) backwards;
}

.fade-container > *:nth-child(1) { animation-delay: calc(1 * var(--fade-step)); }
.fade-container > *:nth-child(2) { animation-delay: calc(2 * var(--fade-step)); }
.fade-container > *:nth-child(3) { animation-delay: calc(3 * var(--fade-step)); }
.fade-container > *:nth-child(4) { animation-delay: calc(4 * var(--fade-step)); }
.fade-container > *:nth-child(5) { animation-delay: calc(5 * var(--fade-step)); }
.fade-container > *:nth-child(6) { animation-delay: calc(6 * var(--fade-step)); }
.fade-container > *:nth-child(7) { animation-delay: calc(7 * var(--fade-step)); }
.fade-container > *:nth-child(8) { animation-delay: calc(8 * var(--fade-step)); }
.fade-container > *:nth-child(9) { animation-delay: calc(9 * var(--fade-step)); }
.fade-container > *:nth-child(10) { animation-delay: calc(10 * var(--fade-step)); }
.fade-container > *:nth-child(11) { animation-delay: calc(11 * var(--fade-step)); }
.fade-container > *:nth-child(12) { animation-delay: calc(12 * var(--fade-step)); }

/* Tab content slide transitions */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel.active {
    display: block;
}

.tab-panel.slide-left {
    --direction: -1;
}

.tab-panel.slide-right {
    --direction: 1;
}

/* Enhanced Projects Grid - inspired by cubedhuang/portfolio */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card-enhanced {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.project-card-enhanced:hover {
    transform: scale(1.02);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--color-surface-hover) 0%, var(--color-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-tertiary);
    font-size: 0.875rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.project-card-enhanced:hover .project-image img {
    transform: scale(1.05);
}

.project-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--color-tertiary);
    font-size: 2rem;
}

.project-content {
    padding: 1rem;
    flex: 1;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.project-card-enhanced:hover .project-title {
    color: var(--color-accent);
}

.project-description {
    font-size: 0.875rem;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    border-radius: 0.375rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Music Section - inspired by cubedhuang/portfolio */
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.music-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-card:hover {
    transform: scale(1.03);
}

.music-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-smooth);
}

.music-card:hover img {
    filter: brightness(0.5);
    transform: scale(1.02);
}

.music-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--color-tertiary);
    font-size: 2rem;
}

.music-overlay {
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-smooth);
}

.music-card:hover .music-overlay {
    opacity: 1;
    transform: scale(1);
}

.music-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.music-artist {
    font-size: 0.75rem;
    color: var(--color-secondary);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--color-tertiary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-secondary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(24, 24, 27, 0.7);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--color-accent);
}

/* Section header */
.section-header {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .section-header {
        font-size: 3rem;
    }
}

.section-subtitle {
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Spotify-style Glass Player Bar */
.spotify-player {
    position: relative;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-album-art {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1db954 0%, #191414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}
}

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

.player-track-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist-name {
    font-size: 0.75rem;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.player-btn.play-btn {
    background: #1db954;
    color: #000;
    width: 36px;
    height: 36px;
}

.player-btn.play-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.player-btn svg {
    width: 18px;
    height: 18px;
}

.player-progress-container {
    margin-top: 0.75rem;
}

.player-progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.player-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 35%;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-tertiary);
}

/* Song List for Music Tab */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.song-item:hover {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.song-index {
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-tertiary);
}

.song-item:hover .song-index {
    display: none;
}

.song-play-icon {
    display: none;
    width: 24px;
    text-align: center;
    color: #1db954;
}

.song-item:hover .song-play-icon {
    display: block;
}

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--color-surface-hover) 0%, var(--color-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.song-details {
    flex: 1;
    min-width: 0;
}

.song-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    font-size: 0.75rem;
    color: var(--color-tertiary);
    flex-shrink: 0;
}

/* Active song highlight */
.song-item.active {
    background: rgba(29, 185, 84, 0.15);
}

/* Initial progress bar state */
.player-progress.reset {
    width: 0%;
}

/* Glass card effect for section blocks in all tabs */
.section-block.glass {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Playing state animations */
.player-album-art.playing img {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(29, 185, 84, 0.2);
    }
}

.song-item.playing {
    background: rgba(29, 185, 84, 0.15);
    border-color: rgba(29, 185, 84, 0.3);
}

.song-item.playing .song-name {
    color: #1db954;
}

.song-item.playing .song-index {
    display: none;
}

.song-item.playing .song-play-icon {
    display: block;
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Enhanced progress bar */
.player-progress-bar {
    cursor: pointer;
}

.player-progress-bar:hover {
    height: 6px;
}

/* Larger play button on mobile */
@media (max-width: 640px) {
    .player-btn.play-btn {
        width: 44px;
        height: 44px;
    }
    
    .player-btn.play-btn svg {
        width: 22px;
        height: 22px;
    }
}