/* Extracted from music_player.php */

* { margin:0; padding:0; box-sizing:border-box; }
        body {
            margin:0;
            font-family:'Segoe UI',Tahoma,sans-serif;
            background:#222233;
            color:#eee;
            min-height:100vh;
            display:flex;
            flex-direction:column;
        }
        a { color:#77aaff; text-decoration:none; }
        a:hover { text-decoration:underline; }

        .navbar {
            background:#1a1a2e;
            padding:1rem 1.5rem;
            border-bottom:1px solid #333366;
            display:flex;
            justify-content:space-between;
            align-items:center;
            position:fixed;
            top:0;
            width:100%;
            z-index:1000;
        }
        .navbar-left {
            display:flex;
            align-items:center;
            gap:1.5rem;
        }
        .navbar-right {
            display:flex;
            align-items:center;
            gap:1rem;
        }
        .nav-link {
            color:#eee;
            font-size:1rem;
            padding:0.5rem 1rem;
            border-radius:6px;
            transition:background 0.2s;
            text-decoration:none !important;
        }
        .nav-link:hover { background:#333366; }
        .nav-link.active { background:#6677ff; color:white; }

        /* Hamburger for mobile */
        .hamburger {
            display:none;
            font-size:1.8rem;
            background:none;
            border:none;
            color:#eee;
            cursor:pointer;
        }

        /* Mobile menu */
        .mobile-menu {
            display:none;
            position:absolute;
            top:100%;
            left:0;
            width:100%;
            background:#1a1a2e;
            border-bottom:1px solid #333366;
            flex-direction:column;
            padding:1rem;
            box-shadow:0 8px 16px rgba(0,0,0,0.4);
        }
        .mobile-menu.open { display:flex; }
        .mobile-menu a {
            padding:0.8rem 1rem;
            color:#eee;
            text-decoration:none;
            border-radius:6px;
            transition:background 0.2s;
        }
        .mobile-menu a:hover { background:#333366; }

        .dropdown {
            position:relative;
            display:inline-block;
        }
        .dropbtn {
            background:none;
            border:none;
            color:#eee;
            font-size:1rem;
            padding:0.5rem 1rem;
            cursor:pointer;
        }
        .dropdown-content {
            display:none;
            position:absolute;
            right:0;
            background:#1a1a2e;
            min-width:160px;
            box-shadow:0 8px 16px rgba(0,0,0,0.4);
            border-radius:4px;
            z-index:1001;
            border:1px solid #333366;
        }
        .dropdown-content a {
            color:#eee;
            padding:12px 16px;
            display:block;
        }
        .dropdown-content a:hover { background:#333366; }
        .dropdown:hover .dropdown-content { display:block; }

        .container {
            flex:1;
            display:flex;
            overflow:hidden;
            height:100%;
            margin-top:60px;
        }
        .main-content {
            flex:1;
            display:flex;
            flex-direction:column;
            min-height:100%;
            overflow-y:auto;
        }
        .audio-player {
            width:100%;
            background:#111122;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:1rem;
            border-bottom:1px solid #333366;
        }
        .audio-wrapper {
            width:100%;
            max-width:800px;
            display:flex;
            flex-direction:column;
            align-items:center;
            gap:0.5rem;
        }
        .main-audio {
            width:100%;
        }
        .controls {
            display:flex;
            align-items:center;
            gap:1rem;
            width:100%;
            max-width:800px;
        }
        .play-btn, .pause-btn {
            background:none;
            border:none;
            cursor:pointer;
            font-size:1.5rem;
            color:#6677ff;
            padding:0.25rem;
        }
        .play-btn:hover, .pause-btn:hover { color:#5555ff; }
        .progress-container {
            flex-grow:1;
            display:flex;
            align-items:center;
            gap:12px;
        }
        .progress-bar {
            flex-grow:1;
            height:8px;
            background:#333366;
            border-radius:4px;
            cursor:pointer;
        }
        .progress {
            height:100%;
            background:#6677ff;
            border-radius:4px;
            width:0;
        }
        .time-display {
            font-size:0.9rem;
            color:#aaa;
            min-width:110px;
            text-align:left;
            white-space:nowrap;
        }
        .volume-slider {
            width:100px;
            height:8px;
            background:#333366;
            border-radius:4px;
            cursor:pointer;
            appearance:none;
            outline:none;
        }
        .volume-slider::-webkit-slider-thumb {
            appearance:none;
            width:12px;
            height:12px;
            background:#6677ff;
            border-radius:50%;
            cursor:pointer;
        }
        .volume-slider::-moz-range-thumb {
            width:12px;
            height:12px;
            background:#6677ff;
            border-radius:50%;
            cursor:pointer;
        }
        .track-info {
            text-align:center;
            display:flex;
            flex-direction:column;
            align-items:center;
            gap:0.5rem;
            padding:0.75rem;
        }
        .album-art {
            width:150px;
            height:150px;
            object-fit:cover;
            border-radius:8px;
            border:1px solid #ff69b4;
            margin-bottom:0.5rem;
        }
        .track-info p {
            font-size:0.9rem;
            color:#ccc;
        }
        .track-info .song-name {
            font-size:1.1rem;
            color:#77aaff;
            font-weight:600;
        }
        .track-info .artist, .track-info .album {
            font-size:1.1rem;
            color:#ccc;
        }
        .search-bar {
            padding:0.5rem;
            width:100%;
            max-width:600px;
            margin:1rem auto;
            border:1px solid #333366;
            border-radius:4px;
            background:#1a1a2e;
            color:#eee;
            font-size:0.9rem;
        }
        .library-container {
            flex:1;
            background:#1a1a2e;
            padding:1rem;
            overflow-y:auto;
            display:flex;
            gap:0.5rem;
        }
        .library-column {
            min-width:150px;
        }
        .library-column.tracks {
            flex:2;
        }
        .library-column h3 {
            font-size:0.9rem;
            color:#77aaff;
            margin-bottom:0.5rem;
        }
        .track-list, .artist-list, .album-list {
            list-style:none;
            padding:0;
        }
        .track-list {
            display:grid;
            grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));
            gap:0.2rem;
        }
        .track-list li {
            background:#222244;
            border-radius:6px;
            overflow:hidden;
            transition:transform 0.2s;
            margin-bottom:0.2rem;
        }
        .track-list li:hover {
            transform:scale(1.05);
        }
        .track-list li a {
            display:flex;
            flex-direction:column;
            padding:0.3rem;
            color:#eee;
            text-decoration:none;
            font-size:0.8rem;
        }
        .track-list li a.active {
            background:#6677ff;
            color:white;
        }
        .track-list img {
            width:100%;
            height:80px;
            object-fit:cover;
            border-bottom:1px solid #333366;
        }
        .track-name {
            font-weight:600;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }
        .track-meta {
            font-size:0.7rem;
            color:#ccc;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }
        .artist-list li a, .album-list li a {
            display:block;
            padding:0.4rem;
            color:#eee;
            border-radius:4px;
            transition:background 0.2s;
            font-size:1rem;
            margin-bottom:0.2rem;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }
        .artist-list li a:hover, .album-list li a:hover {
            background:#333366;
        }
        .artist-list li a.active, .album-list li a.active {
            background:#6677ff;
            color:white;
        }
        .error-message {
            color:#ff5555;
            text-align:center;
            padding:1rem;
            font-size:0.9rem;
        }

        /* Modal styles */
        .modal {
            display:none;
            position:fixed;
            z-index:2000;
            left:0; top:0;
            width:100%; height:100%;
            background:rgba(0,0,0,0.7);
            align-items:center;
            justify-content:center;
        }
        .modal-content {
            background:#1a1a2e;
            padding:2rem;
            border-radius:8px;
            border:1px solid #333366;
            width:90%;
            max-width:520px;
            color:#eee;
            position:relative;
        }
        .close {
            position:absolute;
            right:1.5rem; top:1rem;
            color:#aaa;
            font-size:1.8rem;
            font-weight:bold;
            cursor:pointer;
        }
        .close:hover { color:#fff; }
        .modal h2 { color:#77aaff; margin-bottom:1.5rem; }
        .upload-section {
            margin:1.5rem 0;
            padding:1.2rem;
            background:#111122;
            border-radius:6px;
            border:1px solid #333366;
        }
        .upload-section h3 { margin-bottom:1rem; color:#77aaff; }
        .upload-section form { display:flex; flex-direction:column; gap:1rem; }
        .upload-section input[type="file"], .upload-section select {
            padding:0.6rem;
            background:#222244;
            border:1px solid #333366;
            color:#eee;
            border-radius:4px;
        }
        .upload-section button {
            background:#6677ff;
            color:white;
            border:none;
            padding:0.8rem;
            border-radius:6px;
            cursor:pointer;
        }
        .upload-section button:hover { background:#5555ff; }
        .progress-container-modal {
            height:6px;
            background:#333366;
            border-radius:3px;
            margin:0.6rem 0;
            overflow:hidden;
        }
        .progress-bar-modal {
            height:100%;
            background:#6677ff;
            width:0%;
            transition:width 0.2s;
        }
        .status-message {
            min-height:1.3rem;
            padding:0.6rem;
            border-radius:4px;
            font-size:0.95rem;
        }
        .status-message.success { background:#2a6633; color:#d4f4d4; }
        .status-message.error { background:#662a2a; color:#f4d4d4; }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .navbar-links { display:none; }
            .hamburger { display:block; }
            .navbar-right { gap:0.8rem; }
        }