.acp-player {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.acp-header {
    margin-bottom: 20px;
}

.acp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.acp-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.acp-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.acp-cover-art {
    flex-shrink: 0;
}

.acp-cover-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.acp-play-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.acp-play-button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.acp-play-button:active {
    transform: scale(0.95);
}

.acp-play-icon,
.acp-pause-icon {
    fill: white;
}

.acp-time-display {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.acp-time-separator {
    margin: 0 4px;
}

.acp-progress-container {
    flex: 1;
    min-width: 120px;
}

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

.acp-progress-bar:hover {
    height: 8px;
}

.acp-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
    border-radius: 3px !important;
    width: 0% !important;
    transition: width 0.1s linear !important;
    display: block !important;
    position: relative !important;
}

.acp-version-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.acp-toggle-switch {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    flex-shrink: 0;
}

.acp-label-before,
.acp-label-after {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s;
    flex-shrink: 0;
    display: inline-block;
}

.acp-toggle-input {
    display: none;
}

.acp-toggle-slider {
    position: relative;
    display: block;
    width: 52px;
    height: 28px;
    background: #94a3b8;
    border-radius: 14px;
    transition: background 0.3s;
}

.acp-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.acp-toggle-input:checked + .acp-toggle-slider {
    background: #10b981;
}

.acp-toggle-input:checked + .acp-toggle-slider::before {
    transform: translateX(24px);
}

.acp-toggle-input:checked ~ .acp-label-after {
    color: #10b981;
}

.acp-toggle-input:not(:checked) ~ .acp-label-before {
    color: #94a3b8;
}

.acp-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.acp-volume-icon {
    fill: #666;
    flex-shrink: 0;
}

.acp-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
}

.acp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
}

.acp-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.acp-audio-before,
.acp-audio-after {
    display: none;
}

.acp-layout-toggle-below .acp-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.acp-layout-toggle-below .acp-version-toggle {
    flex: 0 0 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    order: 3;
}

.acp-layout-toggle-below .acp-volume-control {
    order: 2;
}

.acp-layout-toggle-below .acp-version-toggle-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
}

.acp-layout-toggle-below .acp-label-before,
.acp-layout-toggle-below .acp-label-after {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex-shrink: 0;
}

.acp-layout-toggle-below .acp-toggle-switch {
    transform: scale(1.3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .acp-player {
        padding: 16px;
        width: auto !important;
    }
    
    .acp-controls {
        gap: 12px;
    }
    
    .acp-title {
        font-size: 18px;
    }
    
    .acp-volume-control {
        width: 100%;
        justify-content: center;
    }
    
    .acp-volume-slider {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .acp-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .acp-time-display {
        text-align: center;
        order: -1;
    }
    
    .acp-progress-container {
        order: 1;
        width: 100%;
    }
    
    .acp-version-toggle {
        order: 2;
        display: flex;
        justify-content: center;
    }
    
    .acp-volume-control {
        order: 3;
    }
}
