        /* Widget Container - Scoped to prevent global conflicts */
        .acf-audio-playlist-widget {
            --primary-color: #2563eb;
            --primary-hover: #1d4ed8;
            --background: #ffffff;
            --surface: #f8fafc;
            --border: #e2e8f0;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --success: #10b981;
            --error: #ef4444;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            background: var(--background);
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
            position: relative;
        }

        .acf-audio-playlist-widget * {
            box-sizing: border-box;
        }

        /* Playlist Header */
        .playlist-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
            color: white;
            padding: 24px;
            position: relative;
        }

        .playlist-title {
            font-size: 24px;
            font-weight: 700;
            margin: 0 0 8px 0;
        }

        .playlist-info {
            font-size: 14px;
            opacity: 0.9;
        }

        /* Track List */
        .track-list {
            max-height: 400px;
            overflow-y: auto;
            background: var(--surface);
        }

        .track-list::-webkit-scrollbar {
            width: 8px;
        }

        .track-list::-webkit-scrollbar-track {
            background: var(--surface);
        }

        .track-list::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        .track-list::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        .track-item {
            display: flex;
            align-items: center;
            padding: 16px 24px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--background);
        }

        .track-item:hover {
            background: var(--surface);
            transform: translateX(4px);
        }

        .track-item.active {
            background: var(--surface);
            border-left: 4px solid var(--primary-color);
            padding-left: 20px;
        }

        .track-number {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 14px;
            flex-shrink: 0;
        }

        .track-item.active .track-number {
            color: var(--primary-color);
        }

        .track-info {
            flex: 1;
            margin-left: 16px;
            min-width: 0;
        }

        .track-name {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-primary);
            margin: 0 0 4px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-meta {
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            gap: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-duration {
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            flex-shrink: 0;
            margin-left: 16px;
        }

        /* Player Controls */
        .player-section {
            background: var(--background);
            padding: 24px;
            border-top: 1px solid var(--border);
        }

        .now-playing {
            margin-bottom: 20px;
        }

        .now-playing-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .now-playing-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

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

        .current-track-name {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 4px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .current-track-meta {
            font-size: 14px;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Waveform Container */
        .waveform-container {
            position: relative;
            height: 80px;
            background: var(--surface);
            border-radius: 8px;
            margin-bottom: 20px;
            overflow: hidden;
            cursor: pointer;
        }

        .waveform-canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        .waveform-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
            pointer-events: none;
            transition: width 0.1s linear;
        }

        .waveform-time-overlay {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            pointer-events: none;
        }

        /* Progress Bar */
        .progress-section {
            margin-bottom: 20px;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary-color);
            border-radius: 3px;
            transition: width 0.1s linear;
            position: relative;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            background: white;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .progress-bar:hover .progress-fill::after {
            opacity: 1;
        }

        .time-display {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Controls */
        .controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .control-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            color: var(--text-primary);
        }

        .control-btn:hover {
            transform: scale(1.1);
            color: var(--primary-color);
        }

        .control-btn:active {
            transform: scale(0.95);
        }

        .control-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }

        .control-btn svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
        }

        .btn-small {
            width: 32px;
            height: 32px;
        }

        .btn-large {
            width: 56px;
            height: 56px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-large:hover {
            background: var(--primary-hover);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        }

        /* Volume Control */
        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }

        .volume-icon {
            width: 24px;
            height: 24px;
            color: var(--text-secondary);
        }

        .volume-slider {
            flex: 1;
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: var(--border);
            border-radius: 2px;
            outline: none;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            background: var(--primary-color);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
        }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }

        .volume-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            background: var(--primary-color);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
        }

        .volume-slider::-moz-range-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }

        .volume-percentage {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 600;
            min-width: 36px;
            text-align: right;
        }

        /* Loading State */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--border);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 24px;
            color: var(--text-secondary);
        }

        .empty-state svg {
            width: 64px;
            height: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 8px 0;
            color: var(--text-primary);
        }

        .empty-state-text {
            font-size: 14px;
        }

        /* Responsive Design */
        @media (max-width: 640px) {
            .acf-audio-playlist-widget {
                border-radius: 0;
            }

            .playlist-header {
                padding: 20px;
            }

            .playlist-title {
                font-size: 20px;
            }

            .player-section {
                padding: 20px;
            }

            .track-item {
                padding: 12px 20px;
            }

            .controls {
                gap: 8px;
            }

            .btn-small {
                width: 28px;
                height: 28px;
            }

            .btn-large {
                width: 48px;
                height: 48px;
            }

            .waveform-container {
                height: 60px;
            }
        }
