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

        body {
            background: #1a1a1a;
            color: #ffffff;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh;
        }

        /* Header */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 40px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 18px;
            font-weight: 500;
        }

        .logo-icon {
            font-size: 20px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-weight: 400;
            transition: color 0.2s ease;
        }

        .nav-links a:hover {
            color: #ffffff;
        }

        .header-actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .icon-btn {
            width: 36px;
            height: 36px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s ease;
        }

        .icon-btn:hover {
            color: #ffffff;
        }

        /* Main Content */
        .main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 80px);
            padding: 40px;
        }

        /* Preview Container */
        .preview-container {
            background: #2d2d2d;
            border-radius: 12px;
            padding: 40px;
            max-width: 500px;
            width: 100%;
            text-align: center;
        }

        /* File Icon */
        .file-icon {
            width: 200px;
            height: 200px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px auto;
            background-color: #4285f4;
        }

        /* Light mode: keep all scaling/centering, but use a lighter background when no cover */


        .file-icon.has-cover,
        body[data-theme="light"] .file-icon.has-cover {
            background: none !important;
            background-color: unset !important;
        }

        .file-icon::before {
            content: '';
        }

        /* Audio Controls */
        .audio-controls {
            width: 100%;
            margin-top: 40px;
        }

        .progress-container {
            position: relative;
            margin: 20px 0;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            cursor: pointer;
        }

        .progress-fill {
            height: 100%;
            background: #4285f4;
            width: 35%;
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        /* File Info */
        .file-info {
            margin-bottom: 30px;
        }

        .file-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #ffffff;
        }

        .file-meta {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            margin-bottom: 8px;
        }

        .time-display {
            display: flex;
            justify-content: space-between;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-weight: 500;
            margin-top: 8px;
        }

        /* Control Buttons */
        .control-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .control-btn {
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .control-btn.play {
            width: 64px;
            height: 64px;
            font-size: 24px;
            background: #4285f4;
        }

        .control-btn.play:hover {
            background: #3367d6;
        }

        /* Volume Control */
        .volume-control {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 20px;
        }

        .volume-slider {
            width: 100px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            outline: none;
            cursor: pointer;
        }

        .volume-slider::-webkit-slider-thumb {
            appearance: none;
            width: 12px;
            height: 12px;
            background: #4285f4;
            border-radius: 50%;
            cursor: pointer;
        }

        .volume-icon {
            color: rgba(255, 255, 255, 0.6);
            font-size: 16px;
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        .modal-box {
            background: #222;
            color: #fff;
            padding: 32px 24px 24px 24px;
            border-radius: 12px;
            min-width: 320px;
            max-width: 90vw;
            position: relative;
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        }
        .modal-close {
            position: absolute;
            top: 12px; right: 12px;
            background: none;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
        }

        /* Light Theme */
        body[data-theme="light"] {
            background: #f7f7f7;
            color: #222;
        }
        body[data-theme="light"] .header {
            background: #fff;
        }
        body[data-theme="light"] .preview-container {
            background: #fff;
            color: #222;
        }
        body[data-theme="light"] .file-icon {
            background: #3766de;
            
        }
body[data-theme="light"] .file-icon.has-cover,
.file-icon.has-cover {
    background: none !important;
    background-color: unset !important;
}
        body[data-theme="light"] .file-icon::before {
            color: #4285f4;
        }
        body[data-theme="light"] .progress-bar {
            background: #e0e0e0;
        }
        body[data-theme="light"] .progress-fill {
            background: #4285f4;
        }
        body[data-theme="light"] .file-title {
            color: #222;
        }
        body[data-theme="light"] .file-meta,
        body[data-theme="light"] .time-display {
            color: #666;
        }
        body[data-theme="light"] .control-btn {
            background: #f0f0f0;
            color: #222;
        }
        body[data-theme="light"] .control-btn.play {
            background: #4285f4;
            color: #fff;
        }
        body[data-theme="light"] .modal-box {
            background: #fff;
            color: #222;
        }
        body[data-theme="light"] .modal-close {
            color: #222;
        }
        body[data-theme="light"] .volume-icon {
            color: #666;
             filter: invert(1) brightness(0.8);
        }
        body[data-theme="light"] .nav-links a {
            color: #222 !important;
        }
        body[data-theme="light"] .nav-links a:hover {
            color: #4285f4 !important;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                padding: 15px 20px;
            }
            
            .nav-links {
                display: none;
            }
            
            .preview-container {
                margin: 20px;
                padding: 40px 30px;
            }
            
            .file-icon {
                width: 140px;
                height: 140px;
            }
            
            .file-icon::before {
                font-size: 60px;
            }
            
            .file-title {
                font-size: 24px;
            }
            
            .control-buttons {
                gap: 15px;
            }
            
            .control-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            .control-btn.play {
                width: 70px;
                height: 70px;
                font-size: 28px;
            }
        }

        body.light-mode .control-buttons img,
        body.light-mode .volume-control img {
            filter: invert(1) brightness(1.2) grayscale(1);
        }

        .file-icon-note {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}
.file-icon.has-cover .file-icon-note {
    display: none;
}