:root {
    /* Theme Variables - Default: Pearl Eclipse */
    --bg-gradient-start: #0D0D0D;
    --bg-gradient-mid: #2C2C2C;
    --bg-gradient-end: #A9A9A9;
    --secondary-bg: #2C2C2C;
    --accent-1: #FFFFFF;
    --accent-2: #FFFFFF;
    --highlight: #FFFFFF;
    --text-main: #FFFFFF;
    --text-muted: #FFFFFF;
    --button-bg: #2C2C2C;
    --glass-bg: rgba(44, 44, 44, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Theme: Pearl Eclipse (Default) */
body[data-theme="pearl-eclipse"] {
    --bg-gradient-start: #0D0D0D;
    --bg-gradient-mid: #2C2C2C;
    --bg-gradient-end: #A9A9A9;
    --secondary-bg: #2C2C2C;
    --button-bg: #2C2C2C;
    --glass-bg: rgba(44, 44, 44, 0.4);
}

/* Theme: Nebula Drift */
body[data-theme="nebula-drift"] {
    --bg-gradient-start: #0F2027;
    --bg-gradient-mid: #2C5364;
    --bg-gradient-end: #B24592;
    --secondary-bg: #2C5364;
    --button-bg: #2C5364;
    --glass-bg: rgba(44, 83, 100, 0.4);
}

/* Theme: Gray Whisper */
body[data-theme="gray-whisper"] {
    --bg-gradient-start: #4B4B4B;
    --bg-gradient-mid: #B0B0B0;
    --bg-gradient-end: #EDEDED;
    --secondary-bg: #B0B0B0;
    --button-bg: #4B4B4B;
    --glass-bg: rgba(176, 176, 176, 0.4);
}

/* Theme: Sunset Pulse */
body[data-theme="sunset-pulse"] {
    --bg-gradient-start: #FF6E7F;
    --bg-gradient-mid: #FFB88C;
    --bg-gradient-end: #6A0572;
    --secondary-bg: #FFB88C;
    --button-bg: #FF6E7F;
    --glass-bg: rgba(255, 184, 140, 0.4);
}

/* Theme: Crystal Fade */
body[data-theme="crystal-fade"] {
    --bg-gradient-start: #D7E1EC;
    --bg-gradient-mid: #6DD5ED;
    --bg-gradient-end: #2C3E50;
    --secondary-bg: #6DD5ED;
    --button-bg: #2C3E50;
    --glass-bg: rgba(109, 213, 237, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    transition: background 0.5s ease;
}

/* Glassmorphism patterns */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
}

/* Karaoke Mode Controls */
.btn-karaoke-toggle {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.btn-karaoke-toggle:hover,
.btn-karaoke-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.karaoke-controls {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    margin-top: 0;
    background: var(--glass-bg);
    border-radius: 16px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
}

.karaoke-controls.active {
    max-height: 400px;
    /* Increased height for all controls */
    opacity: 1;
    margin-top: 24px;
    padding: 24px;
}

.karaoke-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.karaoke-row:last-child {
    margin-bottom: 0;
}

.karaoke-label {
    font-size: 0.85rem;
    color: #ffffff;
    /* Pure white */
    width: 60px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 700;
    /* Bolder */
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Better readability on dark */
}

.karaoke-slider-container {
    flex: 1;
    margin: 0 16px;
    position: relative;
    display: flex;
    align-items: center;
}

.karaoke-value-display {
    width: 60px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #ffffff;
    /* Pure white */
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.karaoke-meta {
    font-size: 0.7rem;
    color: #FFFFFF;
    text-align: center;
    margin-top: 2px;
}

/* Custom Range Slider Styling - Modern, Responsive Design */
/* Reset global input[type=range] to avoid conflicts */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

/* Track - Background line */
input[type=range]::-webkit-slider-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    border: none;
}

/* Thumb - Slider knob */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-1);
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-1);
    transition: all 0.2s ease;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

input[type=range]::-moz-range-thumb:active {
    transform: scale(1.1);
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--glass-border), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Active track fill (left side of thumb) - using JavaScript will handle this */
.karaoke-slider-container {
    position: relative;
}

.karaoke-slider-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    width: calc(var(--slider-progress, 50%) - 10px);
    transition: width 0.1s ease;
}

/* Center indicator line */
.karaoke-slider-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 0;
}

/* Reset Buttons - Individual buttons next to each slider */
.btn-slider-reset {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.btn-slider-reset:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transform: rotate(180deg);
}

.btn-slider-reset i {
    color: #FFFFFF;
}

.btn-slider-reset:active {
    transform: rotate(180deg) scale(0.95);
}

.btn-slider-reset i {
    font-size: 0.85rem;
}

/* Specific color for pitch slider thumb/track highlight if needed */
.slider-pitch::-webkit-slider-thumb {
    background: #ffffff;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

h1, h2, h3, p, span, label, button, input, select, textarea {
    color: #FFFFFF;
}

/* Ensure all icons are pure white */
i, .fas, .far, .fab {
    color: #FFFFFF;
}

#app {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Navigation Styles */
.navigation {
    width: 280px;
    height: calc(100% - 32px);
    margin: 16px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    z-index: 100;
    background: var(--secondary-bg);
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--bg-gradient-mid) 100%);
    transition: background 0.5s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: #FFFFFF;
    width: 100%;
    padding-top: 0;
}

.logo-image {
    width: 250px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) contrast(1.2) saturate(0); /* Pure white with enhanced contrast */
    transition: width 0.3s ease;
    margin-bottom: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration for better rendering */
}

.logo span {
    color: #FFFFFF;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-links li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #FFFFFF;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-links li span,
.nav-links li i {
    color: #FFFFFF;
}

.nav-links li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nav-links li.active {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Icons - Pure White */
.nav-links li i {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    color: #FFFFFF;
}

/* Main Content Area */
#main-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

/* Settings Icon */
.settings-icon {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.settings-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.settings-icon i {
    font-size: 1.2rem;
    color: #FFFFFF;
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-option {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.theme-option:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-option.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.theme-preview {
    height: 80px;
    width: 100%;
    border-radius: 0;
}

.pearl-eclipse-gradient {
    background: linear-gradient(135deg, #0D0D0D 0%, #2C2C2C 50%, #A9A9A9 100%);
}

.nebula-drift-gradient {
    background: linear-gradient(135deg, #0F2027 0%, #2C5364 50%, #B24592 100%);
}

.gray-whisper-gradient {
    background: linear-gradient(135deg, #4B4B4B 0%, #B0B0B0 50%, #EDEDED 100%);
}

.sunset-pulse-gradient {
    background: linear-gradient(135deg, #FF6E7F 0%, #FFB88C 50%, #6A0572 100%);
}

.crystal-fade-gradient {
    background: linear-gradient(135deg, #D7E1EC 0%, #6DD5ED 50%, #2C3E50 100%);
}

.theme-info {
    padding: 16px;
}

.theme-info h3 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.theme-info p {
    color: #FFFFFF;
    font-size: 0.85rem;
    opacity: 0.9;
}

.close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.close-btn i {
    color: #FFFFFF;
}

/* Modal Styles - Premium Feel */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-content.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.5s ease;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

/* Form Styles */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #FFFFFF;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--glass-border);
}

/* Buttons */
button {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Notifications */
.notification {
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 0.95rem;
    display: none;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

.notification.error {
    display: block;
    background: rgba(229, 115, 115, 0.15);
    border: 1px solid rgba(229, 115, 115, 0.3);
    color: #ffcdd2;
}

/* Action Buttons in Management Table */
.btn-play-track,
.btn-edit-track,
.btn-delete-track {
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

.btn-play-track:hover {
    color: var(--accent-1) !important;
    transform: scale(1.1);
}

.btn-edit-track:hover {
    color: var(--accent-1) !important;
    transform: scale(1.1);
}

.btn-delete-track:hover {
    color: #ff5252 !important;
    transform: scale(1.1);
    background: rgba(255, 107, 107, 0.1);
}

.btn-delete-track:active {
    transform: scale(0.95);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Copyright Footer */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 12px 20px;
    z-index: 100;
    pointer-events: none; /* Allow clicks to pass through */
}

.copyright-footer p {
    color: #FFFFFF;
    font-size: 0.75rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #app {
        flex-direction: column;
    }

    .navigation {
        width: calc(100% - 24px);
        height: 70px;
        margin: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        background: rgba(43, 20, 9, 0.95);
        backdrop-filter: blur(20px);
    }

    .logo {
        display: none; /* Hide logo in bottom nav */
    }

    .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-links li {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        font-size: 0.75rem;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nav-links li:hover {
        transform: none;
    }

    .nav-links li span {
        display: block;
    }

    .nav-links li.active {
        color: #FFFFFF;
    }

    .nav-links li.active i {
        color: #FFFFFF;
    }

    #main-content {
        padding: 20px;
        padding-bottom: 100px;
        padding-top: 0; /* Remove top padding since logo is positioned */
    }
    
    /* Mobile logo at top of main content - Responsive size, positioned lower */
    #main-content::before {
        content: '';
        display: block;
        width: 100%;
        height: clamp(140px, 18vh, 200px); /* Increased height to accommodate full logo */
        padding-top: 12px; /* Lower from top */
        background-image: url('Logo.png');
        background-size: clamp(140px, 45vw, 180px) auto;
        background-repeat: no-repeat;
        background-position: center top;
        background-position-y: 12px; /* Lower from top */
        filter: brightness(0) invert(1) contrast(1.2) saturate(0);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        margin-bottom: 16px; /* More space below logo */
    }
    
    /* Responsive album art placeholder for mobile - very small for small screens */
    .album-art-placeholder {
        width: 30vw !important;
        height: 30vw !important;
        max-width: 120px !important;
        max-height: 120px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        margin: 0 auto 6px !important;
    }
    
    .album-art-placeholder i {
        font-size: clamp(1.2rem, 3.5vw, 2rem) !important;
    }
    
    /* Responsive player content padding for mobile - minimal for small screens */
    .player-content {
        padding: 10px 8px !important;
        margin-top: 4px !important;
    }
    
    /* Responsive player controls for mobile - very compact */
    .player-controls {
        font-size: 0.85rem !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    
    .player-controls #btn-master-play {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }
    
    /* Responsive text for mobile - smaller with minimal spacing */
    #track-title {
        font-size: clamp(0.9rem, 3vw, 1.2rem) !important;
        margin-bottom: 2px !important;
        margin-top: 4px !important;
    }
    
    #track-artist {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
        margin-bottom: 6px !important;
    }
    
    /* Volume control - very compact */
    .volume-control {
        margin-top: 8px !important;
    }
    
    /* Karaoke button - very compact */
    .btn-karaoke-toggle {
        margin-top: 8px !important;
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Reduce karaoke controls spacing if visible */
    .karaoke-controls {
        margin-top: 12px !important;
        padding: 12px !important;
    }
    
    .karaoke-row {
        margin-bottom: 12px !important;
    }
    
    /* Ensure main content is scrollable if needed */
    #main-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Management Table - Hide on mobile, show cards instead */
    .desktop-table {
        display: none !important;
    }
    
    .mobile-cards {
        display: block !important;
    }
    
    /* Track Cards Layout for Mobile */
    .management-cards-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
        padding: 0 8px;
        padding-top: 28px; /* Extra space for logo to show completely */
    }
    
    .track-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        backdrop-filter: blur(10px);
    }
    
    .card-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .card-checkbox {
        margin-top: 4px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    
    .card-title {
        flex: 1;
        font-weight: 600;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        color: #FFFFFF;
        line-height: 1.4;
    }
    
    .card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: clamp(0.85rem, 2.2vw, 0.9rem);
    }
    
    .card-label {
        color: #FFFFFF;
        font-weight: 500;
        opacity: 0.9;
    }
    
    .card-value {
        color: #FFFFFF;
        text-align: right;
        flex: 1;
        margin-left: 12px;
    }
    
    .card-actions {
        display: flex;
        justify-content: flex-end;
        gap: 20px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .card-actions i {
        font-size: 1.2rem;
        color: #FFFFFF;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .card-actions i:hover {
        transform: scale(1.15);
    }
    
    .card-actions .btn-delete-track {
        color: #ff6b6b !important;
    }
    
    /* Ensure card container has proper spacing */
    .management-cards-container {
        margin-bottom: 20px;
    }
    
    /* Copyright Footer - Mobile */
    .copyright-footer {
        position: fixed;
        bottom: 60px; /* Above the bottom navigation bar */
        left: 0;
        padding: 8px 12px;
        z-index: 100;
    }
    
    .copyright-footer p {
        font-size: clamp(0.65rem, 1.8vw, 0.7rem);
        opacity: 0.7;
    }
}

/* Desktop - Show table, hide cards */
@media (min-width: 769px) {
    .desktop-table {
        display: block !important;
    }
    
    .mobile-cards {
        display: none !important;
    }
    
    /* Desktop table styling */
    .management-table {
        font-size: 0.9rem;
    }
    
    .management-table th,
    .management-table td {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .management-table .td-genre span {
        font-size: 0.85rem;
    }
}

/* Desktop - Show table, hide cards */
@media (min-width: 769px) {
    .desktop-table {
        display: block !important;
    }
    
    .mobile-cards {
        display: none !important;
    }
}